[2024-12-28 00:00:05] Production.INFO: next invoice date [2024-12-28 00:00:05] Production.INFO: 2025-01-28 [2024-12-28 00:00:05] Production.INFO: getdaysdiff [2024-12-28 00:00:05] Production.INFO: +31 [2024-12-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2024-12-28 00:00:05,1,0,,,0) [2024-12-28 00:00:05] Production.INFO: next invoice date [2024-12-28 00:00:05] Production.INFO: 2025-01-28 [2024-12-28 00:00:05] Production.INFO: getdaysdiff [2024-12-28 00:00:05] Production.INFO: +31 [2024-12-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2024-12-28 00:00:05,1,0,,,0) [2024-12-28 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:00:07 [end_date_ymd] => 2024-12-28 00:00:07 [RateCDR] => 1 ) [2024-12-28 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:00:07' and `end` < '2024-12-28 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:00:20] Production.INFO: count ==943 [2024-12-28 00:00:21] Production.ERROR: pbx CDR StartTime 2024-12-27 21:00:07 - End Time 2024-12-28 00:00:07 [2024-12-28 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117717', 'tblTempUsageDetail_20' ) start [2024-12-28 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117717', 'tblTempUsageDetail_20' ) end [2024-12-28 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117717', 'tblTempVendorCDR_20' ) start [2024-12-28 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117717', 'tblTempVendorCDR_20' ) end [2024-12-28 00:00:21] Production.INFO: ProcessCDR(1,14117717,1,1,2) [2024-12-28 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117717', 'tblTempUsageDetail_20' ) start [2024-12-28 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117717', 'tblTempUsageDetail_20' ) end [2024-12-28 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:00:25] Production.INFO: ==12138== Releasing lock... [2024-12-28 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:00:25] Production.INFO: 36.5 MB #Memory Used# [2024-12-28 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:01:05 [end_date_ymd] => 2024-12-28 00:01:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:01:05' and `end` < '2024-12-28 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-28 00:01:17] Production.INFO: count ==934 [2024-12-28 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:01:05 - End Time 2024-12-28 00:01:05 [2024-12-28 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117722', 'tblTempUsageDetail_20' ) start [2024-12-28 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117722', 'tblTempUsageDetail_20' ) end [2024-12-28 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117722', 'tblTempVendorCDR_20' ) start [2024-12-28 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117722', 'tblTempVendorCDR_20' ) end [2024-12-28 00:01:17] Production.INFO: ProcessCDR(1,14117722,1,1,2) [2024-12-28 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117722', 'tblTempUsageDetail_20' ) start [2024-12-28 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117722', 'tblTempUsageDetail_20' ) end [2024-12-28 00:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:01:22] Production.INFO: ==12229== Releasing lock... [2024-12-28 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:01:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:02:05 [end_date_ymd] => 2024-12-28 00:02:05 [RateCDR] => 1 ) [2024-12-28 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:02:05' and `end` < '2024-12-28 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:02:18] Production.INFO: count ==389 [2024-12-28 00:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:02:05 - End Time 2024-12-28 00:02:05 [2024-12-28 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117727', 'tblTempUsageDetail_20' ) start [2024-12-28 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117727', 'tblTempUsageDetail_20' ) end [2024-12-28 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117727', 'tblTempVendorCDR_20' ) start [2024-12-28 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117727', 'tblTempVendorCDR_20' ) end [2024-12-28 00:02:18] Production.INFO: ProcessCDR(1,14117727,1,1,2) [2024-12-28 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117727', 'tblTempUsageDetail_20' ) start [2024-12-28 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117727', 'tblTempUsageDetail_20' ) end [2024-12-28 00:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:02:22] Production.INFO: ==12342== Releasing lock... [2024-12-28 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:02:22] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:03:04 [end_date_ymd] => 2024-12-28 00:03:04 [RateCDR] => 1 ) [2024-12-28 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:03:04' and `end` < '2024-12-28 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:03:17] Production.INFO: count ==385 [2024-12-28 00:03:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:03:04 - End Time 2024-12-28 00:03:04 [2024-12-28 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117732', 'tblTempUsageDetail_20' ) start [2024-12-28 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117732', 'tblTempUsageDetail_20' ) end [2024-12-28 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117732', 'tblTempVendorCDR_20' ) start [2024-12-28 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117732', 'tblTempVendorCDR_20' ) end [2024-12-28 00:03:17] Production.INFO: ProcessCDR(1,14117732,1,1,2) [2024-12-28 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117732', 'tblTempUsageDetail_20' ) start [2024-12-28 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117732', 'tblTempUsageDetail_20' ) end [2024-12-28 00:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:03:20] Production.INFO: ==12424== Releasing lock... [2024-12-28 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:03:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:04:05 [end_date_ymd] => 2024-12-28 00:04:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:04:05' and `end` < '2024-12-28 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-28 00:04:19] Production.INFO: count ==385 [2024-12-28 00:04:19] Production.ERROR: pbx CDR StartTime 2024-12-27 21:04:05 - End Time 2024-12-28 00:04:05 [2024-12-28 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117737', 'tblTempUsageDetail_20' ) start [2024-12-28 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117737', 'tblTempUsageDetail_20' ) end [2024-12-28 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117737', 'tblTempVendorCDR_20' ) start [2024-12-28 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117737', 'tblTempVendorCDR_20' ) end [2024-12-28 00:04:19] Production.INFO: ProcessCDR(1,14117737,1,1,2) [2024-12-28 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117737', 'tblTempUsageDetail_20' ) start [2024-12-28 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117737', 'tblTempUsageDetail_20' ) end [2024-12-28 00:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:04:22] Production.INFO: ==12496== Releasing lock... [2024-12-28 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:04:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:05:04 [end_date_ymd] => 2024-12-28 00:05:04 [RateCDR] => 1 ) [2024-12-28 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:05:04' and `end` < '2024-12-28 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:05:17] Production.INFO: count ==385 [2024-12-28 00:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:05:04 - End Time 2024-12-28 00:05:04 [2024-12-28 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117742', 'tblTempUsageDetail_20' ) start [2024-12-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117742', 'tblTempUsageDetail_20' ) end [2024-12-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117742', 'tblTempVendorCDR_20' ) start [2024-12-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117742', 'tblTempVendorCDR_20' ) end [2024-12-28 00:05:17] Production.INFO: ProcessCDR(1,14117742,1,1,2) [2024-12-28 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117742', 'tblTempUsageDetail_20' ) start [2024-12-28 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117742', 'tblTempUsageDetail_20' ) end [2024-12-28 00:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:05:20] Production.INFO: ==12568== Releasing lock... [2024-12-28 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:05:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:06:05 [end_date_ymd] => 2024-12-28 00:06:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:06:05' and `end` < '2024-12-28 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-28 00:06:17] Production.INFO: count ==379 [2024-12-28 00:06:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:06:05 - End Time 2024-12-28 00:06:05 [2024-12-28 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117747', 'tblTempUsageDetail_20' ) start [2024-12-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117747', 'tblTempUsageDetail_20' ) end [2024-12-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117747', 'tblTempVendorCDR_20' ) start [2024-12-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117747', 'tblTempVendorCDR_20' ) end [2024-12-28 00:06:17] Production.INFO: ProcessCDR(1,14117747,1,1,2) [2024-12-28 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117747', 'tblTempUsageDetail_20' ) start [2024-12-28 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117747', 'tblTempUsageDetail_20' ) end [2024-12-28 00:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:06:20] Production.INFO: ==12638== Releasing lock... [2024-12-28 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:06:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:07:05 [end_date_ymd] => 2024-12-28 00:07:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:07:05' and `end` < '2024-12-28 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-28 00:07:17] Production.INFO: count ==378 [2024-12-28 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:07:05 - End Time 2024-12-28 00:07:05 [2024-12-28 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117752', 'tblTempUsageDetail_20' ) start [2024-12-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117752', 'tblTempUsageDetail_20' ) end [2024-12-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117752', 'tblTempVendorCDR_20' ) start [2024-12-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117752', 'tblTempVendorCDR_20' ) end [2024-12-28 00:07:17] Production.INFO: ProcessCDR(1,14117752,1,1,2) [2024-12-28 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117752', 'tblTempUsageDetail_20' ) start [2024-12-28 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117752', 'tblTempUsageDetail_20' ) end [2024-12-28 00:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:07:20] Production.INFO: ==12715== Releasing lock... [2024-12-28 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:07:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:08:04 [end_date_ymd] => 2024-12-28 00:08:04 [RateCDR] => 1 ) [2024-12-28 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:08:04' and `end` < '2024-12-28 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:08:17] Production.INFO: count ==377 [2024-12-28 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:08:04 - End Time 2024-12-28 00:08:04 [2024-12-28 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117757', 'tblTempUsageDetail_20' ) start [2024-12-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117757', 'tblTempUsageDetail_20' ) end [2024-12-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117757', 'tblTempVendorCDR_20' ) start [2024-12-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117757', 'tblTempVendorCDR_20' ) end [2024-12-28 00:08:17] Production.INFO: ProcessCDR(1,14117757,1,1,2) [2024-12-28 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117757', 'tblTempUsageDetail_20' ) start [2024-12-28 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117757', 'tblTempUsageDetail_20' ) end [2024-12-28 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:08:20] Production.INFO: ==12788== Releasing lock... [2024-12-28 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:08:20] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:09:05 [end_date_ymd] => 2024-12-28 00:09:05 [RateCDR] => 1 ) [2024-12-28 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:09:05' and `end` < '2024-12-28 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:09:18] Production.INFO: count ==377 [2024-12-28 00:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:09:05 - End Time 2024-12-28 00:09:05 [2024-12-28 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117762', 'tblTempUsageDetail_20' ) start [2024-12-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117762', 'tblTempUsageDetail_20' ) end [2024-12-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117762', 'tblTempVendorCDR_20' ) start [2024-12-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117762', 'tblTempVendorCDR_20' ) end [2024-12-28 00:09:18] Production.INFO: ProcessCDR(1,14117762,1,1,2) [2024-12-28 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117762', 'tblTempUsageDetail_20' ) start [2024-12-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117762', 'tblTempUsageDetail_20' ) end [2024-12-28 00:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:09:21] Production.INFO: ==12860== Releasing lock... [2024-12-28 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:09:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:10:05 [end_date_ymd] => 2024-12-28 00:10:05 [RateCDR] => 1 ) [2024-12-28 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:10:05' and `end` < '2024-12-28 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:10:17] Production.INFO: count ==365 [2024-12-28 00:10:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:10:05 - End Time 2024-12-28 00:10:05 [2024-12-28 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117768', 'tblTempUsageDetail_20' ) start [2024-12-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117768', 'tblTempUsageDetail_20' ) end [2024-12-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117768', 'tblTempVendorCDR_20' ) start [2024-12-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117768', 'tblTempVendorCDR_20' ) end [2024-12-28 00:10:17] Production.INFO: ProcessCDR(1,14117768,1,1,2) [2024-12-28 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117768', 'tblTempUsageDetail_20' ) start [2024-12-28 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117768', 'tblTempUsageDetail_20' ) end [2024-12-28 00:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:10:20] Production.INFO: ==12934== Releasing lock... [2024-12-28 00:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:10:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:11:05 [end_date_ymd] => 2024-12-28 00:11:05 [RateCDR] => 1 ) [2024-12-28 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:11:05' and `end` < '2024-12-28 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:11:17] Production.INFO: count ==388 [2024-12-28 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:11:05 - End Time 2024-12-28 00:11:05 [2024-12-28 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117773', 'tblTempUsageDetail_20' ) start [2024-12-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117773', 'tblTempUsageDetail_20' ) end [2024-12-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117773', 'tblTempVendorCDR_20' ) start [2024-12-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117773', 'tblTempVendorCDR_20' ) end [2024-12-28 00:11:17] Production.INFO: ProcessCDR(1,14117773,1,1,2) [2024-12-28 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117773', 'tblTempUsageDetail_20' ) start [2024-12-28 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117773', 'tblTempUsageDetail_20' ) end [2024-12-28 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:11:20] Production.INFO: ==13009== Releasing lock... [2024-12-28 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:11:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:12:05 [end_date_ymd] => 2024-12-28 00:12:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:12:05' and `end` < '2024-12-28 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-28 00:12:17] Production.INFO: count ==388 [2024-12-28 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:12:05 - End Time 2024-12-28 00:12:05 [2024-12-28 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117778', 'tblTempUsageDetail_20' ) start [2024-12-28 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117778', 'tblTempUsageDetail_20' ) end [2024-12-28 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117778', 'tblTempVendorCDR_20' ) start [2024-12-28 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117778', 'tblTempVendorCDR_20' ) end [2024-12-28 00:12:17] Production.INFO: ProcessCDR(1,14117778,1,1,2) [2024-12-28 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117778', 'tblTempUsageDetail_20' ) start [2024-12-28 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117778', 'tblTempUsageDetail_20' ) end [2024-12-28 00:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:12:22] Production.INFO: ==13082== Releasing lock... [2024-12-28 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:12:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:13:05 [end_date_ymd] => 2024-12-28 00:13:05 [RateCDR] => 1 ) [2024-12-28 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:13:05' and `end` < '2024-12-28 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:13:17] Production.INFO: count ==388 [2024-12-28 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:13:05 - End Time 2024-12-28 00:13:05 [2024-12-28 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117779', 'tblTempUsageDetail_20' ) start [2024-12-28 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117779', 'tblTempUsageDetail_20' ) end [2024-12-28 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117779', 'tblTempVendorCDR_20' ) start [2024-12-28 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117779', 'tblTempVendorCDR_20' ) end [2024-12-28 00:13:17] Production.INFO: ProcessCDR(1,14117779,1,1,2) [2024-12-28 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117779', 'tblTempUsageDetail_20' ) start [2024-12-28 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117779', 'tblTempUsageDetail_20' ) end [2024-12-28 00:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:13:21] Production.INFO: ==13154== Releasing lock... [2024-12-28 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:13:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:14:05 [end_date_ymd] => 2024-12-28 00:14:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:14:05' and `end` < '2024-12-28 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-28 00:14:18] Production.INFO: count ==388 [2024-12-28 00:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:14:05 - End Time 2024-12-28 00:14:05 [2024-12-28 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117788', 'tblTempUsageDetail_20' ) start [2024-12-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117788', 'tblTempUsageDetail_20' ) end [2024-12-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117788', 'tblTempVendorCDR_20' ) start [2024-12-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117788', 'tblTempVendorCDR_20' ) end [2024-12-28 00:14:18] Production.INFO: ProcessCDR(1,14117788,1,1,2) [2024-12-28 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117788', 'tblTempUsageDetail_20' ) start [2024-12-28 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117788', 'tblTempUsageDetail_20' ) end [2024-12-28 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:14:21] Production.INFO: ==13227== Releasing lock... [2024-12-28 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:14:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:15:05 [end_date_ymd] => 2024-12-28 00:15:05 [RateCDR] => 1 ) [2024-12-28 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:15:05' and `end` < '2024-12-28 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:15:23] Production.INFO: count ==384 [2024-12-28 00:15:23] Production.ERROR: pbx CDR StartTime 2024-12-27 21:15:05 - End Time 2024-12-28 00:15:05 [2024-12-28 00:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117793', 'tblTempUsageDetail_20' ) start [2024-12-28 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117793', 'tblTempUsageDetail_20' ) end [2024-12-28 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117793', 'tblTempVendorCDR_20' ) start [2024-12-28 00:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117793', 'tblTempVendorCDR_20' ) end [2024-12-28 00:15:23] Production.INFO: ProcessCDR(1,14117793,1,1,2) [2024-12-28 00:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117793', 'tblTempUsageDetail_20' ) start [2024-12-28 00:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117793', 'tblTempUsageDetail_20' ) end [2024-12-28 00:15:26] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:15:26] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:15:26] Production.INFO: ==13301== Releasing lock... [2024-12-28 00:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:15:26] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:16:04 [end_date_ymd] => 2024-12-28 00:16:04 [RateCDR] => 1 ) [2024-12-28 00: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-27 21:16:04' and `end` < '2024-12-28 00: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-28 00:16:17] Production.INFO: count ==383 [2024-12-28 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:16:04 - End Time 2024-12-28 00:16:04 [2024-12-28 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117798', 'tblTempUsageDetail_20' ) start [2024-12-28 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117798', 'tblTempUsageDetail_20' ) end [2024-12-28 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117798', 'tblTempVendorCDR_20' ) start [2024-12-28 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117798', 'tblTempVendorCDR_20' ) end [2024-12-28 00:16:17] Production.INFO: ProcessCDR(1,14117798,1,1,2) [2024-12-28 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117798', 'tblTempUsageDetail_20' ) start [2024-12-28 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117798', 'tblTempUsageDetail_20' ) end [2024-12-28 00:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:16:21] Production.INFO: ==13372== Releasing lock... [2024-12-28 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:16:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:17:05 [end_date_ymd] => 2024-12-28 00:17:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:17:05' and `end` < '2024-12-28 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-28 00:17:17] Production.INFO: count ==385 [2024-12-28 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:17:05 - End Time 2024-12-28 00:17:05 [2024-12-28 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117803', 'tblTempUsageDetail_20' ) start [2024-12-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117803', 'tblTempUsageDetail_20' ) end [2024-12-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117803', 'tblTempVendorCDR_20' ) start [2024-12-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117803', 'tblTempVendorCDR_20' ) end [2024-12-28 00:17:17] Production.INFO: ProcessCDR(1,14117803,1,1,2) [2024-12-28 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117803', 'tblTempUsageDetail_20' ) start [2024-12-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117803', 'tblTempUsageDetail_20' ) end [2024-12-28 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:17:20] Production.INFO: ==13453== Releasing lock... [2024-12-28 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:17:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:18:04 [end_date_ymd] => 2024-12-28 00:18:04 [RateCDR] => 1 ) [2024-12-28 00:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:18:04' and `end` < '2024-12-28 00:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:18:16] Production.INFO: count ==385 [2024-12-28 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:18:04 - End Time 2024-12-28 00:18:04 [2024-12-28 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117808', 'tblTempUsageDetail_20' ) start [2024-12-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117808', 'tblTempUsageDetail_20' ) end [2024-12-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117808', 'tblTempVendorCDR_20' ) start [2024-12-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117808', 'tblTempVendorCDR_20' ) end [2024-12-28 00:18:17] Production.INFO: ProcessCDR(1,14117808,1,1,2) [2024-12-28 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117808', 'tblTempUsageDetail_20' ) start [2024-12-28 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117808', 'tblTempUsageDetail_20' ) end [2024-12-28 00:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:18:20] Production.INFO: ==13565== Releasing lock... [2024-12-28 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:18:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:19:05 [end_date_ymd] => 2024-12-28 00:19:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:19:05' and `end` < '2024-12-28 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-28 00:19:18] Production.INFO: count ==385 [2024-12-28 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:19:05 - End Time 2024-12-28 00:19:05 [2024-12-28 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117813', 'tblTempUsageDetail_20' ) start [2024-12-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117813', 'tblTempUsageDetail_20' ) end [2024-12-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117813', 'tblTempVendorCDR_20' ) start [2024-12-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117813', 'tblTempVendorCDR_20' ) end [2024-12-28 00:19:18] Production.INFO: ProcessCDR(1,14117813,1,1,2) [2024-12-28 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117813', 'tblTempUsageDetail_20' ) start [2024-12-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117813', 'tblTempUsageDetail_20' ) end [2024-12-28 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:19:21] Production.INFO: ==13636== Releasing lock... [2024-12-28 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:19:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:20:05 [end_date_ymd] => 2024-12-28 00:20:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:20:05' and `end` < '2024-12-28 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-28 00:20:18] Production.INFO: count ==399 [2024-12-28 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:20:05 - End Time 2024-12-28 00:20:05 [2024-12-28 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117819', 'tblTempUsageDetail_20' ) start [2024-12-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117819', 'tblTempUsageDetail_20' ) end [2024-12-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117819', 'tblTempVendorCDR_20' ) start [2024-12-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117819', 'tblTempVendorCDR_20' ) end [2024-12-28 00:20:18] Production.INFO: ProcessCDR(1,14117819,1,1,2) [2024-12-28 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117819', 'tblTempUsageDetail_20' ) start [2024-12-28 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117819', 'tblTempUsageDetail_20' ) end [2024-12-28 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:20:21] Production.INFO: ==13714== Releasing lock... [2024-12-28 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:20:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:21:04 [end_date_ymd] => 2024-12-28 00:21:04 [RateCDR] => 1 ) [2024-12-28 00: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-27 21:21:04' and `end` < '2024-12-28 00: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-28 00:21:17] Production.INFO: count ==408 [2024-12-28 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:21:04 - End Time 2024-12-28 00:21:04 [2024-12-28 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117824', 'tblTempUsageDetail_20' ) start [2024-12-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117824', 'tblTempUsageDetail_20' ) end [2024-12-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117824', 'tblTempVendorCDR_20' ) start [2024-12-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117824', 'tblTempVendorCDR_20' ) end [2024-12-28 00:21:17] Production.INFO: ProcessCDR(1,14117824,1,1,2) [2024-12-28 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117824', 'tblTempUsageDetail_20' ) start [2024-12-28 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117824', 'tblTempUsageDetail_20' ) end [2024-12-28 00:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:21:21] Production.INFO: ==13795== Releasing lock... [2024-12-28 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:21:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:22:05 [end_date_ymd] => 2024-12-28 00:22:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:22:05' and `end` < '2024-12-28 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-28 00:22:18] Production.INFO: count ==412 [2024-12-28 00:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:22:05 - End Time 2024-12-28 00:22:05 [2024-12-28 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117829', 'tblTempUsageDetail_20' ) start [2024-12-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117829', 'tblTempUsageDetail_20' ) end [2024-12-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117829', 'tblTempVendorCDR_20' ) start [2024-12-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117829', 'tblTempVendorCDR_20' ) end [2024-12-28 00:22:18] Production.INFO: ProcessCDR(1,14117829,1,1,2) [2024-12-28 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117829', 'tblTempUsageDetail_20' ) start [2024-12-28 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117829', 'tblTempUsageDetail_20' ) end [2024-12-28 00:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:22:21] Production.INFO: ==13870== Releasing lock... [2024-12-28 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:22:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:23:05 [end_date_ymd] => 2024-12-28 00:23:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:23:05' and `end` < '2024-12-28 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-28 00:23:17] Production.INFO: count ==411 [2024-12-28 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:23:05 - End Time 2024-12-28 00:23:05 [2024-12-28 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117834', 'tblTempUsageDetail_20' ) start [2024-12-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117834', 'tblTempUsageDetail_20' ) end [2024-12-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117834', 'tblTempVendorCDR_20' ) start [2024-12-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117834', 'tblTempVendorCDR_20' ) end [2024-12-28 00:23:17] Production.INFO: ProcessCDR(1,14117834,1,1,2) [2024-12-28 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117834', 'tblTempUsageDetail_20' ) start [2024-12-28 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117834', 'tblTempUsageDetail_20' ) end [2024-12-28 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:23:20] Production.INFO: ==13942== Releasing lock... [2024-12-28 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:23:20] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:24:05 [end_date_ymd] => 2024-12-28 00:24:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:24:05' and `end` < '2024-12-28 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-28 00:24:17] Production.INFO: count ==417 [2024-12-28 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:24:05 - End Time 2024-12-28 00:24:05 [2024-12-28 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117839', 'tblTempUsageDetail_20' ) start [2024-12-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117839', 'tblTempUsageDetail_20' ) end [2024-12-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117839', 'tblTempVendorCDR_20' ) start [2024-12-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117839', 'tblTempVendorCDR_20' ) end [2024-12-28 00:24:17] Production.INFO: ProcessCDR(1,14117839,1,1,2) [2024-12-28 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117839', 'tblTempUsageDetail_20' ) start [2024-12-28 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117839', 'tblTempUsageDetail_20' ) end [2024-12-28 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:24:20] Production.INFO: ==14014== Releasing lock... [2024-12-28 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:24:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:25:04 [end_date_ymd] => 2024-12-28 00:25:04 [RateCDR] => 1 ) [2024-12-28 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:25:04' and `end` < '2024-12-28 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:25:17] Production.INFO: count ==425 [2024-12-28 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:25:04 - End Time 2024-12-28 00:25:04 [2024-12-28 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117844', 'tblTempUsageDetail_20' ) start [2024-12-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117844', 'tblTempUsageDetail_20' ) end [2024-12-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117844', 'tblTempVendorCDR_20' ) start [2024-12-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117844', 'tblTempVendorCDR_20' ) end [2024-12-28 00:25:17] Production.INFO: ProcessCDR(1,14117844,1,1,2) [2024-12-28 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117844', 'tblTempUsageDetail_20' ) start [2024-12-28 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117844', 'tblTempUsageDetail_20' ) end [2024-12-28 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:25:20] Production.INFO: ==14088== Releasing lock... [2024-12-28 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:25:20] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:26:05 [end_date_ymd] => 2024-12-28 00:26:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:26:05' and `end` < '2024-12-28 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-28 00:26:17] Production.INFO: count ==426 [2024-12-28 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:26:05 - End Time 2024-12-28 00:26:05 [2024-12-28 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117849', 'tblTempUsageDetail_20' ) start [2024-12-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117849', 'tblTempUsageDetail_20' ) end [2024-12-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117849', 'tblTempVendorCDR_20' ) start [2024-12-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117849', 'tblTempVendorCDR_20' ) end [2024-12-28 00:26:17] Production.INFO: ProcessCDR(1,14117849,1,1,2) [2024-12-28 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117849', 'tblTempUsageDetail_20' ) start [2024-12-28 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117849', 'tblTempUsageDetail_20' ) end [2024-12-28 00:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:26:22] Production.INFO: ==14161== Releasing lock... [2024-12-28 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:26:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:27:05 [end_date_ymd] => 2024-12-28 00:27:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:27:05' and `end` < '2024-12-28 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-28 00:27:17] Production.INFO: count ==425 [2024-12-28 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:27:05 - End Time 2024-12-28 00:27:05 [2024-12-28 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117854', 'tblTempUsageDetail_20' ) start [2024-12-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117854', 'tblTempUsageDetail_20' ) end [2024-12-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117854', 'tblTempVendorCDR_20' ) start [2024-12-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117854', 'tblTempVendorCDR_20' ) end [2024-12-28 00:27:18] Production.INFO: ProcessCDR(1,14117854,1,1,2) [2024-12-28 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117854', 'tblTempUsageDetail_20' ) start [2024-12-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117854', 'tblTempUsageDetail_20' ) end [2024-12-28 00:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:27:21] Production.INFO: ==14232== Releasing lock... [2024-12-28 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:27:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:28:05 [end_date_ymd] => 2024-12-28 00:28:05 [RateCDR] => 1 ) [2024-12-28 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:28:05' and `end` < '2024-12-28 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:28:17] Production.INFO: count ==424 [2024-12-28 00:28:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:28:05 - End Time 2024-12-28 00:28:05 [2024-12-28 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117859', 'tblTempUsageDetail_20' ) start [2024-12-28 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117859', 'tblTempUsageDetail_20' ) end [2024-12-28 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117859', 'tblTempVendorCDR_20' ) start [2024-12-28 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117859', 'tblTempVendorCDR_20' ) end [2024-12-28 00:28:18] Production.INFO: ProcessCDR(1,14117859,1,1,2) [2024-12-28 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117859', 'tblTempUsageDetail_20' ) start [2024-12-28 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117859', 'tblTempUsageDetail_20' ) end [2024-12-28 00:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:28:21] Production.INFO: ==14303== Releasing lock... [2024-12-28 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:28:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:29:05 [end_date_ymd] => 2024-12-28 00:29:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:29:05' and `end` < '2024-12-28 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-28 00:29:17] Production.INFO: count ==424 [2024-12-28 00:29:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:29:05 - End Time 2024-12-28 00:29:05 [2024-12-28 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117864', 'tblTempUsageDetail_20' ) start [2024-12-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117864', 'tblTempUsageDetail_20' ) end [2024-12-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117864', 'tblTempVendorCDR_20' ) start [2024-12-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117864', 'tblTempVendorCDR_20' ) end [2024-12-28 00:29:18] Production.INFO: ProcessCDR(1,14117864,1,1,2) [2024-12-28 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117864', 'tblTempUsageDetail_20' ) start [2024-12-28 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117864', 'tblTempUsageDetail_20' ) end [2024-12-28 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:29:21] Production.INFO: ==14377== Releasing lock... [2024-12-28 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:29:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:30:05 [end_date_ymd] => 2024-12-28 00:30:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:30:05' and `end` < '2024-12-28 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-28 00:30:17] Production.INFO: count ==432 [2024-12-28 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:30:05 - End Time 2024-12-28 00:30:05 [2024-12-28 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117870', 'tblTempUsageDetail_20' ) start [2024-12-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117870', 'tblTempUsageDetail_20' ) end [2024-12-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117870', 'tblTempVendorCDR_20' ) start [2024-12-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117870', 'tblTempVendorCDR_20' ) end [2024-12-28 00:30:18] Production.INFO: ProcessCDR(1,14117870,1,1,2) [2024-12-28 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117870', 'tblTempUsageDetail_20' ) start [2024-12-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117870', 'tblTempUsageDetail_20' ) end [2024-12-28 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:30:21] Production.INFO: ==14449== Releasing lock... [2024-12-28 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:30:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:31:05 [end_date_ymd] => 2024-12-28 00:31:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:31:05' and `end` < '2024-12-28 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-28 00:31:17] Production.INFO: count ==454 [2024-12-28 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:31:05 - End Time 2024-12-28 00:31:05 [2024-12-28 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117875', 'tblTempUsageDetail_20' ) start [2024-12-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117875', 'tblTempUsageDetail_20' ) end [2024-12-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117875', 'tblTempVendorCDR_20' ) start [2024-12-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117875', 'tblTempVendorCDR_20' ) end [2024-12-28 00:31:18] Production.INFO: ProcessCDR(1,14117875,1,1,2) [2024-12-28 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117875', 'tblTempUsageDetail_20' ) start [2024-12-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117875', 'tblTempUsageDetail_20' ) end [2024-12-28 00:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:31:21] Production.INFO: ==14529== Releasing lock... [2024-12-28 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:31:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:32:05 [end_date_ymd] => 2024-12-28 00:32:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:32:05' and `end` < '2024-12-28 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-28 00:32:17] Production.INFO: count ==454 [2024-12-28 00:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:32:05 - End Time 2024-12-28 00:32:05 [2024-12-28 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117880', 'tblTempUsageDetail_20' ) start [2024-12-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117880', 'tblTempUsageDetail_20' ) end [2024-12-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117880', 'tblTempVendorCDR_20' ) start [2024-12-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117880', 'tblTempVendorCDR_20' ) end [2024-12-28 00:32:18] Production.INFO: ProcessCDR(1,14117880,1,1,2) [2024-12-28 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117880', 'tblTempUsageDetail_20' ) start [2024-12-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117880', 'tblTempUsageDetail_20' ) end [2024-12-28 00:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:32:21] Production.INFO: ==14601== Releasing lock... [2024-12-28 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:32:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:33:05 [end_date_ymd] => 2024-12-28 00:33:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:33:05' and `end` < '2024-12-28 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-28 00:33:17] Production.INFO: count ==454 [2024-12-28 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:33:05 - End Time 2024-12-28 00:33:05 [2024-12-28 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117885', 'tblTempUsageDetail_20' ) start [2024-12-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117885', 'tblTempUsageDetail_20' ) end [2024-12-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117885', 'tblTempVendorCDR_20' ) start [2024-12-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117885', 'tblTempVendorCDR_20' ) end [2024-12-28 00:33:17] Production.INFO: ProcessCDR(1,14117885,1,1,2) [2024-12-28 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117885', 'tblTempUsageDetail_20' ) start [2024-12-28 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117885', 'tblTempUsageDetail_20' ) end [2024-12-28 00:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:33:20] Production.INFO: ==14714== Releasing lock... [2024-12-28 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:33:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:34:04 [end_date_ymd] => 2024-12-28 00:34:04 [RateCDR] => 1 ) [2024-12-28 00: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-27 21:34:04' and `end` < '2024-12-28 00: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-28 00:34:17] Production.INFO: count ==454 [2024-12-28 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:34:04 - End Time 2024-12-28 00:34:04 [2024-12-28 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117890', 'tblTempUsageDetail_20' ) start [2024-12-28 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117890', 'tblTempUsageDetail_20' ) end [2024-12-28 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117890', 'tblTempVendorCDR_20' ) start [2024-12-28 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117890', 'tblTempVendorCDR_20' ) end [2024-12-28 00:34:17] Production.INFO: ProcessCDR(1,14117890,1,1,2) [2024-12-28 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117890', 'tblTempUsageDetail_20' ) start [2024-12-28 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117890', 'tblTempUsageDetail_20' ) end [2024-12-28 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:34:20] Production.INFO: ==14783== Releasing lock... [2024-12-28 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:34:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:35:05 [end_date_ymd] => 2024-12-28 00:35:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:35:05' and `end` < '2024-12-28 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-28 00:35:17] Production.INFO: count ==452 [2024-12-28 00:35:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:35:05 - End Time 2024-12-28 00:35:05 [2024-12-28 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117895', 'tblTempUsageDetail_20' ) start [2024-12-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117895', 'tblTempUsageDetail_20' ) end [2024-12-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117895', 'tblTempVendorCDR_20' ) start [2024-12-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117895', 'tblTempVendorCDR_20' ) end [2024-12-28 00:35:18] Production.INFO: ProcessCDR(1,14117895,1,1,2) [2024-12-28 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117895', 'tblTempUsageDetail_20' ) start [2024-12-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117895', 'tblTempUsageDetail_20' ) end [2024-12-28 00:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:35:21] Production.INFO: ==14863== Releasing lock... [2024-12-28 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:35:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:36:05 [end_date_ymd] => 2024-12-28 00:36:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:36:05' and `end` < '2024-12-28 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-28 00:36:17] Production.INFO: count ==455 [2024-12-28 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:36:05 - End Time 2024-12-28 00:36:05 [2024-12-28 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117900', 'tblTempUsageDetail_20' ) start [2024-12-28 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117900', 'tblTempUsageDetail_20' ) end [2024-12-28 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117900', 'tblTempVendorCDR_20' ) start [2024-12-28 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117900', 'tblTempVendorCDR_20' ) end [2024-12-28 00:36:17] Production.INFO: ProcessCDR(1,14117900,1,1,2) [2024-12-28 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117900', 'tblTempUsageDetail_20' ) start [2024-12-28 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117900', 'tblTempUsageDetail_20' ) end [2024-12-28 00:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:36:21] Production.INFO: ==14940== Releasing lock... [2024-12-28 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:36:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:37:05 [end_date_ymd] => 2024-12-28 00:37:05 [RateCDR] => 1 ) [2024-12-28 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:37:05' and `end` < '2024-12-28 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:37:17] Production.INFO: count ==455 [2024-12-28 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:37:05 - End Time 2024-12-28 00:37:05 [2024-12-28 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117905', 'tblTempUsageDetail_20' ) start [2024-12-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117905', 'tblTempUsageDetail_20' ) end [2024-12-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117905', 'tblTempVendorCDR_20' ) start [2024-12-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117905', 'tblTempVendorCDR_20' ) end [2024-12-28 00:37:17] Production.INFO: ProcessCDR(1,14117905,1,1,2) [2024-12-28 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117905', 'tblTempUsageDetail_20' ) start [2024-12-28 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117905', 'tblTempUsageDetail_20' ) end [2024-12-28 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:37:20] Production.INFO: ==15023== Releasing lock... [2024-12-28 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:37:20] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:38:05 [end_date_ymd] => 2024-12-28 00:38:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:38:05' and `end` < '2024-12-28 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-28 00:38:18] Production.INFO: count ==455 [2024-12-28 00:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:38:05 - End Time 2024-12-28 00:38:05 [2024-12-28 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117907', 'tblTempUsageDetail_20' ) start [2024-12-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117907', 'tblTempUsageDetail_20' ) end [2024-12-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117907', 'tblTempVendorCDR_20' ) start [2024-12-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117907', 'tblTempVendorCDR_20' ) end [2024-12-28 00:38:18] Production.INFO: ProcessCDR(1,14117907,1,1,2) [2024-12-28 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117907', 'tblTempUsageDetail_20' ) start [2024-12-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117907', 'tblTempUsageDetail_20' ) end [2024-12-28 00:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:38:21] Production.INFO: ==15098== Releasing lock... [2024-12-28 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:39:05 [end_date_ymd] => 2024-12-28 00:39:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:39:05' and `end` < '2024-12-28 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-28 00:39:17] Production.INFO: count ==454 [2024-12-28 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:39:05 - End Time 2024-12-28 00:39:05 [2024-12-28 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117915', 'tblTempUsageDetail_20' ) start [2024-12-28 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117915', 'tblTempUsageDetail_20' ) end [2024-12-28 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117915', 'tblTempVendorCDR_20' ) start [2024-12-28 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117915', 'tblTempVendorCDR_20' ) end [2024-12-28 00:39:17] Production.INFO: ProcessCDR(1,14117915,1,1,2) [2024-12-28 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117915', 'tblTempUsageDetail_20' ) start [2024-12-28 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117915', 'tblTempUsageDetail_20' ) end [2024-12-28 00:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:39:20] Production.INFO: ==15174== Releasing lock... [2024-12-28 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:39:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:40:06 [end_date_ymd] => 2024-12-28 00:40:06 [RateCDR] => 1 ) [2024-12-28 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-27 21:40:06' and `end` < '2024-12-28 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-28 00:40:18] Production.INFO: count ==462 [2024-12-28 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:40:06 - End Time 2024-12-28 00:40:06 [2024-12-28 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117921', 'tblTempUsageDetail_20' ) start [2024-12-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117921', 'tblTempUsageDetail_20' ) end [2024-12-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117921', 'tblTempVendorCDR_20' ) start [2024-12-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117921', 'tblTempVendorCDR_20' ) end [2024-12-28 00:40:18] Production.INFO: ProcessCDR(1,14117921,1,1,2) [2024-12-28 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117921', 'tblTempUsageDetail_20' ) start [2024-12-28 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117921', 'tblTempUsageDetail_20' ) end [2024-12-28 00:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:40:22] Production.INFO: ==15258== Releasing lock... [2024-12-28 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:40:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:41:04 [end_date_ymd] => 2024-12-28 00:41:04 [RateCDR] => 1 ) [2024-12-28 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:41:04' and `end` < '2024-12-28 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:41:17] Production.INFO: count ==486 [2024-12-28 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:41:04 - End Time 2024-12-28 00:41:04 [2024-12-28 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117926', 'tblTempUsageDetail_20' ) start [2024-12-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117926', 'tblTempUsageDetail_20' ) end [2024-12-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117926', 'tblTempVendorCDR_20' ) start [2024-12-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117926', 'tblTempVendorCDR_20' ) end [2024-12-28 00:41:17] Production.INFO: ProcessCDR(1,14117926,1,1,2) [2024-12-28 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117926', 'tblTempUsageDetail_20' ) start [2024-12-28 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117926', 'tblTempUsageDetail_20' ) end [2024-12-28 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:41:20] Production.INFO: ==15338== Releasing lock... [2024-12-28 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:41:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:42:05 [end_date_ymd] => 2024-12-28 00:42:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:42:05' and `end` < '2024-12-28 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-28 00:42:18] Production.INFO: count ==486 [2024-12-28 00:42:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:42:05 - End Time 2024-12-28 00:42:05 [2024-12-28 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117931', 'tblTempUsageDetail_20' ) start [2024-12-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117931', 'tblTempUsageDetail_20' ) end [2024-12-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117931', 'tblTempVendorCDR_20' ) start [2024-12-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117931', 'tblTempVendorCDR_20' ) end [2024-12-28 00:42:18] Production.INFO: ProcessCDR(1,14117931,1,1,2) [2024-12-28 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117931', 'tblTempUsageDetail_20' ) start [2024-12-28 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117931', 'tblTempUsageDetail_20' ) end [2024-12-28 00:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:42:21] Production.INFO: ==15415== Releasing lock... [2024-12-28 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:42:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:43:04 [end_date_ymd] => 2024-12-28 00:43:04 [RateCDR] => 1 ) [2024-12-28 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:43:04' and `end` < '2024-12-28 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:43:16] Production.INFO: count ==487 [2024-12-28 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:43:04 - End Time 2024-12-28 00:43:04 [2024-12-28 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117936', 'tblTempUsageDetail_20' ) start [2024-12-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117936', 'tblTempUsageDetail_20' ) end [2024-12-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117936', 'tblTempVendorCDR_20' ) start [2024-12-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117936', 'tblTempVendorCDR_20' ) end [2024-12-28 00:43:17] Production.INFO: ProcessCDR(1,14117936,1,1,2) [2024-12-28 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117936', 'tblTempUsageDetail_20' ) start [2024-12-28 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117936', 'tblTempUsageDetail_20' ) end [2024-12-28 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:43:20] Production.INFO: ==15493== Releasing lock... [2024-12-28 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:43:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:44:05 [end_date_ymd] => 2024-12-28 00:44:05 [RateCDR] => 1 ) [2024-12-28 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:44:05' and `end` < '2024-12-28 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:44:18] Production.INFO: count ==488 [2024-12-28 00:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:44:05 - End Time 2024-12-28 00:44:05 [2024-12-28 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117941', 'tblTempUsageDetail_20' ) start [2024-12-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117941', 'tblTempUsageDetail_20' ) end [2024-12-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117941', 'tblTempVendorCDR_20' ) start [2024-12-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117941', 'tblTempVendorCDR_20' ) end [2024-12-28 00:44:18] Production.INFO: ProcessCDR(1,14117941,1,1,2) [2024-12-28 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117941', 'tblTempUsageDetail_20' ) start [2024-12-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117941', 'tblTempUsageDetail_20' ) end [2024-12-28 00:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:44:21] Production.INFO: ==15570== Releasing lock... [2024-12-28 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:45:05 [end_date_ymd] => 2024-12-28 00:45:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:45:05' and `end` < '2024-12-28 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-28 00:45:17] Production.INFO: count ==487 [2024-12-28 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:45:05 - End Time 2024-12-28 00:45:05 [2024-12-28 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117946', 'tblTempUsageDetail_20' ) start [2024-12-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117946', 'tblTempUsageDetail_20' ) end [2024-12-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117946', 'tblTempVendorCDR_20' ) start [2024-12-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117946', 'tblTempVendorCDR_20' ) end [2024-12-28 00:45:17] Production.INFO: ProcessCDR(1,14117946,1,1,2) [2024-12-28 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117946', 'tblTempUsageDetail_20' ) start [2024-12-28 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117946', 'tblTempUsageDetail_20' ) end [2024-12-28 00:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:45:21] Production.INFO: ==15652== Releasing lock... [2024-12-28 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:46:05 [end_date_ymd] => 2024-12-28 00:46:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:46:05' and `end` < '2024-12-28 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-28 00:46:18] Production.INFO: count ==487 [2024-12-28 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:46:05 - End Time 2024-12-28 00:46:05 [2024-12-28 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117951', 'tblTempUsageDetail_20' ) start [2024-12-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117951', 'tblTempUsageDetail_20' ) end [2024-12-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117951', 'tblTempVendorCDR_20' ) start [2024-12-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117951', 'tblTempVendorCDR_20' ) end [2024-12-28 00:46:18] Production.INFO: ProcessCDR(1,14117951,1,1,2) [2024-12-28 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117951', 'tblTempUsageDetail_20' ) start [2024-12-28 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117951', 'tblTempUsageDetail_20' ) end [2024-12-28 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:46:21] Production.INFO: ==15727== Releasing lock... [2024-12-28 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:46:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:47:05 [end_date_ymd] => 2024-12-28 00:47:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:47:05' and `end` < '2024-12-28 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-28 00:47:19] Production.INFO: count ==486 [2024-12-28 00:47:19] Production.ERROR: pbx CDR StartTime 2024-12-27 21:47:05 - End Time 2024-12-28 00:47:05 [2024-12-28 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117956', 'tblTempUsageDetail_20' ) start [2024-12-28 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117956', 'tblTempUsageDetail_20' ) end [2024-12-28 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117956', 'tblTempVendorCDR_20' ) start [2024-12-28 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117956', 'tblTempVendorCDR_20' ) end [2024-12-28 00:47:19] Production.INFO: ProcessCDR(1,14117956,1,1,2) [2024-12-28 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117956', 'tblTempUsageDetail_20' ) start [2024-12-28 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117956', 'tblTempUsageDetail_20' ) end [2024-12-28 00:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:47:22] Production.INFO: ==15807== Releasing lock... [2024-12-28 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:47:22] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:48:05 [end_date_ymd] => 2024-12-28 00:48:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:48:05' and `end` < '2024-12-28 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-28 00:48:19] Production.INFO: count ==486 [2024-12-28 00:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 21:48:05 - End Time 2024-12-28 00:48:05 [2024-12-28 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117961', 'tblTempUsageDetail_20' ) start [2024-12-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117961', 'tblTempUsageDetail_20' ) end [2024-12-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117961', 'tblTempVendorCDR_20' ) start [2024-12-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117961', 'tblTempVendorCDR_20' ) end [2024-12-28 00:48:19] Production.INFO: ProcessCDR(1,14117961,1,1,2) [2024-12-28 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117961', 'tblTempUsageDetail_20' ) start [2024-12-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117961', 'tblTempUsageDetail_20' ) end [2024-12-28 00:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:48:22] Production.INFO: ==15883== Releasing lock... [2024-12-28 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:48:22] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:49:04 [end_date_ymd] => 2024-12-28 00:49:04 [RateCDR] => 1 ) [2024-12-28 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:49:04' and `end` < '2024-12-28 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:49:18] Production.INFO: count ==485 [2024-12-28 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:49:04 - End Time 2024-12-28 00:49:04 [2024-12-28 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117966', 'tblTempUsageDetail_20' ) start [2024-12-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117966', 'tblTempUsageDetail_20' ) end [2024-12-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117966', 'tblTempVendorCDR_20' ) start [2024-12-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117966', 'tblTempVendorCDR_20' ) end [2024-12-28 00:49:18] Production.INFO: ProcessCDR(1,14117966,1,1,2) [2024-12-28 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117966', 'tblTempUsageDetail_20' ) start [2024-12-28 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117966', 'tblTempUsageDetail_20' ) end [2024-12-28 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:49:21] Production.INFO: ==15998== Releasing lock... [2024-12-28 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:49:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:50:05 [end_date_ymd] => 2024-12-28 00:50:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:50:05' and `end` < '2024-12-28 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-28 00:50:18] Production.INFO: count ==492 [2024-12-28 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:50:05 - End Time 2024-12-28 00:50:05 [2024-12-28 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117971', 'tblTempUsageDetail_20' ) start [2024-12-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117971', 'tblTempUsageDetail_20' ) end [2024-12-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117971', 'tblTempVendorCDR_20' ) start [2024-12-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117971', 'tblTempVendorCDR_20' ) end [2024-12-28 00:50:18] Production.INFO: ProcessCDR(1,14117971,1,1,2) [2024-12-28 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117971', 'tblTempUsageDetail_20' ) start [2024-12-28 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117971', 'tblTempUsageDetail_20' ) end [2024-12-28 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:50:21] Production.INFO: ==16077== Releasing lock... [2024-12-28 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:50:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:51:06 [end_date_ymd] => 2024-12-28 00:51:06 [RateCDR] => 1 ) [2024-12-28 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:51:06' and `end` < '2024-12-28 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:51:19] Production.INFO: count ==505 [2024-12-28 00:51:20] Production.ERROR: pbx CDR StartTime 2024-12-27 21:51:06 - End Time 2024-12-28 00:51:06 [2024-12-28 00:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117977', 'tblTempUsageDetail_20' ) start [2024-12-28 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117977', 'tblTempUsageDetail_20' ) end [2024-12-28 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117977', 'tblTempVendorCDR_20' ) start [2024-12-28 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117977', 'tblTempVendorCDR_20' ) end [2024-12-28 00:51:20] Production.INFO: ProcessCDR(1,14117977,1,1,2) [2024-12-28 00:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117977', 'tblTempUsageDetail_20' ) start [2024-12-28 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117977', 'tblTempUsageDetail_20' ) end [2024-12-28 00:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:51:23] Production.INFO: ==16159== Releasing lock... [2024-12-28 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:51:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:52:05 [end_date_ymd] => 2024-12-28 00:52:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:52:05' and `end` < '2024-12-28 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-28 00:52:17] Production.INFO: count ==504 [2024-12-28 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:52:05 - End Time 2024-12-28 00:52:05 [2024-12-28 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117982', 'tblTempUsageDetail_20' ) start [2024-12-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117982', 'tblTempUsageDetail_20' ) end [2024-12-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117982', 'tblTempVendorCDR_20' ) start [2024-12-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117982', 'tblTempVendorCDR_20' ) end [2024-12-28 00:52:17] Production.INFO: ProcessCDR(1,14117982,1,1,2) [2024-12-28 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117982', 'tblTempUsageDetail_20' ) start [2024-12-28 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117982', 'tblTempUsageDetail_20' ) end [2024-12-28 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:52:20] Production.INFO: ==16230== Releasing lock... [2024-12-28 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:52:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:53:05 [end_date_ymd] => 2024-12-28 00:53:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:53:05' and `end` < '2024-12-28 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-28 00:53:18] Production.INFO: count ==502 [2024-12-28 00:53:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:53:05 - End Time 2024-12-28 00:53:05 [2024-12-28 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117987', 'tblTempUsageDetail_20' ) start [2024-12-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117987', 'tblTempUsageDetail_20' ) end [2024-12-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117987', 'tblTempVendorCDR_20' ) start [2024-12-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117987', 'tblTempVendorCDR_20' ) end [2024-12-28 00:53:18] Production.INFO: ProcessCDR(1,14117987,1,1,2) [2024-12-28 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117987', 'tblTempUsageDetail_20' ) start [2024-12-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117987', 'tblTempUsageDetail_20' ) end [2024-12-28 00:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:53:21] Production.INFO: ==16305== Releasing lock... [2024-12-28 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:53:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:54:04 [end_date_ymd] => 2024-12-28 00:54:04 [RateCDR] => 1 ) [2024-12-28 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-27 21:54:04' and `end` < '2024-12-28 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-28 00:54:17] Production.INFO: count ==502 [2024-12-28 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:54:04 - End Time 2024-12-28 00:54:04 [2024-12-28 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117992', 'tblTempUsageDetail_20' ) start [2024-12-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117992', 'tblTempUsageDetail_20' ) end [2024-12-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117992', 'tblTempVendorCDR_20' ) start [2024-12-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117992', 'tblTempVendorCDR_20' ) end [2024-12-28 00:54:17] Production.INFO: ProcessCDR(1,14117992,1,1,2) [2024-12-28 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117992', 'tblTempUsageDetail_20' ) start [2024-12-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117992', 'tblTempUsageDetail_20' ) end [2024-12-28 00:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:54:21] Production.INFO: ==16381== Releasing lock... [2024-12-28 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:54:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:55:05 [end_date_ymd] => 2024-12-28 00:55:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:55:05' and `end` < '2024-12-28 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-28 00:55:17] Production.INFO: count ==501 [2024-12-28 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:55:05 - End Time 2024-12-28 00:55:05 [2024-12-28 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117997', 'tblTempUsageDetail_20' ) start [2024-12-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117997', 'tblTempUsageDetail_20' ) end [2024-12-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117997', 'tblTempVendorCDR_20' ) start [2024-12-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117997', 'tblTempVendorCDR_20' ) end [2024-12-28 00:55:18] Production.INFO: ProcessCDR(1,14117997,1,1,2) [2024-12-28 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117997', 'tblTempUsageDetail_20' ) start [2024-12-28 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117997', 'tblTempUsageDetail_20' ) end [2024-12-28 00:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:55:21] Production.INFO: ==16455== Releasing lock... [2024-12-28 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:55:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:56:04 [end_date_ymd] => 2024-12-28 00:56:04 [RateCDR] => 1 ) [2024-12-28 00:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 21:56:04' and `end` < '2024-12-28 00:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 00:56:17] Production.INFO: count ==497 [2024-12-28 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:56:04 - End Time 2024-12-28 00:56:04 [2024-12-28 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118002', 'tblTempUsageDetail_20' ) start [2024-12-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118002', 'tblTempUsageDetail_20' ) end [2024-12-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118002', 'tblTempVendorCDR_20' ) start [2024-12-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118002', 'tblTempVendorCDR_20' ) end [2024-12-28 00:56:17] Production.INFO: ProcessCDR(1,14118002,1,1,2) [2024-12-28 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118002', 'tblTempUsageDetail_20' ) start [2024-12-28 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118002', 'tblTempUsageDetail_20' ) end [2024-12-28 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:56:20] Production.INFO: ==16530== Releasing lock... [2024-12-28 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:56:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:57:05 [end_date_ymd] => 2024-12-28 00:57:05 [RateCDR] => 1 ) [2024-12-28 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-27 21:57:05' and `end` < '2024-12-28 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-28 00:57:17] Production.INFO: count ==419 [2024-12-28 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:57:05 - End Time 2024-12-28 00:57:05 [2024-12-28 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118007', 'tblTempUsageDetail_20' ) start [2024-12-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118007', 'tblTempUsageDetail_20' ) end [2024-12-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118007', 'tblTempVendorCDR_20' ) start [2024-12-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118007', 'tblTempVendorCDR_20' ) end [2024-12-28 00:57:18] Production.INFO: ProcessCDR(1,14118007,1,1,2) [2024-12-28 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118007', 'tblTempUsageDetail_20' ) start [2024-12-28 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118007', 'tblTempUsageDetail_20' ) end [2024-12-28 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:57:20] Production.INFO: ==16606== Releasing lock... [2024-12-28 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:57:20] Production.INFO: 32 MB #Memory Used# [2024-12-28 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:58:04 [end_date_ymd] => 2024-12-28 00:58:04 [RateCDR] => 1 ) [2024-12-28 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-27 21:58:04' and `end` < '2024-12-28 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-28 00:58:17] Production.INFO: count ==353 [2024-12-28 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-27 21:58:04 - End Time 2024-12-28 00:58:04 [2024-12-28 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118012', 'tblTempUsageDetail_20' ) start [2024-12-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118012', 'tblTempUsageDetail_20' ) end [2024-12-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118012', 'tblTempVendorCDR_20' ) start [2024-12-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118012', 'tblTempVendorCDR_20' ) end [2024-12-28 00:58:17] Production.INFO: ProcessCDR(1,14118012,1,1,2) [2024-12-28 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118012', 'tblTempUsageDetail_20' ) start [2024-12-28 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118012', 'tblTempUsageDetail_20' ) end [2024-12-28 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:58:21] Production.INFO: ==16679== Releasing lock... [2024-12-28 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:58:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 21:59:04 [end_date_ymd] => 2024-12-28 00:59:04 [RateCDR] => 1 ) [2024-12-28 00: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-27 21:59:04' and `end` < '2024-12-28 00: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-28 00:59:17] Production.INFO: count ==353 [2024-12-28 00:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 21:59:04 - End Time 2024-12-28 00:59:04 [2024-12-28 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118013', 'tblTempUsageDetail_20' ) start [2024-12-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118013', 'tblTempUsageDetail_20' ) end [2024-12-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118013', 'tblTempVendorCDR_20' ) start [2024-12-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118013', 'tblTempVendorCDR_20' ) end [2024-12-28 00:59:18] Production.INFO: ProcessCDR(1,14118013,1,1,2) [2024-12-28 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118013', 'tblTempUsageDetail_20' ) start [2024-12-28 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118013', 'tblTempUsageDetail_20' ) end [2024-12-28 00:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 00:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 00:59:21] Production.INFO: ==16751== Releasing lock... [2024-12-28 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 00:59:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:00:06 [end_date_ymd] => 2024-12-28 01:00:06 [RateCDR] => 1 ) [2024-12-28 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:00:06' and `end` < '2024-12-28 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:00:18] Production.INFO: count ==358 [2024-12-28 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:00:06 - End Time 2024-12-28 01:00:06 [2024-12-28 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118023', 'tblTempUsageDetail_20' ) start [2024-12-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118023', 'tblTempUsageDetail_20' ) end [2024-12-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118023', 'tblTempVendorCDR_20' ) start [2024-12-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118023', 'tblTempVendorCDR_20' ) end [2024-12-28 01:00:18] Production.INFO: ProcessCDR(1,14118023,1,1,2) [2024-12-28 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118023', 'tblTempUsageDetail_20' ) start [2024-12-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118023', 'tblTempUsageDetail_20' ) end [2024-12-28 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:00:21] Production.INFO: ==16829== Releasing lock... [2024-12-28 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:00:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:01:05 [end_date_ymd] => 2024-12-28 01:01:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:01:05' and `end` < '2024-12-28 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-28 01:01:18] Production.INFO: count ==355 [2024-12-28 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:01:05 - End Time 2024-12-28 01:01:05 [2024-12-28 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118028', 'tblTempUsageDetail_20' ) start [2024-12-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118028', 'tblTempUsageDetail_20' ) end [2024-12-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118028', 'tblTempVendorCDR_20' ) start [2024-12-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118028', 'tblTempVendorCDR_20' ) end [2024-12-28 01:01:18] Production.INFO: ProcessCDR(1,14118028,1,1,2) [2024-12-28 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118028', 'tblTempUsageDetail_20' ) start [2024-12-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118028', 'tblTempUsageDetail_20' ) end [2024-12-28 01:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:01:21] Production.INFO: ==16918== Releasing lock... [2024-12-28 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:01:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:02:05 [end_date_ymd] => 2024-12-28 01:02:05 [RateCDR] => 1 ) [2024-12-28 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:02:05' and `end` < '2024-12-28 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:02:19] Production.INFO: count ==355 [2024-12-28 01:02:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:02:05 - End Time 2024-12-28 01:02:05 [2024-12-28 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118033', 'tblTempUsageDetail_20' ) start [2024-12-28 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118033', 'tblTempUsageDetail_20' ) end [2024-12-28 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118033', 'tblTempVendorCDR_20' ) start [2024-12-28 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118033', 'tblTempVendorCDR_20' ) end [2024-12-28 01:02:19] Production.INFO: ProcessCDR(1,14118033,1,1,2) [2024-12-28 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118033', 'tblTempUsageDetail_20' ) start [2024-12-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118033', 'tblTempUsageDetail_20' ) end [2024-12-28 01:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:02:22] Production.INFO: ==17002== Releasing lock... [2024-12-28 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:02:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:03:04 [end_date_ymd] => 2024-12-28 01:03:04 [RateCDR] => 1 ) [2024-12-28 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-27 22:03:04' and `end` < '2024-12-28 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-28 01:03:19] Production.INFO: count ==354 [2024-12-28 01:03:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:03:04 - End Time 2024-12-28 01:03:04 [2024-12-28 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118038', 'tblTempUsageDetail_20' ) start [2024-12-28 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118038', 'tblTempUsageDetail_20' ) end [2024-12-28 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118038', 'tblTempVendorCDR_20' ) start [2024-12-28 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118038', 'tblTempVendorCDR_20' ) end [2024-12-28 01:03:19] Production.INFO: ProcessCDR(1,14118038,1,1,2) [2024-12-28 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118038', 'tblTempUsageDetail_20' ) start [2024-12-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118038', 'tblTempUsageDetail_20' ) end [2024-12-28 01:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:03:22] Production.INFO: ==17072== Releasing lock... [2024-12-28 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:03:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:04:05 [end_date_ymd] => 2024-12-28 01:04:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:04:05' and `end` < '2024-12-28 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-28 01:04:18] Production.INFO: count ==354 [2024-12-28 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:04:05 - End Time 2024-12-28 01:04:05 [2024-12-28 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118043', 'tblTempUsageDetail_20' ) start [2024-12-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118043', 'tblTempUsageDetail_20' ) end [2024-12-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118043', 'tblTempVendorCDR_20' ) start [2024-12-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118043', 'tblTempVendorCDR_20' ) end [2024-12-28 01:04:18] Production.INFO: ProcessCDR(1,14118043,1,1,2) [2024-12-28 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118043', 'tblTempUsageDetail_20' ) start [2024-12-28 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118043', 'tblTempUsageDetail_20' ) end [2024-12-28 01:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:04:22] Production.INFO: ==17147== Releasing lock... [2024-12-28 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:04:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:05:06 [end_date_ymd] => 2024-12-28 01:05:06 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:05:06' and `end` < '2024-12-28 01: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-28 01:05:18] Production.INFO: count ==349 [2024-12-28 01:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:05:06 - End Time 2024-12-28 01:05:06 [2024-12-28 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118048', 'tblTempUsageDetail_20' ) start [2024-12-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118048', 'tblTempUsageDetail_20' ) end [2024-12-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118048', 'tblTempVendorCDR_20' ) start [2024-12-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118048', 'tblTempVendorCDR_20' ) end [2024-12-28 01:05:18] Production.INFO: ProcessCDR(1,14118048,1,1,2) [2024-12-28 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118048', 'tblTempUsageDetail_20' ) start [2024-12-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118048', 'tblTempUsageDetail_20' ) end [2024-12-28 01:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:05:21] Production.INFO: ==17259== Releasing lock... [2024-12-28 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:05:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:06:05 [end_date_ymd] => 2024-12-28 01:06:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:06:05' and `end` < '2024-12-28 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-28 01:06:18] Production.INFO: count ==347 [2024-12-28 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:06:05 - End Time 2024-12-28 01:06:05 [2024-12-28 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118053', 'tblTempUsageDetail_20' ) start [2024-12-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118053', 'tblTempUsageDetail_20' ) end [2024-12-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118053', 'tblTempVendorCDR_20' ) start [2024-12-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118053', 'tblTempVendorCDR_20' ) end [2024-12-28 01:06:18] Production.INFO: ProcessCDR(1,14118053,1,1,2) [2024-12-28 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118053', 'tblTempUsageDetail_20' ) start [2024-12-28 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118053', 'tblTempUsageDetail_20' ) end [2024-12-28 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:06:21] Production.INFO: ==17334== Releasing lock... [2024-12-28 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:06:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:07:05 [end_date_ymd] => 2024-12-28 01:07:05 [RateCDR] => 1 ) [2024-12-28 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:07:05' and `end` < '2024-12-28 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:07:20] Production.INFO: count ==345 [2024-12-28 01:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 22:07:05 - End Time 2024-12-28 01:07:05 [2024-12-28 01:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118058', 'tblTempUsageDetail_20' ) start [2024-12-28 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118058', 'tblTempUsageDetail_20' ) end [2024-12-28 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118058', 'tblTempVendorCDR_20' ) start [2024-12-28 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118058', 'tblTempVendorCDR_20' ) end [2024-12-28 01:07:20] Production.INFO: ProcessCDR(1,14118058,1,1,2) [2024-12-28 01:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118058', 'tblTempUsageDetail_20' ) start [2024-12-28 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118058', 'tblTempUsageDetail_20' ) end [2024-12-28 01:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:07:23] Production.INFO: ==17406== Releasing lock... [2024-12-28 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:07:23] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:08:05 [end_date_ymd] => 2024-12-28 01:08:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:08:05' and `end` < '2024-12-28 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-28 01:08:19] Production.INFO: count ==345 [2024-12-28 01:08:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:08:05 - End Time 2024-12-28 01:08:05 [2024-12-28 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118063', 'tblTempUsageDetail_20' ) start [2024-12-28 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118063', 'tblTempUsageDetail_20' ) end [2024-12-28 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118063', 'tblTempVendorCDR_20' ) start [2024-12-28 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118063', 'tblTempVendorCDR_20' ) end [2024-12-28 01:08:19] Production.INFO: ProcessCDR(1,14118063,1,1,2) [2024-12-28 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118063', 'tblTempUsageDetail_20' ) start [2024-12-28 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118063', 'tblTempUsageDetail_20' ) end [2024-12-28 01:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:08:22] Production.INFO: ==17487== Releasing lock... [2024-12-28 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:08:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:09:04 [end_date_ymd] => 2024-12-28 01:09:04 [RateCDR] => 1 ) [2024-12-28 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:09:04' and `end` < '2024-12-28 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:09:19] Production.INFO: count ==344 [2024-12-28 01:09:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:09:04 - End Time 2024-12-28 01:09:04 [2024-12-28 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118068', 'tblTempUsageDetail_20' ) start [2024-12-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118068', 'tblTempUsageDetail_20' ) end [2024-12-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118068', 'tblTempVendorCDR_20' ) start [2024-12-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118068', 'tblTempVendorCDR_20' ) end [2024-12-28 01:09:19] Production.INFO: ProcessCDR(1,14118068,1,1,2) [2024-12-28 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118068', 'tblTempUsageDetail_20' ) start [2024-12-28 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118068', 'tblTempUsageDetail_20' ) end [2024-12-28 01:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:09:22] Production.INFO: ==17555== Releasing lock... [2024-12-28 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:09:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:10:05 [end_date_ymd] => 2024-12-28 01:10:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:10:05' and `end` < '2024-12-28 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-28 01:10:19] Production.INFO: count ==350 [2024-12-28 01:10:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:10:05 - End Time 2024-12-28 01:10:05 [2024-12-28 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118073', 'tblTempUsageDetail_20' ) start [2024-12-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118073', 'tblTempUsageDetail_20' ) end [2024-12-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118073', 'tblTempVendorCDR_20' ) start [2024-12-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118073', 'tblTempVendorCDR_20' ) end [2024-12-28 01:10:19] Production.INFO: ProcessCDR(1,14118073,1,1,2) [2024-12-28 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118073', 'tblTempUsageDetail_20' ) start [2024-12-28 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118073', 'tblTempUsageDetail_20' ) end [2024-12-28 01:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:10:22] Production.INFO: ==17637== Releasing lock... [2024-12-28 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:10:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:11:05 [end_date_ymd] => 2024-12-28 01:11:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:11:05' and `end` < '2024-12-28 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-28 01:11:18] Production.INFO: count ==347 [2024-12-28 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:11:05 - End Time 2024-12-28 01:11:05 [2024-12-28 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118079', 'tblTempUsageDetail_20' ) start [2024-12-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118079', 'tblTempUsageDetail_20' ) end [2024-12-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118079', 'tblTempVendorCDR_20' ) start [2024-12-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118079', 'tblTempVendorCDR_20' ) end [2024-12-28 01:11:19] Production.INFO: ProcessCDR(1,14118079,1,1,2) [2024-12-28 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118079', 'tblTempUsageDetail_20' ) start [2024-12-28 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118079', 'tblTempUsageDetail_20' ) end [2024-12-28 01:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:11:22] Production.INFO: ==17709== Releasing lock... [2024-12-28 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:11:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:12:04 [end_date_ymd] => 2024-12-28 01:12:04 [RateCDR] => 1 ) [2024-12-28 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-27 22:12:04' and `end` < '2024-12-28 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-28 01:12:17] Production.INFO: count ==345 [2024-12-28 01:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:12:04 - End Time 2024-12-28 01:12:04 [2024-12-28 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118084', 'tblTempUsageDetail_20' ) start [2024-12-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118084', 'tblTempUsageDetail_20' ) end [2024-12-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118084', 'tblTempVendorCDR_20' ) start [2024-12-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118084', 'tblTempVendorCDR_20' ) end [2024-12-28 01:12:18] Production.INFO: ProcessCDR(1,14118084,1,1,2) [2024-12-28 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118084', 'tblTempUsageDetail_20' ) start [2024-12-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118084', 'tblTempUsageDetail_20' ) end [2024-12-28 01:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:12:21] Production.INFO: ==17780== Releasing lock... [2024-12-28 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:12:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:13:05 [end_date_ymd] => 2024-12-28 01:13:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:13:05' and `end` < '2024-12-28 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-28 01:13:17] Production.INFO: count ==344 [2024-12-28 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:13:05 - End Time 2024-12-28 01:13:05 [2024-12-28 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118089', 'tblTempUsageDetail_20' ) start [2024-12-28 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118089', 'tblTempUsageDetail_20' ) end [2024-12-28 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118089', 'tblTempVendorCDR_20' ) start [2024-12-28 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118089', 'tblTempVendorCDR_20' ) end [2024-12-28 01:13:17] Production.INFO: ProcessCDR(1,14118089,1,1,2) [2024-12-28 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118089', 'tblTempUsageDetail_20' ) start [2024-12-28 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118089', 'tblTempUsageDetail_20' ) end [2024-12-28 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:13:20] Production.INFO: ==17858== Releasing lock... [2024-12-28 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:13:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:14:04 [end_date_ymd] => 2024-12-28 01:14:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:14:04' and `end` < '2024-12-28 01: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-28 01:14:16] Production.INFO: count ==344 [2024-12-28 01:14:16] Production.ERROR: pbx CDR StartTime 2024-12-27 22:14:04 - End Time 2024-12-28 01:14:04 [2024-12-28 01:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118094', 'tblTempUsageDetail_20' ) start [2024-12-28 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118094', 'tblTempUsageDetail_20' ) end [2024-12-28 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118094', 'tblTempVendorCDR_20' ) start [2024-12-28 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118094', 'tblTempVendorCDR_20' ) end [2024-12-28 01:14:16] Production.INFO: ProcessCDR(1,14118094,1,1,2) [2024-12-28 01:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118094', 'tblTempUsageDetail_20' ) start [2024-12-28 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118094', 'tblTempUsageDetail_20' ) end [2024-12-28 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:14:20] Production.INFO: ==17936== Releasing lock... [2024-12-28 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:14:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:15:05 [end_date_ymd] => 2024-12-28 01:15:05 [RateCDR] => 1 ) [2024-12-28 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:15:05' and `end` < '2024-12-28 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:15:18] Production.INFO: count ==344 [2024-12-28 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:15:05 - End Time 2024-12-28 01:15:05 [2024-12-28 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118099', 'tblTempUsageDetail_20' ) start [2024-12-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118099', 'tblTempUsageDetail_20' ) end [2024-12-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118099', 'tblTempVendorCDR_20' ) start [2024-12-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118099', 'tblTempVendorCDR_20' ) end [2024-12-28 01:15:18] Production.INFO: ProcessCDR(1,14118099,1,1,2) [2024-12-28 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118099', 'tblTempUsageDetail_20' ) start [2024-12-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118099', 'tblTempUsageDetail_20' ) end [2024-12-28 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:15:21] Production.INFO: ==18010== Releasing lock... [2024-12-28 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:15:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:16:05 [end_date_ymd] => 2024-12-28 01:16:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:16:05' and `end` < '2024-12-28 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-28 01:16:17] Production.INFO: count ==344 [2024-12-28 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:16:05 - End Time 2024-12-28 01:16:05 [2024-12-28 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118104', 'tblTempUsageDetail_20' ) start [2024-12-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118104', 'tblTempUsageDetail_20' ) end [2024-12-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118104', 'tblTempVendorCDR_20' ) start [2024-12-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118104', 'tblTempVendorCDR_20' ) end [2024-12-28 01:16:17] Production.INFO: ProcessCDR(1,14118104,1,1,2) [2024-12-28 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118104', 'tblTempUsageDetail_20' ) start [2024-12-28 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118104', 'tblTempUsageDetail_20' ) end [2024-12-28 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:16:21] Production.INFO: ==18082== Releasing lock... [2024-12-28 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:16:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:17:04 [end_date_ymd] => 2024-12-28 01:17:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:17:04' and `end` < '2024-12-28 01: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-28 01:17:17] Production.INFO: count ==343 [2024-12-28 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:17:04 - End Time 2024-12-28 01:17:04 [2024-12-28 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118109', 'tblTempUsageDetail_20' ) start [2024-12-28 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118109', 'tblTempUsageDetail_20' ) end [2024-12-28 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118109', 'tblTempVendorCDR_20' ) start [2024-12-28 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118109', 'tblTempVendorCDR_20' ) end [2024-12-28 01:17:17] Production.INFO: ProcessCDR(1,14118109,1,1,2) [2024-12-28 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118109', 'tblTempUsageDetail_20' ) start [2024-12-28 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118109', 'tblTempUsageDetail_20' ) end [2024-12-28 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:17:20] Production.INFO: ==18155== Releasing lock... [2024-12-28 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:17:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:18:05 [end_date_ymd] => 2024-12-28 01:18:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:18:05' and `end` < '2024-12-28 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-28 01:18:17] Production.INFO: count ==342 [2024-12-28 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:18:05 - End Time 2024-12-28 01:18:05 [2024-12-28 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118114', 'tblTempUsageDetail_20' ) start [2024-12-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118114', 'tblTempUsageDetail_20' ) end [2024-12-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118114', 'tblTempVendorCDR_20' ) start [2024-12-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118114', 'tblTempVendorCDR_20' ) end [2024-12-28 01:18:17] Production.INFO: ProcessCDR(1,14118114,1,1,2) [2024-12-28 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118114', 'tblTempUsageDetail_20' ) start [2024-12-28 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118114', 'tblTempUsageDetail_20' ) end [2024-12-28 01:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:18:20] Production.INFO: ==18226== Releasing lock... [2024-12-28 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:18:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:19:04 [end_date_ymd] => 2024-12-28 01:19:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:19:04' and `end` < '2024-12-28 01: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-28 01:19:17] Production.INFO: count ==340 [2024-12-28 01:19:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:19:04 - End Time 2024-12-28 01:19:04 [2024-12-28 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118119', 'tblTempUsageDetail_20' ) start [2024-12-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118119', 'tblTempUsageDetail_20' ) end [2024-12-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118119', 'tblTempVendorCDR_20' ) start [2024-12-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118119', 'tblTempVendorCDR_20' ) end [2024-12-28 01:19:17] Production.INFO: ProcessCDR(1,14118119,1,1,2) [2024-12-28 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118119', 'tblTempUsageDetail_20' ) start [2024-12-28 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118119', 'tblTempUsageDetail_20' ) end [2024-12-28 01:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:19:20] Production.INFO: ==18298== Releasing lock... [2024-12-28 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:19:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:20:06 [end_date_ymd] => 2024-12-28 01:20:06 [RateCDR] => 1 ) [2024-12-28 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-27 22:20:06' and `end` < '2024-12-28 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-28 01:20:18] Production.INFO: count ==348 [2024-12-28 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:20:06 - End Time 2024-12-28 01:20:06 [2024-12-28 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118125', 'tblTempUsageDetail_20' ) start [2024-12-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118125', 'tblTempUsageDetail_20' ) end [2024-12-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118125', 'tblTempVendorCDR_20' ) start [2024-12-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118125', 'tblTempVendorCDR_20' ) end [2024-12-28 01:20:18] Production.INFO: ProcessCDR(1,14118125,1,1,2) [2024-12-28 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118125', 'tblTempUsageDetail_20' ) start [2024-12-28 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118125', 'tblTempUsageDetail_20' ) end [2024-12-28 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:20:21] Production.INFO: ==18415== Releasing lock... [2024-12-28 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:20:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:21:05 [end_date_ymd] => 2024-12-28 01:21:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:21:05' and `end` < '2024-12-28 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-28 01:21:19] Production.INFO: count ==376 [2024-12-28 01:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:21:05 - End Time 2024-12-28 01:21:05 [2024-12-28 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118130', 'tblTempUsageDetail_20' ) start [2024-12-28 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118130', 'tblTempUsageDetail_20' ) end [2024-12-28 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118130', 'tblTempVendorCDR_20' ) start [2024-12-28 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118130', 'tblTempVendorCDR_20' ) end [2024-12-28 01:21:19] Production.INFO: ProcessCDR(1,14118130,1,1,2) [2024-12-28 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118130', 'tblTempUsageDetail_20' ) start [2024-12-28 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118130', 'tblTempUsageDetail_20' ) end [2024-12-28 01:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:21:22] Production.INFO: ==18490== Releasing lock... [2024-12-28 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:21:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:22:04 [end_date_ymd] => 2024-12-28 01:22:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:22:04' and `end` < '2024-12-28 01: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-28 01:22:18] Production.INFO: count ==378 [2024-12-28 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:22:04 - End Time 2024-12-28 01:22:04 [2024-12-28 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118132', 'tblTempUsageDetail_20' ) start [2024-12-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118132', 'tblTempUsageDetail_20' ) end [2024-12-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118132', 'tblTempVendorCDR_20' ) start [2024-12-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118132', 'tblTempVendorCDR_20' ) end [2024-12-28 01:22:18] Production.INFO: ProcessCDR(1,14118132,1,1,2) [2024-12-28 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118132', 'tblTempUsageDetail_20' ) start [2024-12-28 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118132', 'tblTempUsageDetail_20' ) end [2024-12-28 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:22:21] Production.INFO: ==18561== Releasing lock... [2024-12-28 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:22:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:23:05 [end_date_ymd] => 2024-12-28 01:23:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:23:05' and `end` < '2024-12-28 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-28 01:23:17] Production.INFO: count ==378 [2024-12-28 01:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:23:05 - End Time 2024-12-28 01:23:05 [2024-12-28 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118140', 'tblTempUsageDetail_20' ) start [2024-12-28 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118140', 'tblTempUsageDetail_20' ) end [2024-12-28 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118140', 'tblTempVendorCDR_20' ) start [2024-12-28 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118140', 'tblTempVendorCDR_20' ) end [2024-12-28 01:23:17] Production.INFO: ProcessCDR(1,14118140,1,1,2) [2024-12-28 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118140', 'tblTempUsageDetail_20' ) start [2024-12-28 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118140', 'tblTempUsageDetail_20' ) end [2024-12-28 01:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:23:20] Production.INFO: ==18632== Releasing lock... [2024-12-28 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:23:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:24:04 [end_date_ymd] => 2024-12-28 01:24:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:24:04' and `end` < '2024-12-28 01: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-28 01:24:18] Production.INFO: count ==377 [2024-12-28 01:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:24:04 - End Time 2024-12-28 01:24:04 [2024-12-28 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118145', 'tblTempUsageDetail_20' ) start [2024-12-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118145', 'tblTempUsageDetail_20' ) end [2024-12-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118145', 'tblTempVendorCDR_20' ) start [2024-12-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118145', 'tblTempVendorCDR_20' ) end [2024-12-28 01:24:18] Production.INFO: ProcessCDR(1,14118145,1,1,2) [2024-12-28 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118145', 'tblTempUsageDetail_20' ) start [2024-12-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118145', 'tblTempUsageDetail_20' ) end [2024-12-28 01:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:24:21] Production.INFO: ==18703== Releasing lock... [2024-12-28 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:24:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:25:05 [end_date_ymd] => 2024-12-28 01:25:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:25:05' and `end` < '2024-12-28 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-28 01:25:17] Production.INFO: count ==376 [2024-12-28 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:25:05 - End Time 2024-12-28 01:25:05 [2024-12-28 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118150', 'tblTempUsageDetail_20' ) start [2024-12-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118150', 'tblTempUsageDetail_20' ) end [2024-12-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118150', 'tblTempVendorCDR_20' ) start [2024-12-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118150', 'tblTempVendorCDR_20' ) end [2024-12-28 01:25:17] Production.INFO: ProcessCDR(1,14118150,1,1,2) [2024-12-28 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118150', 'tblTempUsageDetail_20' ) start [2024-12-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118150', 'tblTempUsageDetail_20' ) end [2024-12-28 01:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:25:21] Production.INFO: ==18773== Releasing lock... [2024-12-28 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:25:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:26:04 [end_date_ymd] => 2024-12-28 01:26:04 [RateCDR] => 1 ) [2024-12-28 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:26:04' and `end` < '2024-12-28 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:26:19] Production.INFO: count ==376 [2024-12-28 01:26:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:26:04 - End Time 2024-12-28 01:26:04 [2024-12-28 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118155', 'tblTempUsageDetail_20' ) start [2024-12-28 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118155', 'tblTempUsageDetail_20' ) end [2024-12-28 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118155', 'tblTempVendorCDR_20' ) start [2024-12-28 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118155', 'tblTempVendorCDR_20' ) end [2024-12-28 01:26:19] Production.INFO: ProcessCDR(1,14118155,1,1,2) [2024-12-28 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118155', 'tblTempUsageDetail_20' ) start [2024-12-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118155', 'tblTempUsageDetail_20' ) end [2024-12-28 01:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:26:22] Production.INFO: ==18842== Releasing lock... [2024-12-28 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:26:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:27:05 [end_date_ymd] => 2024-12-28 01:27:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:27:05' and `end` < '2024-12-28 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-28 01:27:18] Production.INFO: count ==376 [2024-12-28 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:27:05 - End Time 2024-12-28 01:27:05 [2024-12-28 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118160', 'tblTempUsageDetail_20' ) start [2024-12-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118160', 'tblTempUsageDetail_20' ) end [2024-12-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118160', 'tblTempVendorCDR_20' ) start [2024-12-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118160', 'tblTempVendorCDR_20' ) end [2024-12-28 01:27:18] Production.INFO: ProcessCDR(1,14118160,1,1,2) [2024-12-28 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118160', 'tblTempUsageDetail_20' ) start [2024-12-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118160', 'tblTempUsageDetail_20' ) end [2024-12-28 01:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:27:21] Production.INFO: ==18916== Releasing lock... [2024-12-28 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:27:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:28:05 [end_date_ymd] => 2024-12-28 01:28:05 [RateCDR] => 1 ) [2024-12-28 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:28:05' and `end` < '2024-12-28 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:28:19] Production.INFO: count ==376 [2024-12-28 01:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:28:05 - End Time 2024-12-28 01:28:05 [2024-12-28 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118165', 'tblTempUsageDetail_20' ) start [2024-12-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118165', 'tblTempUsageDetail_20' ) end [2024-12-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118165', 'tblTempVendorCDR_20' ) start [2024-12-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118165', 'tblTempVendorCDR_20' ) end [2024-12-28 01:28:19] Production.INFO: ProcessCDR(1,14118165,1,1,2) [2024-12-28 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118165', 'tblTempUsageDetail_20' ) start [2024-12-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118165', 'tblTempUsageDetail_20' ) end [2024-12-28 01:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:28:22] Production.INFO: ==18987== Releasing lock... [2024-12-28 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:28:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:29:05 [end_date_ymd] => 2024-12-28 01:29:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:29:05' and `end` < '2024-12-28 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-28 01:29:17] Production.INFO: count ==376 [2024-12-28 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:29:05 - End Time 2024-12-28 01:29:05 [2024-12-28 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118170', 'tblTempUsageDetail_20' ) start [2024-12-28 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118170', 'tblTempUsageDetail_20' ) end [2024-12-28 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118170', 'tblTempVendorCDR_20' ) start [2024-12-28 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118170', 'tblTempVendorCDR_20' ) end [2024-12-28 01:29:17] Production.INFO: ProcessCDR(1,14118170,1,1,2) [2024-12-28 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118170', 'tblTempUsageDetail_20' ) start [2024-12-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118170', 'tblTempUsageDetail_20' ) end [2024-12-28 01:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:29:21] Production.INFO: ==19057== Releasing lock... [2024-12-28 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:29:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:30:06 [end_date_ymd] => 2024-12-28 01:30:06 [RateCDR] => 1 ) [2024-12-28 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:30:06' and `end` < '2024-12-28 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:30:18] Production.INFO: count ==380 [2024-12-28 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:30:06 - End Time 2024-12-28 01:30:06 [2024-12-28 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118176', 'tblTempUsageDetail_20' ) start [2024-12-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118176', 'tblTempUsageDetail_20' ) end [2024-12-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118176', 'tblTempVendorCDR_20' ) start [2024-12-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118176', 'tblTempVendorCDR_20' ) end [2024-12-28 01:30:18] Production.INFO: ProcessCDR(1,14118176,1,1,2) [2024-12-28 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118176', 'tblTempUsageDetail_20' ) start [2024-12-28 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118176', 'tblTempUsageDetail_20' ) end [2024-12-28 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:30:21] Production.INFO: ==19130== Releasing lock... [2024-12-28 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:30:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:31:04 [end_date_ymd] => 2024-12-28 01:31:04 [RateCDR] => 1 ) [2024-12-28 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:31:04' and `end` < '2024-12-28 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:31:18] Production.INFO: count ==380 [2024-12-28 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:31:04 - End Time 2024-12-28 01:31:04 [2024-12-28 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118181', 'tblTempUsageDetail_20' ) start [2024-12-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118181', 'tblTempUsageDetail_20' ) end [2024-12-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118181', 'tblTempVendorCDR_20' ) start [2024-12-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118181', 'tblTempVendorCDR_20' ) end [2024-12-28 01:31:18] Production.INFO: ProcessCDR(1,14118181,1,1,2) [2024-12-28 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118181', 'tblTempUsageDetail_20' ) start [2024-12-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118181', 'tblTempUsageDetail_20' ) end [2024-12-28 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:31:21] Production.INFO: ==19206== Releasing lock... [2024-12-28 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:31:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:32:05 [end_date_ymd] => 2024-12-28 01:32:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:32:05' and `end` < '2024-12-28 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-28 01:32:17] Production.INFO: count ==379 [2024-12-28 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:32:05 - End Time 2024-12-28 01:32:05 [2024-12-28 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118186', 'tblTempUsageDetail_20' ) start [2024-12-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118186', 'tblTempUsageDetail_20' ) end [2024-12-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118186', 'tblTempVendorCDR_20' ) start [2024-12-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118186', 'tblTempVendorCDR_20' ) end [2024-12-28 01:32:17] Production.INFO: ProcessCDR(1,14118186,1,1,2) [2024-12-28 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118186', 'tblTempUsageDetail_20' ) start [2024-12-28 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118186', 'tblTempUsageDetail_20' ) end [2024-12-28 01:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:32:20] Production.INFO: ==19288== Releasing lock... [2024-12-28 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:32:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:33:05 [end_date_ymd] => 2024-12-28 01:33:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:33:05' and `end` < '2024-12-28 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-28 01:33:19] Production.INFO: count ==377 [2024-12-28 01:33:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:33:05 - End Time 2024-12-28 01:33:05 [2024-12-28 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118191', 'tblTempUsageDetail_20' ) start [2024-12-28 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118191', 'tblTempUsageDetail_20' ) end [2024-12-28 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118191', 'tblTempVendorCDR_20' ) start [2024-12-28 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118191', 'tblTempVendorCDR_20' ) end [2024-12-28 01:33:19] Production.INFO: ProcessCDR(1,14118191,1,1,2) [2024-12-28 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118191', 'tblTempUsageDetail_20' ) start [2024-12-28 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118191', 'tblTempUsageDetail_20' ) end [2024-12-28 01:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:33:22] Production.INFO: ==19366== Releasing lock... [2024-12-28 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:33:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:34:04 [end_date_ymd] => 2024-12-28 01:34:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:34:04' and `end` < '2024-12-28 01: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-28 01:34:18] Production.INFO: count ==374 [2024-12-28 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:34:04 - End Time 2024-12-28 01:34:04 [2024-12-28 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118196', 'tblTempUsageDetail_20' ) start [2024-12-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118196', 'tblTempUsageDetail_20' ) end [2024-12-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118196', 'tblTempVendorCDR_20' ) start [2024-12-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118196', 'tblTempVendorCDR_20' ) end [2024-12-28 01:34:18] Production.INFO: ProcessCDR(1,14118196,1,1,2) [2024-12-28 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118196', 'tblTempUsageDetail_20' ) start [2024-12-28 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118196', 'tblTempUsageDetail_20' ) end [2024-12-28 01:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:34:22] Production.INFO: ==19452== Releasing lock... [2024-12-28 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:34:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:35:05 [end_date_ymd] => 2024-12-28 01:35:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:35:05' and `end` < '2024-12-28 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-28 01:35:21] Production.INFO: count ==377 [2024-12-28 01:35:21] Production.ERROR: pbx CDR StartTime 2024-12-27 22:35:05 - End Time 2024-12-28 01:35:05 [2024-12-28 01:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118201', 'tblTempUsageDetail_20' ) start [2024-12-28 01:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118201', 'tblTempUsageDetail_20' ) end [2024-12-28 01:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118201', 'tblTempVendorCDR_20' ) start [2024-12-28 01:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118201', 'tblTempVendorCDR_20' ) end [2024-12-28 01:35:21] Production.INFO: ProcessCDR(1,14118201,1,1,2) [2024-12-28 01:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118201', 'tblTempUsageDetail_20' ) start [2024-12-28 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118201', 'tblTempUsageDetail_20' ) end [2024-12-28 01:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:35:24] Production.INFO: ==19532== Releasing lock... [2024-12-28 01:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:35:24] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:36:04 [end_date_ymd] => 2024-12-28 01:36:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:36:04' and `end` < '2024-12-28 01: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-28 01:36:19] Production.INFO: count ==377 [2024-12-28 01:36:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:36:04 - End Time 2024-12-28 01:36:04 [2024-12-28 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118206', 'tblTempUsageDetail_20' ) start [2024-12-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118206', 'tblTempUsageDetail_20' ) end [2024-12-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118206', 'tblTempVendorCDR_20' ) start [2024-12-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118206', 'tblTempVendorCDR_20' ) end [2024-12-28 01:36:19] Production.INFO: ProcessCDR(1,14118206,1,1,2) [2024-12-28 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118206', 'tblTempUsageDetail_20' ) start [2024-12-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118206', 'tblTempUsageDetail_20' ) end [2024-12-28 01:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:36:22] Production.INFO: ==19652== Releasing lock... [2024-12-28 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:36:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:37:04 [end_date_ymd] => 2024-12-28 01:37:04 [RateCDR] => 1 ) [2024-12-28 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:37:04' and `end` < '2024-12-28 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:37:19] Production.INFO: count ==377 [2024-12-28 01:37:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:37:04 - End Time 2024-12-28 01:37:04 [2024-12-28 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118211', 'tblTempUsageDetail_20' ) start [2024-12-28 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118211', 'tblTempUsageDetail_20' ) end [2024-12-28 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118211', 'tblTempVendorCDR_20' ) start [2024-12-28 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118211', 'tblTempVendorCDR_20' ) end [2024-12-28 01:37:19] Production.INFO: ProcessCDR(1,14118211,1,1,2) [2024-12-28 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118211', 'tblTempUsageDetail_20' ) start [2024-12-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118211', 'tblTempUsageDetail_20' ) end [2024-12-28 01:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:37:22] Production.INFO: ==19738== Releasing lock... [2024-12-28 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:37:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:38:05 [end_date_ymd] => 2024-12-28 01:38:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:38:05' and `end` < '2024-12-28 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-28 01:38:17] Production.INFO: count ==377 [2024-12-28 01:38:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:38:05 - End Time 2024-12-28 01:38:05 [2024-12-28 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118216', 'tblTempUsageDetail_20' ) start [2024-12-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118216', 'tblTempUsageDetail_20' ) end [2024-12-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118216', 'tblTempVendorCDR_20' ) start [2024-12-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118216', 'tblTempVendorCDR_20' ) end [2024-12-28 01:38:17] Production.INFO: ProcessCDR(1,14118216,1,1,2) [2024-12-28 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118216', 'tblTempUsageDetail_20' ) start [2024-12-28 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118216', 'tblTempUsageDetail_20' ) end [2024-12-28 01:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:38:20] Production.INFO: ==19820== Releasing lock... [2024-12-28 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:38:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:39:05 [end_date_ymd] => 2024-12-28 01:39:05 [RateCDR] => 1 ) [2024-12-28 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:39:05' and `end` < '2024-12-28 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:39:17] Production.INFO: count ==377 [2024-12-28 01:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:39:05 - End Time 2024-12-28 01:39:05 [2024-12-28 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118221', 'tblTempUsageDetail_20' ) start [2024-12-28 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118221', 'tblTempUsageDetail_20' ) end [2024-12-28 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118221', 'tblTempVendorCDR_20' ) start [2024-12-28 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118221', 'tblTempVendorCDR_20' ) end [2024-12-28 01:39:17] Production.INFO: ProcessCDR(1,14118221,1,1,2) [2024-12-28 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118221', 'tblTempUsageDetail_20' ) start [2024-12-28 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118221', 'tblTempUsageDetail_20' ) end [2024-12-28 01:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:39:20] Production.INFO: ==19902== Releasing lock... [2024-12-28 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:39:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:40:05 [end_date_ymd] => 2024-12-28 01:40:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:40:05' and `end` < '2024-12-28 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-28 01:40:18] Production.INFO: count ==383 [2024-12-28 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:40:05 - End Time 2024-12-28 01:40:05 [2024-12-28 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118226', 'tblTempUsageDetail_20' ) start [2024-12-28 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118226', 'tblTempUsageDetail_20' ) end [2024-12-28 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118226', 'tblTempVendorCDR_20' ) start [2024-12-28 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118226', 'tblTempVendorCDR_20' ) end [2024-12-28 01:40:18] Production.INFO: ProcessCDR(1,14118226,1,1,2) [2024-12-28 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118226', 'tblTempUsageDetail_20' ) start [2024-12-28 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118226', 'tblTempUsageDetail_20' ) end [2024-12-28 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:40:21] Production.INFO: ==19989== Releasing lock... [2024-12-28 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:40:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:41:04 [end_date_ymd] => 2024-12-28 01:41:04 [RateCDR] => 1 ) [2024-12-28 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-27 22:41:04' and `end` < '2024-12-28 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-28 01:41:17] Production.INFO: count ==391 [2024-12-28 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:41:04 - End Time 2024-12-28 01:41:04 [2024-12-28 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118232', 'tblTempUsageDetail_20' ) start [2024-12-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118232', 'tblTempUsageDetail_20' ) end [2024-12-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118232', 'tblTempVendorCDR_20' ) start [2024-12-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118232', 'tblTempVendorCDR_20' ) end [2024-12-28 01:41:18] Production.INFO: ProcessCDR(1,14118232,1,1,2) [2024-12-28 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118232', 'tblTempUsageDetail_20' ) start [2024-12-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118232', 'tblTempUsageDetail_20' ) end [2024-12-28 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:41:21] Production.INFO: ==20076== Releasing lock... [2024-12-28 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:41:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:42:05 [end_date_ymd] => 2024-12-28 01:42:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:42:05' and `end` < '2024-12-28 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-28 01:42:17] Production.INFO: count ==391 [2024-12-28 01:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:42:05 - End Time 2024-12-28 01:42:05 [2024-12-28 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118237', 'tblTempUsageDetail_20' ) start [2024-12-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118237', 'tblTempUsageDetail_20' ) end [2024-12-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118237', 'tblTempVendorCDR_20' ) start [2024-12-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118237', 'tblTempVendorCDR_20' ) end [2024-12-28 01:42:17] Production.INFO: ProcessCDR(1,14118237,1,1,2) [2024-12-28 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118237', 'tblTempUsageDetail_20' ) start [2024-12-28 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118237', 'tblTempUsageDetail_20' ) end [2024-12-28 01:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:42:20] Production.INFO: ==20156== Releasing lock... [2024-12-28 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:42:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:43:05 [end_date_ymd] => 2024-12-28 01:43:05 [RateCDR] => 1 ) [2024-12-28 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:43:05' and `end` < '2024-12-28 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:43:18] Production.INFO: count ==391 [2024-12-28 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:43:05 - End Time 2024-12-28 01:43:05 [2024-12-28 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118242', 'tblTempUsageDetail_20' ) start [2024-12-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118242', 'tblTempUsageDetail_20' ) end [2024-12-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118242', 'tblTempVendorCDR_20' ) start [2024-12-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118242', 'tblTempVendorCDR_20' ) end [2024-12-28 01:43:18] Production.INFO: ProcessCDR(1,14118242,1,1,2) [2024-12-28 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118242', 'tblTempUsageDetail_20' ) start [2024-12-28 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118242', 'tblTempUsageDetail_20' ) end [2024-12-28 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:43:21] Production.INFO: ==20233== Releasing lock... [2024-12-28 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:43:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:44:05 [end_date_ymd] => 2024-12-28 01:44:05 [RateCDR] => 1 ) [2024-12-28 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:44:05' and `end` < '2024-12-28 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:44:18] Production.INFO: count ==390 [2024-12-28 01:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:44:05 - End Time 2024-12-28 01:44:05 [2024-12-28 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118247', 'tblTempUsageDetail_20' ) start [2024-12-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118247', 'tblTempUsageDetail_20' ) end [2024-12-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118247', 'tblTempVendorCDR_20' ) start [2024-12-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118247', 'tblTempVendorCDR_20' ) end [2024-12-28 01:44:18] Production.INFO: ProcessCDR(1,14118247,1,1,2) [2024-12-28 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118247', 'tblTempUsageDetail_20' ) start [2024-12-28 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118247', 'tblTempUsageDetail_20' ) end [2024-12-28 01:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:44:21] Production.INFO: ==20309== Releasing lock... [2024-12-28 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:44:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:45:05 [end_date_ymd] => 2024-12-28 01:45:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:45:05' and `end` < '2024-12-28 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-28 01:45:18] Production.INFO: count ==387 [2024-12-28 01:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:45:05 - End Time 2024-12-28 01:45:05 [2024-12-28 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118252', 'tblTempUsageDetail_20' ) start [2024-12-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118252', 'tblTempUsageDetail_20' ) end [2024-12-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118252', 'tblTempVendorCDR_20' ) start [2024-12-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118252', 'tblTempVendorCDR_20' ) end [2024-12-28 01:45:18] Production.INFO: ProcessCDR(1,14118252,1,1,2) [2024-12-28 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118252', 'tblTempUsageDetail_20' ) start [2024-12-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118252', 'tblTempUsageDetail_20' ) end [2024-12-28 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:45:21] Production.INFO: ==20392== Releasing lock... [2024-12-28 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:45:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:46:05 [end_date_ymd] => 2024-12-28 01:46:05 [RateCDR] => 1 ) [2024-12-28 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:46:05' and `end` < '2024-12-28 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:46:17] Production.INFO: count ==386 [2024-12-28 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:46:05 - End Time 2024-12-28 01:46:05 [2024-12-28 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118257', 'tblTempUsageDetail_20' ) start [2024-12-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118257', 'tblTempUsageDetail_20' ) end [2024-12-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118257', 'tblTempVendorCDR_20' ) start [2024-12-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118257', 'tblTempVendorCDR_20' ) end [2024-12-28 01:46:17] Production.INFO: ProcessCDR(1,14118257,1,1,2) [2024-12-28 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118257', 'tblTempUsageDetail_20' ) start [2024-12-28 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118257', 'tblTempUsageDetail_20' ) end [2024-12-28 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:46:20] Production.INFO: ==20468== Releasing lock... [2024-12-28 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:46:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:47:05 [end_date_ymd] => 2024-12-28 01:47:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:47:05' and `end` < '2024-12-28 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-28 01:47:17] Production.INFO: count ==386 [2024-12-28 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:47:05 - End Time 2024-12-28 01:47:05 [2024-12-28 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118262', 'tblTempUsageDetail_20' ) start [2024-12-28 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118262', 'tblTempUsageDetail_20' ) end [2024-12-28 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118262', 'tblTempVendorCDR_20' ) start [2024-12-28 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118262', 'tblTempVendorCDR_20' ) end [2024-12-28 01:47:17] Production.INFO: ProcessCDR(1,14118262,1,1,2) [2024-12-28 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118262', 'tblTempUsageDetail_20' ) start [2024-12-28 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118262', 'tblTempUsageDetail_20' ) end [2024-12-28 01:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:47:20] Production.INFO: ==20556== Releasing lock... [2024-12-28 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:47:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:48:04 [end_date_ymd] => 2024-12-28 01:48:04 [RateCDR] => 1 ) [2024-12-28 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-27 22:48:04' and `end` < '2024-12-28 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-28 01:48:18] Production.INFO: count ==386 [2024-12-28 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:48:04 - End Time 2024-12-28 01:48:04 [2024-12-28 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118267', 'tblTempUsageDetail_20' ) start [2024-12-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118267', 'tblTempUsageDetail_20' ) end [2024-12-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118267', 'tblTempVendorCDR_20' ) start [2024-12-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118267', 'tblTempVendorCDR_20' ) end [2024-12-28 01:48:18] Production.INFO: ProcessCDR(1,14118267,1,1,2) [2024-12-28 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118267', 'tblTempUsageDetail_20' ) start [2024-12-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118267', 'tblTempUsageDetail_20' ) end [2024-12-28 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:48:21] Production.INFO: ==20627== Releasing lock... [2024-12-28 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:48:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:49:05 [end_date_ymd] => 2024-12-28 01:49:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:49:05' and `end` < '2024-12-28 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-28 01:49:18] Production.INFO: count ==388 [2024-12-28 01:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:49:05 - End Time 2024-12-28 01:49:05 [2024-12-28 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118272', 'tblTempUsageDetail_20' ) start [2024-12-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118272', 'tblTempUsageDetail_20' ) end [2024-12-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118272', 'tblTempVendorCDR_20' ) start [2024-12-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118272', 'tblTempVendorCDR_20' ) end [2024-12-28 01:49:18] Production.INFO: ProcessCDR(1,14118272,1,1,2) [2024-12-28 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118272', 'tblTempUsageDetail_20' ) start [2024-12-28 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118272', 'tblTempUsageDetail_20' ) end [2024-12-28 01:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:49:22] Production.INFO: ==20716== Releasing lock... [2024-12-28 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:49:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:50:06 [end_date_ymd] => 2024-12-28 01:50:06 [RateCDR] => 1 ) [2024-12-28 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-27 22:50:06' and `end` < '2024-12-28 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-28 01:50:18] Production.INFO: count ==396 [2024-12-28 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:50:06 - End Time 2024-12-28 01:50:06 [2024-12-28 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118278', 'tblTempUsageDetail_20' ) start [2024-12-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118278', 'tblTempUsageDetail_20' ) end [2024-12-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118278', 'tblTempVendorCDR_20' ) start [2024-12-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118278', 'tblTempVendorCDR_20' ) end [2024-12-28 01:50:18] Production.INFO: ProcessCDR(1,14118278,1,1,2) [2024-12-28 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118278', 'tblTempUsageDetail_20' ) start [2024-12-28 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118278', 'tblTempUsageDetail_20' ) end [2024-12-28 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:50:21] Production.INFO: ==20796== Releasing lock... [2024-12-28 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:50:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:51:05 [end_date_ymd] => 2024-12-28 01:51:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:51:05' and `end` < '2024-12-28 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-28 01:51:18] Production.INFO: count ==401 [2024-12-28 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:51:05 - End Time 2024-12-28 01:51:05 [2024-12-28 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118283', 'tblTempUsageDetail_20' ) start [2024-12-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118283', 'tblTempUsageDetail_20' ) end [2024-12-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118283', 'tblTempVendorCDR_20' ) start [2024-12-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118283', 'tblTempVendorCDR_20' ) end [2024-12-28 01:51:18] Production.INFO: ProcessCDR(1,14118283,1,1,2) [2024-12-28 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118283', 'tblTempUsageDetail_20' ) start [2024-12-28 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118283', 'tblTempUsageDetail_20' ) end [2024-12-28 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:51:21] Production.INFO: ==20876== Releasing lock... [2024-12-28 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:51:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:52:05 [end_date_ymd] => 2024-12-28 01:52:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:52:05' and `end` < '2024-12-28 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-28 01:52:18] Production.INFO: count ==401 [2024-12-28 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:52:05 - End Time 2024-12-28 01:52:05 [2024-12-28 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118288', 'tblTempUsageDetail_20' ) start [2024-12-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118288', 'tblTempUsageDetail_20' ) end [2024-12-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118288', 'tblTempVendorCDR_20' ) start [2024-12-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118288', 'tblTempVendorCDR_20' ) end [2024-12-28 01:52:18] Production.INFO: ProcessCDR(1,14118288,1,1,2) [2024-12-28 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118288', 'tblTempUsageDetail_20' ) start [2024-12-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118288', 'tblTempUsageDetail_20' ) end [2024-12-28 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:52:21] Production.INFO: ==20994== Releasing lock... [2024-12-28 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:52:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:53:04 [end_date_ymd] => 2024-12-28 01:53:04 [RateCDR] => 1 ) [2024-12-28 01: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-27 22:53:04' and `end` < '2024-12-28 01: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-28 01:53:18] Production.INFO: count ==401 [2024-12-28 01:53:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:53:04 - End Time 2024-12-28 01:53:04 [2024-12-28 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118293', 'tblTempUsageDetail_20' ) start [2024-12-28 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118293', 'tblTempUsageDetail_20' ) end [2024-12-28 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118293', 'tblTempVendorCDR_20' ) start [2024-12-28 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118293', 'tblTempVendorCDR_20' ) end [2024-12-28 01:53:19] Production.INFO: ProcessCDR(1,14118293,1,1,2) [2024-12-28 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118293', 'tblTempUsageDetail_20' ) start [2024-12-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118293', 'tblTempUsageDetail_20' ) end [2024-12-28 01:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:53:22] Production.INFO: ==21073== Releasing lock... [2024-12-28 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:53:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:54:05 [end_date_ymd] => 2024-12-28 01:54:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:54:05' and `end` < '2024-12-28 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-28 01:54:17] Production.INFO: count ==401 [2024-12-28 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:54:05 - End Time 2024-12-28 01:54:05 [2024-12-28 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118298', 'tblTempUsageDetail_20' ) start [2024-12-28 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118298', 'tblTempUsageDetail_20' ) end [2024-12-28 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118298', 'tblTempVendorCDR_20' ) start [2024-12-28 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118298', 'tblTempVendorCDR_20' ) end [2024-12-28 01:54:17] Production.INFO: ProcessCDR(1,14118298,1,1,2) [2024-12-28 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118298', 'tblTempUsageDetail_20' ) start [2024-12-28 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118298', 'tblTempUsageDetail_20' ) end [2024-12-28 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:54:20] Production.INFO: ==21153== Releasing lock... [2024-12-28 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:54:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:55:05 [end_date_ymd] => 2024-12-28 01:55:05 [RateCDR] => 1 ) [2024-12-28 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:55:05' and `end` < '2024-12-28 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:55:19] Production.INFO: count ==400 [2024-12-28 01:55:19] Production.ERROR: pbx CDR StartTime 2024-12-27 22:55:05 - End Time 2024-12-28 01:55:05 [2024-12-28 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118303', 'tblTempUsageDetail_20' ) start [2024-12-28 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118303', 'tblTempUsageDetail_20' ) end [2024-12-28 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118303', 'tblTempVendorCDR_20' ) start [2024-12-28 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118303', 'tblTempVendorCDR_20' ) end [2024-12-28 01:55:19] Production.INFO: ProcessCDR(1,14118303,1,1,2) [2024-12-28 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118303', 'tblTempUsageDetail_20' ) start [2024-12-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118303', 'tblTempUsageDetail_20' ) end [2024-12-28 01:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:55:22] Production.INFO: ==21231== Releasing lock... [2024-12-28 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:55:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:56:05 [end_date_ymd] => 2024-12-28 01:56:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:56:05' and `end` < '2024-12-28 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-28 01:56:18] Production.INFO: count ==400 [2024-12-28 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:56:05 - End Time 2024-12-28 01:56:05 [2024-12-28 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118308', 'tblTempUsageDetail_20' ) start [2024-12-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118308', 'tblTempUsageDetail_20' ) end [2024-12-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118308', 'tblTempVendorCDR_20' ) start [2024-12-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118308', 'tblTempVendorCDR_20' ) end [2024-12-28 01:56:18] Production.INFO: ProcessCDR(1,14118308,1,1,2) [2024-12-28 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118308', 'tblTempUsageDetail_20' ) start [2024-12-28 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118308', 'tblTempUsageDetail_20' ) end [2024-12-28 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:56:21] Production.INFO: ==21313== Releasing lock... [2024-12-28 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:56:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:57:04 [end_date_ymd] => 2024-12-28 01:57:04 [RateCDR] => 1 ) [2024-12-28 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:57:04' and `end` < '2024-12-28 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-28 01:57:17] Production.INFO: count ==397 [2024-12-28 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 22:57:04 - End Time 2024-12-28 01:57:04 [2024-12-28 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118313', 'tblTempUsageDetail_20' ) start [2024-12-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118313', 'tblTempUsageDetail_20' ) end [2024-12-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118313', 'tblTempVendorCDR_20' ) start [2024-12-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118313', 'tblTempVendorCDR_20' ) end [2024-12-28 01:57:17] Production.INFO: ProcessCDR(1,14118313,1,1,2) [2024-12-28 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118313', 'tblTempUsageDetail_20' ) start [2024-12-28 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118313', 'tblTempUsageDetail_20' ) end [2024-12-28 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:57:20] Production.INFO: ==21392== Releasing lock... [2024-12-28 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:57:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:58:05 [end_date_ymd] => 2024-12-28 01:58:05 [RateCDR] => 1 ) [2024-12-28 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-27 22:58:05' and `end` < '2024-12-28 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-28 01:58:18] Production.INFO: count ==395 [2024-12-28 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:58:05 - End Time 2024-12-28 01:58:05 [2024-12-28 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118318', 'tblTempUsageDetail_20' ) start [2024-12-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118318', 'tblTempUsageDetail_20' ) end [2024-12-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118318', 'tblTempVendorCDR_20' ) start [2024-12-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118318', 'tblTempVendorCDR_20' ) end [2024-12-28 01:58:18] Production.INFO: ProcessCDR(1,14118318,1,1,2) [2024-12-28 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118318', 'tblTempUsageDetail_20' ) start [2024-12-28 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118318', 'tblTempUsageDetail_20' ) end [2024-12-28 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:58:21] Production.INFO: ==21471== Releasing lock... [2024-12-28 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:58:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 22:59:05 [end_date_ymd] => 2024-12-28 01:59:05 [RateCDR] => 1 ) [2024-12-28 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 22:59:05' and `end` < '2024-12-28 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 01:59:18] Production.INFO: count ==390 [2024-12-28 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 22:59:05 - End Time 2024-12-28 01:59:05 [2024-12-28 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118323', 'tblTempUsageDetail_20' ) start [2024-12-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118323', 'tblTempUsageDetail_20' ) end [2024-12-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118323', 'tblTempVendorCDR_20' ) start [2024-12-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118323', 'tblTempVendorCDR_20' ) end [2024-12-28 01:59:18] Production.INFO: ProcessCDR(1,14118323,1,1,2) [2024-12-28 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118323', 'tblTempUsageDetail_20' ) start [2024-12-28 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118323', 'tblTempUsageDetail_20' ) end [2024-12-28 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 01:59:21] Production.INFO: ==21549== Releasing lock... [2024-12-28 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 01:59:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:00:05 [end_date_ymd] => 2024-12-28 02:00:05 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:00:05' and `end` < '2024-12-28 02: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-28 02:00:17] Production.INFO: count ==396 [2024-12-28 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:00:05 - End Time 2024-12-28 02:00:05 [2024-12-28 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118328', 'tblTempUsageDetail_20' ) start [2024-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118328', 'tblTempUsageDetail_20' ) end [2024-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118328', 'tblTempVendorCDR_20' ) start [2024-12-28 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118328', 'tblTempVendorCDR_20' ) end [2024-12-28 02:00:18] Production.INFO: ProcessCDR(1,14118328,1,1,2) [2024-12-28 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118328', 'tblTempUsageDetail_20' ) start [2024-12-28 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118328', 'tblTempUsageDetail_20' ) end [2024-12-28 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:00:21] Production.INFO: ==21640== Releasing lock... [2024-12-28 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:00:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:01:05 [end_date_ymd] => 2024-12-28 02:01:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:01:05' and `end` < '2024-12-28 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-28 02:01:18] Production.INFO: count ==397 [2024-12-28 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:01:05 - End Time 2024-12-28 02:01:05 [2024-12-28 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118334', 'tblTempUsageDetail_20' ) start [2024-12-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118334', 'tblTempUsageDetail_20' ) end [2024-12-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118334', 'tblTempVendorCDR_20' ) start [2024-12-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118334', 'tblTempVendorCDR_20' ) end [2024-12-28 02:01:18] Production.INFO: ProcessCDR(1,14118334,1,1,2) [2024-12-28 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118334', 'tblTempUsageDetail_20' ) start [2024-12-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118334', 'tblTempUsageDetail_20' ) end [2024-12-28 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:01:21] Production.INFO: ==21844== Releasing lock... [2024-12-28 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:01:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:02:05 [end_date_ymd] => 2024-12-28 02:02:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:02:05' and `end` < '2024-12-28 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-28 02:02:19] Production.INFO: count ==396 [2024-12-28 02:02:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:02:05 - End Time 2024-12-28 02:02:05 [2024-12-28 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118339', 'tblTempUsageDetail_20' ) start [2024-12-28 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118339', 'tblTempUsageDetail_20' ) end [2024-12-28 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118339', 'tblTempVendorCDR_20' ) start [2024-12-28 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118339', 'tblTempVendorCDR_20' ) end [2024-12-28 02:02:19] Production.INFO: ProcessCDR(1,14118339,1,1,2) [2024-12-28 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118339', 'tblTempUsageDetail_20' ) start [2024-12-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118339', 'tblTempUsageDetail_20' ) end [2024-12-28 02:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:02:22] Production.INFO: ==21920== Releasing lock... [2024-12-28 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:02:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:03:05 [end_date_ymd] => 2024-12-28 02:03:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:03:05' and `end` < '2024-12-28 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-28 02:03:17] Production.INFO: count ==392 [2024-12-28 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:03:05 - End Time 2024-12-28 02:03:05 [2024-12-28 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118344', 'tblTempUsageDetail_20' ) start [2024-12-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118344', 'tblTempUsageDetail_20' ) end [2024-12-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118344', 'tblTempVendorCDR_20' ) start [2024-12-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118344', 'tblTempVendorCDR_20' ) end [2024-12-28 02:03:17] Production.INFO: ProcessCDR(1,14118344,1,1,2) [2024-12-28 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118344', 'tblTempUsageDetail_20' ) start [2024-12-28 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118344', 'tblTempUsageDetail_20' ) end [2024-12-28 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:03:20] Production.INFO: ==22002== Releasing lock... [2024-12-28 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:03:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:04:06 [end_date_ymd] => 2024-12-28 02:04:06 [RateCDR] => 1 ) [2024-12-28 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:04:06' and `end` < '2024-12-28 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:04:20] Production.INFO: count ==392 [2024-12-28 02:04:20] Production.ERROR: pbx CDR StartTime 2024-12-27 23:04:06 - End Time 2024-12-28 02:04:06 [2024-12-28 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118349', 'tblTempUsageDetail_20' ) start [2024-12-28 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118349', 'tblTempUsageDetail_20' ) end [2024-12-28 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118349', 'tblTempVendorCDR_20' ) start [2024-12-28 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118349', 'tblTempVendorCDR_20' ) end [2024-12-28 02:04:20] Production.INFO: ProcessCDR(1,14118349,1,1,2) [2024-12-28 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118349', 'tblTempUsageDetail_20' ) start [2024-12-28 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118349', 'tblTempUsageDetail_20' ) end [2024-12-28 02:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:04:23] Production.INFO: ==22085== Releasing lock... [2024-12-28 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:04:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:05:04 [end_date_ymd] => 2024-12-28 02:05:04 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:05:04' and `end` < '2024-12-28 02: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-28 02:05:17] Production.INFO: count ==392 [2024-12-28 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:05:04 - End Time 2024-12-28 02:05:04 [2024-12-28 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118354', 'tblTempUsageDetail_20' ) start [2024-12-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118354', 'tblTempUsageDetail_20' ) end [2024-12-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118354', 'tblTempVendorCDR_20' ) start [2024-12-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118354', 'tblTempVendorCDR_20' ) end [2024-12-28 02:05:17] Production.INFO: ProcessCDR(1,14118354,1,1,2) [2024-12-28 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118354', 'tblTempUsageDetail_20' ) start [2024-12-28 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118354', 'tblTempUsageDetail_20' ) end [2024-12-28 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:05:20] Production.INFO: ==22172== Releasing lock... [2024-12-28 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:05:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:06:05 [end_date_ymd] => 2024-12-28 02:06:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:06:05' and `end` < '2024-12-28 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-28 02:06:19] Production.INFO: count ==390 [2024-12-28 02:06:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:06:05 - End Time 2024-12-28 02:06:05 [2024-12-28 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118359', 'tblTempUsageDetail_20' ) start [2024-12-28 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118359', 'tblTempUsageDetail_20' ) end [2024-12-28 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118359', 'tblTempVendorCDR_20' ) start [2024-12-28 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118359', 'tblTempVendorCDR_20' ) end [2024-12-28 02:06:19] Production.INFO: ProcessCDR(1,14118359,1,1,2) [2024-12-28 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118359', 'tblTempUsageDetail_20' ) start [2024-12-28 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118359', 'tblTempUsageDetail_20' ) end [2024-12-28 02:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:06:22] Production.INFO: ==22258== Releasing lock... [2024-12-28 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:06:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:07:05 [end_date_ymd] => 2024-12-28 02:07:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:07:05' and `end` < '2024-12-28 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-28 02:07:19] Production.INFO: count ==389 [2024-12-28 02:07:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:07:05 - End Time 2024-12-28 02:07:05 [2024-12-28 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118364', 'tblTempUsageDetail_20' ) start [2024-12-28 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118364', 'tblTempUsageDetail_20' ) end [2024-12-28 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118364', 'tblTempVendorCDR_20' ) start [2024-12-28 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118364', 'tblTempVendorCDR_20' ) end [2024-12-28 02:07:19] Production.INFO: ProcessCDR(1,14118364,1,1,2) [2024-12-28 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118364', 'tblTempUsageDetail_20' ) start [2024-12-28 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118364', 'tblTempUsageDetail_20' ) end [2024-12-28 02:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:07:22] Production.INFO: ==22382== Releasing lock... [2024-12-28 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:07:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:08:05 [end_date_ymd] => 2024-12-28 02:08:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:08:05' and `end` < '2024-12-28 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-28 02:08:17] Production.INFO: count ==393 [2024-12-28 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:08:05 - End Time 2024-12-28 02:08:05 [2024-12-28 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118369', 'tblTempUsageDetail_20' ) start [2024-12-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118369', 'tblTempUsageDetail_20' ) end [2024-12-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118369', 'tblTempVendorCDR_20' ) start [2024-12-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118369', 'tblTempVendorCDR_20' ) end [2024-12-28 02:08:17] Production.INFO: ProcessCDR(1,14118369,1,1,2) [2024-12-28 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118369', 'tblTempUsageDetail_20' ) start [2024-12-28 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118369', 'tblTempUsageDetail_20' ) end [2024-12-28 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:08:21] Production.INFO: ==22465== Releasing lock... [2024-12-28 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:09:05 [end_date_ymd] => 2024-12-28 02:09:05 [RateCDR] => 1 ) [2024-12-28 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:09:05' and `end` < '2024-12-28 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:09:18] Production.INFO: count ==394 [2024-12-28 02:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:09:05 - End Time 2024-12-28 02:09:05 [2024-12-28 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118374', 'tblTempUsageDetail_20' ) start [2024-12-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118374', 'tblTempUsageDetail_20' ) end [2024-12-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118374', 'tblTempVendorCDR_20' ) start [2024-12-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118374', 'tblTempVendorCDR_20' ) end [2024-12-28 02:09:18] Production.INFO: ProcessCDR(1,14118374,1,1,2) [2024-12-28 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118374', 'tblTempUsageDetail_20' ) start [2024-12-28 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118374', 'tblTempUsageDetail_20' ) end [2024-12-28 02:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:09:23] Production.INFO: ==22561== Releasing lock... [2024-12-28 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:09:23] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:10:05 [end_date_ymd] => 2024-12-28 02:10:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:10:05' and `end` < '2024-12-28 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-28 02:10:18] Production.INFO: count ==401 [2024-12-28 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:10:05 - End Time 2024-12-28 02:10:05 [2024-12-28 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118380', 'tblTempUsageDetail_20' ) start [2024-12-28 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118380', 'tblTempUsageDetail_20' ) end [2024-12-28 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118380', 'tblTempVendorCDR_20' ) start [2024-12-28 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118380', 'tblTempVendorCDR_20' ) end [2024-12-28 02:10:18] Production.INFO: ProcessCDR(1,14118380,1,1,2) [2024-12-28 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118380', 'tblTempUsageDetail_20' ) start [2024-12-28 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118380', 'tblTempUsageDetail_20' ) end [2024-12-28 02:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:10:22] Production.INFO: ==22643== Releasing lock... [2024-12-28 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:10:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:11:05 [end_date_ymd] => 2024-12-28 02:11:05 [RateCDR] => 1 ) [2024-12-28 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:11:05' and `end` < '2024-12-28 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:11:17] Production.INFO: count ==419 [2024-12-28 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:11:05 - End Time 2024-12-28 02:11:05 [2024-12-28 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118385', 'tblTempUsageDetail_20' ) start [2024-12-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118385', 'tblTempUsageDetail_20' ) end [2024-12-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118385', 'tblTempVendorCDR_20' ) start [2024-12-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118385', 'tblTempVendorCDR_20' ) end [2024-12-28 02:11:17] Production.INFO: ProcessCDR(1,14118385,1,1,2) [2024-12-28 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118385', 'tblTempUsageDetail_20' ) start [2024-12-28 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118385', 'tblTempUsageDetail_20' ) end [2024-12-28 02:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:11:22] Production.INFO: ==22734== Releasing lock... [2024-12-28 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:11:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:12:05 [end_date_ymd] => 2024-12-28 02:12:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:12:05' and `end` < '2024-12-28 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-28 02:12:21] Production.INFO: count ==419 [2024-12-28 02:12:21] Production.ERROR: pbx CDR StartTime 2024-12-27 23:12:05 - End Time 2024-12-28 02:12:05 [2024-12-28 02:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118390', 'tblTempUsageDetail_20' ) start [2024-12-28 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118390', 'tblTempUsageDetail_20' ) end [2024-12-28 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118390', 'tblTempVendorCDR_20' ) start [2024-12-28 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118390', 'tblTempVendorCDR_20' ) end [2024-12-28 02:12:21] Production.INFO: ProcessCDR(1,14118390,1,1,2) [2024-12-28 02:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118390', 'tblTempUsageDetail_20' ) start [2024-12-28 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118390', 'tblTempUsageDetail_20' ) end [2024-12-28 02:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:12:24] Production.INFO: ==22818== Releasing lock... [2024-12-28 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:12:24] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:13:04 [end_date_ymd] => 2024-12-28 02:13:04 [RateCDR] => 1 ) [2024-12-28 02:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:13:04' and `end` < '2024-12-28 02:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:13:16] Production.INFO: count ==420 [2024-12-28 02:13:16] Production.ERROR: pbx CDR StartTime 2024-12-27 23:13:04 - End Time 2024-12-28 02:13:04 [2024-12-28 02:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118395', 'tblTempUsageDetail_20' ) start [2024-12-28 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118395', 'tblTempUsageDetail_20' ) end [2024-12-28 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118395', 'tblTempVendorCDR_20' ) start [2024-12-28 02:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118395', 'tblTempVendorCDR_20' ) end [2024-12-28 02:13:16] Production.INFO: ProcessCDR(1,14118395,1,1,2) [2024-12-28 02:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118395', 'tblTempUsageDetail_20' ) start [2024-12-28 02:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118395', 'tblTempUsageDetail_20' ) end [2024-12-28 02:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:13:19] Production.INFO: ==22903== Releasing lock... [2024-12-28 02:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:13:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:14:05 [end_date_ymd] => 2024-12-28 02:14:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:14:05' and `end` < '2024-12-28 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-28 02:14:17] Production.INFO: count ==420 [2024-12-28 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:14:05 - End Time 2024-12-28 02:14:05 [2024-12-28 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118400', 'tblTempUsageDetail_20' ) start [2024-12-28 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118400', 'tblTempUsageDetail_20' ) end [2024-12-28 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118400', 'tblTempVendorCDR_20' ) start [2024-12-28 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118400', 'tblTempVendorCDR_20' ) end [2024-12-28 02:14:17] Production.INFO: ProcessCDR(1,14118400,1,1,2) [2024-12-28 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118400', 'tblTempUsageDetail_20' ) start [2024-12-28 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118400', 'tblTempUsageDetail_20' ) end [2024-12-28 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:14:20] Production.INFO: ==22981== Releasing lock... [2024-12-28 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:14:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:15:04 [end_date_ymd] => 2024-12-28 02:15:04 [RateCDR] => 1 ) [2024-12-28 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-27 23:15:04' and `end` < '2024-12-28 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-28 02:15:17] Production.INFO: count ==418 [2024-12-28 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:15:04 - End Time 2024-12-28 02:15:04 [2024-12-28 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118405', 'tblTempUsageDetail_20' ) start [2024-12-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118405', 'tblTempUsageDetail_20' ) end [2024-12-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118405', 'tblTempVendorCDR_20' ) start [2024-12-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118405', 'tblTempVendorCDR_20' ) end [2024-12-28 02:15:17] Production.INFO: ProcessCDR(1,14118405,1,1,2) [2024-12-28 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118405', 'tblTempUsageDetail_20' ) start [2024-12-28 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118405', 'tblTempUsageDetail_20' ) end [2024-12-28 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:15:20] Production.INFO: ==23068== Releasing lock... [2024-12-28 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:15:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:16:05 [end_date_ymd] => 2024-12-28 02:16:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:16:05' and `end` < '2024-12-28 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-28 02:16:19] Production.INFO: count ==419 [2024-12-28 02:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:16:05 - End Time 2024-12-28 02:16:05 [2024-12-28 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118410', 'tblTempUsageDetail_20' ) start [2024-12-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118410', 'tblTempUsageDetail_20' ) end [2024-12-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118410', 'tblTempVendorCDR_20' ) start [2024-12-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118410', 'tblTempVendorCDR_20' ) end [2024-12-28 02:16:19] Production.INFO: ProcessCDR(1,14118410,1,1,2) [2024-12-28 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118410', 'tblTempUsageDetail_20' ) start [2024-12-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118410', 'tblTempUsageDetail_20' ) end [2024-12-28 02:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:16:22] Production.INFO: ==23144== Releasing lock... [2024-12-28 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:16:22] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:17:04 [end_date_ymd] => 2024-12-28 02:17:04 [RateCDR] => 1 ) [2024-12-28 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:17:04' and `end` < '2024-12-28 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:17:17] Production.INFO: count ==419 [2024-12-28 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:17:04 - End Time 2024-12-28 02:17:04 [2024-12-28 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118415', 'tblTempUsageDetail_20' ) start [2024-12-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118415', 'tblTempUsageDetail_20' ) end [2024-12-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118415', 'tblTempVendorCDR_20' ) start [2024-12-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118415', 'tblTempVendorCDR_20' ) end [2024-12-28 02:17:17] Production.INFO: ProcessCDR(1,14118415,1,1,2) [2024-12-28 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118415', 'tblTempUsageDetail_20' ) start [2024-12-28 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118415', 'tblTempUsageDetail_20' ) end [2024-12-28 02:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:17:20] Production.INFO: ==23247== Releasing lock... [2024-12-28 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:17:20] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:18:04 [end_date_ymd] => 2024-12-28 02:18:04 [RateCDR] => 1 ) [2024-12-28 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-27 23:18:04' and `end` < '2024-12-28 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-28 02:18:18] Production.INFO: count ==419 [2024-12-28 02:18:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:18:04 - End Time 2024-12-28 02:18:04 [2024-12-28 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118420', 'tblTempUsageDetail_20' ) start [2024-12-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118420', 'tblTempUsageDetail_20' ) end [2024-12-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118420', 'tblTempVendorCDR_20' ) start [2024-12-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118420', 'tblTempVendorCDR_20' ) end [2024-12-28 02:18:18] Production.INFO: ProcessCDR(1,14118420,1,1,2) [2024-12-28 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118420', 'tblTempUsageDetail_20' ) start [2024-12-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118420', 'tblTempUsageDetail_20' ) end [2024-12-28 02:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:18:21] Production.INFO: ==23334== Releasing lock... [2024-12-28 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:18:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:19:05 [end_date_ymd] => 2024-12-28 02:19:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:19:05' and `end` < '2024-12-28 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-28 02:19:17] Production.INFO: count ==422 [2024-12-28 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:19:05 - End Time 2024-12-28 02:19:05 [2024-12-28 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118425', 'tblTempUsageDetail_20' ) start [2024-12-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118425', 'tblTempUsageDetail_20' ) end [2024-12-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118425', 'tblTempVendorCDR_20' ) start [2024-12-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118425', 'tblTempVendorCDR_20' ) end [2024-12-28 02:19:17] Production.INFO: ProcessCDR(1,14118425,1,1,2) [2024-12-28 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118425', 'tblTempUsageDetail_20' ) start [2024-12-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118425', 'tblTempUsageDetail_20' ) end [2024-12-28 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:19:21] Production.INFO: ==23411== Releasing lock... [2024-12-28 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:19:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:20:06 [end_date_ymd] => 2024-12-28 02:20:06 [RateCDR] => 1 ) [2024-12-28 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:20:06' and `end` < '2024-12-28 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:20:18] Production.INFO: count ==430 [2024-12-28 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:20:06 - End Time 2024-12-28 02:20:06 [2024-12-28 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118431', 'tblTempUsageDetail_20' ) start [2024-12-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118431', 'tblTempUsageDetail_20' ) end [2024-12-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118431', 'tblTempVendorCDR_20' ) start [2024-12-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118431', 'tblTempVendorCDR_20' ) end [2024-12-28 02:20:18] Production.INFO: ProcessCDR(1,14118431,1,1,2) [2024-12-28 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118431', 'tblTempUsageDetail_20' ) start [2024-12-28 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118431', 'tblTempUsageDetail_20' ) end [2024-12-28 02:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:20:22] Production.INFO: ==23496== Releasing lock... [2024-12-28 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:20:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:21:05 [end_date_ymd] => 2024-12-28 02:21:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:21:05' and `end` < '2024-12-28 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-28 02:21:19] Production.INFO: count ==437 [2024-12-28 02:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:21:05 - End Time 2024-12-28 02:21:05 [2024-12-28 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118436', 'tblTempUsageDetail_20' ) start [2024-12-28 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118436', 'tblTempUsageDetail_20' ) end [2024-12-28 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118436', 'tblTempVendorCDR_20' ) start [2024-12-28 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118436', 'tblTempVendorCDR_20' ) end [2024-12-28 02:21:19] Production.INFO: ProcessCDR(1,14118436,1,1,2) [2024-12-28 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118436', 'tblTempUsageDetail_20' ) start [2024-12-28 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118436', 'tblTempUsageDetail_20' ) end [2024-12-28 02:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:21:22] Production.INFO: ==23571== Releasing lock... [2024-12-28 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:21:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:22:05 [end_date_ymd] => 2024-12-28 02:22:05 [RateCDR] => 1 ) [2024-12-28 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:22:05' and `end` < '2024-12-28 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:22:17] Production.INFO: count ==437 [2024-12-28 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:22:05 - End Time 2024-12-28 02:22:05 [2024-12-28 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118441', 'tblTempUsageDetail_20' ) start [2024-12-28 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118441', 'tblTempUsageDetail_20' ) end [2024-12-28 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118441', 'tblTempVendorCDR_20' ) start [2024-12-28 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118441', 'tblTempVendorCDR_20' ) end [2024-12-28 02:22:17] Production.INFO: ProcessCDR(1,14118441,1,1,2) [2024-12-28 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118441', 'tblTempUsageDetail_20' ) start [2024-12-28 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118441', 'tblTempUsageDetail_20' ) end [2024-12-28 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:22:20] Production.INFO: ==23652== Releasing lock... [2024-12-28 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:22:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:23:04 [end_date_ymd] => 2024-12-28 02:23:04 [RateCDR] => 1 ) [2024-12-28 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-27 23:23:04' and `end` < '2024-12-28 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-28 02:23:17] Production.INFO: count ==434 [2024-12-28 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:23:04 - End Time 2024-12-28 02:23:04 [2024-12-28 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118446', 'tblTempUsageDetail_20' ) start [2024-12-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118446', 'tblTempUsageDetail_20' ) end [2024-12-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118446', 'tblTempVendorCDR_20' ) start [2024-12-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118446', 'tblTempVendorCDR_20' ) end [2024-12-28 02:23:17] Production.INFO: ProcessCDR(1,14118446,1,1,2) [2024-12-28 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118446', 'tblTempUsageDetail_20' ) start [2024-12-28 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118446', 'tblTempUsageDetail_20' ) end [2024-12-28 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:23:20] Production.INFO: ==23766== Releasing lock... [2024-12-28 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:23:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:24:05 [end_date_ymd] => 2024-12-28 02:24:05 [RateCDR] => 1 ) [2024-12-28 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:24:05' and `end` < '2024-12-28 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-28 02:24:20] Production.INFO: count ==432 [2024-12-28 02:24:20] Production.ERROR: pbx CDR StartTime 2024-12-27 23:24:05 - End Time 2024-12-28 02:24:05 [2024-12-28 02:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118451', 'tblTempUsageDetail_20' ) start [2024-12-28 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118451', 'tblTempUsageDetail_20' ) end [2024-12-28 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118451', 'tblTempVendorCDR_20' ) start [2024-12-28 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118451', 'tblTempVendorCDR_20' ) end [2024-12-28 02:24:20] Production.INFO: ProcessCDR(1,14118451,1,1,2) [2024-12-28 02:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118451', 'tblTempUsageDetail_20' ) start [2024-12-28 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118451', 'tblTempUsageDetail_20' ) end [2024-12-28 02:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:24:23] Production.INFO: ==23842== Releasing lock... [2024-12-28 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:24:23] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:25:05 [end_date_ymd] => 2024-12-28 02:25:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:25:05' and `end` < '2024-12-28 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-28 02:25:19] Production.INFO: count ==429 [2024-12-28 02:25:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:25:05 - End Time 2024-12-28 02:25:05 [2024-12-28 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118456', 'tblTempUsageDetail_20' ) start [2024-12-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118456', 'tblTempUsageDetail_20' ) end [2024-12-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118456', 'tblTempVendorCDR_20' ) start [2024-12-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118456', 'tblTempVendorCDR_20' ) end [2024-12-28 02:25:19] Production.INFO: ProcessCDR(1,14118456,1,1,2) [2024-12-28 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118456', 'tblTempUsageDetail_20' ) start [2024-12-28 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118456', 'tblTempUsageDetail_20' ) end [2024-12-28 02:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:25:22] Production.INFO: ==23921== Releasing lock... [2024-12-28 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:25:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:26:05 [end_date_ymd] => 2024-12-28 02:26:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:26:05' and `end` < '2024-12-28 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-28 02:26:18] Production.INFO: count ==428 [2024-12-28 02:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:26:05 - End Time 2024-12-28 02:26:05 [2024-12-28 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118461', 'tblTempUsageDetail_20' ) start [2024-12-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118461', 'tblTempUsageDetail_20' ) end [2024-12-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118461', 'tblTempVendorCDR_20' ) start [2024-12-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118461', 'tblTempVendorCDR_20' ) end [2024-12-28 02:26:18] Production.INFO: ProcessCDR(1,14118461,1,1,2) [2024-12-28 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118461', 'tblTempUsageDetail_20' ) start [2024-12-28 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118461', 'tblTempUsageDetail_20' ) end [2024-12-28 02:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:26:21] Production.INFO: ==23996== Releasing lock... [2024-12-28 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:26:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:27:05 [end_date_ymd] => 2024-12-28 02:27:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:27:05' and `end` < '2024-12-28 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-28 02:27:17] Production.INFO: count ==425 [2024-12-28 02:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:27:05 - End Time 2024-12-28 02:27:05 [2024-12-28 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118466', 'tblTempUsageDetail_20' ) start [2024-12-28 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118466', 'tblTempUsageDetail_20' ) end [2024-12-28 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118466', 'tblTempVendorCDR_20' ) start [2024-12-28 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118466', 'tblTempVendorCDR_20' ) end [2024-12-28 02:27:17] Production.INFO: ProcessCDR(1,14118466,1,1,2) [2024-12-28 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118466', 'tblTempUsageDetail_20' ) start [2024-12-28 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118466', 'tblTempUsageDetail_20' ) end [2024-12-28 02:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:27:20] Production.INFO: ==24076== Releasing lock... [2024-12-28 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:27:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:28:05 [end_date_ymd] => 2024-12-28 02:28:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:28:05' and `end` < '2024-12-28 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-28 02:28:19] Production.INFO: count ==425 [2024-12-28 02:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:28:05 - End Time 2024-12-28 02:28:05 [2024-12-28 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118471', 'tblTempUsageDetail_20' ) start [2024-12-28 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118471', 'tblTempUsageDetail_20' ) end [2024-12-28 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118471', 'tblTempVendorCDR_20' ) start [2024-12-28 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118471', 'tblTempVendorCDR_20' ) end [2024-12-28 02:28:19] Production.INFO: ProcessCDR(1,14118471,1,1,2) [2024-12-28 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118471', 'tblTempUsageDetail_20' ) start [2024-12-28 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118471', 'tblTempUsageDetail_20' ) end [2024-12-28 02:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:28:22] Production.INFO: ==24154== Releasing lock... [2024-12-28 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:28:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:29:06 [end_date_ymd] => 2024-12-28 02:29:06 [RateCDR] => 1 ) [2024-12-28 02:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:29:06' and `end` < '2024-12-28 02:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:29:18] Production.INFO: count ==424 [2024-12-28 02:29:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:29:06 - End Time 2024-12-28 02:29:06 [2024-12-28 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118476', 'tblTempUsageDetail_20' ) start [2024-12-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118476', 'tblTempUsageDetail_20' ) end [2024-12-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118476', 'tblTempVendorCDR_20' ) start [2024-12-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118476', 'tblTempVendorCDR_20' ) end [2024-12-28 02:29:18] Production.INFO: ProcessCDR(1,14118476,1,1,2) [2024-12-28 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118476', 'tblTempUsageDetail_20' ) start [2024-12-28 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118476', 'tblTempUsageDetail_20' ) end [2024-12-28 02:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:29:21] Production.INFO: ==24229== Releasing lock... [2024-12-28 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:29:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:30:05 [end_date_ymd] => 2024-12-28 02:30:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:30:05' and `end` < '2024-12-28 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-28 02:30:18] Production.INFO: count ==433 [2024-12-28 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:30:05 - End Time 2024-12-28 02:30:05 [2024-12-28 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118482', 'tblTempUsageDetail_20' ) start [2024-12-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118482', 'tblTempUsageDetail_20' ) end [2024-12-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118482', 'tblTempVendorCDR_20' ) start [2024-12-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118482', 'tblTempVendorCDR_20' ) end [2024-12-28 02:30:18] Production.INFO: ProcessCDR(1,14118482,1,1,2) [2024-12-28 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118482', 'tblTempUsageDetail_20' ) start [2024-12-28 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118482', 'tblTempUsageDetail_20' ) end [2024-12-28 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:30:21] Production.INFO: ==24306== Releasing lock... [2024-12-28 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:30:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:31:05 [end_date_ymd] => 2024-12-28 02:31:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:31:05' and `end` < '2024-12-28 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-28 02:31:19] Production.INFO: count ==436 [2024-12-28 02:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:31:05 - End Time 2024-12-28 02:31:05 [2024-12-28 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118487', 'tblTempUsageDetail_20' ) start [2024-12-28 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118487', 'tblTempUsageDetail_20' ) end [2024-12-28 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118487', 'tblTempVendorCDR_20' ) start [2024-12-28 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118487', 'tblTempVendorCDR_20' ) end [2024-12-28 02:31:19] Production.INFO: ProcessCDR(1,14118487,1,1,2) [2024-12-28 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118487', 'tblTempUsageDetail_20' ) start [2024-12-28 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118487', 'tblTempUsageDetail_20' ) end [2024-12-28 02:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:31:22] Production.INFO: ==24383== Releasing lock... [2024-12-28 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:31:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:32:04 [end_date_ymd] => 2024-12-28 02:32:04 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:32:04' and `end` < '2024-12-28 02: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-28 02:32:17] Production.INFO: count ==435 [2024-12-28 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:32:04 - End Time 2024-12-28 02:32:04 [2024-12-28 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118492', 'tblTempUsageDetail_20' ) start [2024-12-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118492', 'tblTempUsageDetail_20' ) end [2024-12-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118492', 'tblTempVendorCDR_20' ) start [2024-12-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118492', 'tblTempVendorCDR_20' ) end [2024-12-28 02:32:17] Production.INFO: ProcessCDR(1,14118492,1,1,2) [2024-12-28 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118492', 'tblTempUsageDetail_20' ) start [2024-12-28 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118492', 'tblTempUsageDetail_20' ) end [2024-12-28 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:32:20] Production.INFO: ==24463== Releasing lock... [2024-12-28 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:32:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:33:05 [end_date_ymd] => 2024-12-28 02:33:05 [RateCDR] => 1 ) [2024-12-28 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:33:05' and `end` < '2024-12-28 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:33:18] Production.INFO: count ==433 [2024-12-28 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:33:05 - End Time 2024-12-28 02:33:05 [2024-12-28 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118497', 'tblTempUsageDetail_20' ) start [2024-12-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118497', 'tblTempUsageDetail_20' ) end [2024-12-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118497', 'tblTempVendorCDR_20' ) start [2024-12-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118497', 'tblTempVendorCDR_20' ) end [2024-12-28 02:33:18] Production.INFO: ProcessCDR(1,14118497,1,1,2) [2024-12-28 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118497', 'tblTempUsageDetail_20' ) start [2024-12-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118497', 'tblTempUsageDetail_20' ) end [2024-12-28 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:33:21] Production.INFO: ==24539== Releasing lock... [2024-12-28 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:33:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:34:05 [end_date_ymd] => 2024-12-28 02:34:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:34:05' and `end` < '2024-12-28 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-28 02:34:19] Production.INFO: count ==429 [2024-12-28 02:34:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:34:05 - End Time 2024-12-28 02:34:05 [2024-12-28 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118502', 'tblTempUsageDetail_20' ) start [2024-12-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118502', 'tblTempUsageDetail_20' ) end [2024-12-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118502', 'tblTempVendorCDR_20' ) start [2024-12-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118502', 'tblTempVendorCDR_20' ) end [2024-12-28 02:34:19] Production.INFO: ProcessCDR(1,14118502,1,1,2) [2024-12-28 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118502', 'tblTempUsageDetail_20' ) start [2024-12-28 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118502', 'tblTempUsageDetail_20' ) end [2024-12-28 02:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:34:22] Production.INFO: ==24616== Releasing lock... [2024-12-28 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:34:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:35:05 [end_date_ymd] => 2024-12-28 02:35:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:35:05' and `end` < '2024-12-28 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-28 02:35:17] Production.INFO: count ==428 [2024-12-28 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:35:05 - End Time 2024-12-28 02:35:05 [2024-12-28 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118507', 'tblTempUsageDetail_20' ) start [2024-12-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118507', 'tblTempUsageDetail_20' ) end [2024-12-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118507', 'tblTempVendorCDR_20' ) start [2024-12-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118507', 'tblTempVendorCDR_20' ) end [2024-12-28 02:35:17] Production.INFO: ProcessCDR(1,14118507,1,1,2) [2024-12-28 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118507', 'tblTempUsageDetail_20' ) start [2024-12-28 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118507', 'tblTempUsageDetail_20' ) end [2024-12-28 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:35:21] Production.INFO: ==24690== Releasing lock... [2024-12-28 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:35:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:36:05 [end_date_ymd] => 2024-12-28 02:36:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:36:05' and `end` < '2024-12-28 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-28 02:36:18] Production.INFO: count ==427 [2024-12-28 02:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:36:05 - End Time 2024-12-28 02:36:05 [2024-12-28 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118512', 'tblTempUsageDetail_20' ) start [2024-12-28 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118512', 'tblTempUsageDetail_20' ) end [2024-12-28 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118512', 'tblTempVendorCDR_20' ) start [2024-12-28 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118512', 'tblTempVendorCDR_20' ) end [2024-12-28 02:36:18] Production.INFO: ProcessCDR(1,14118512,1,1,2) [2024-12-28 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118512', 'tblTempUsageDetail_20' ) start [2024-12-28 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118512', 'tblTempUsageDetail_20' ) end [2024-12-28 02:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:36:21] Production.INFO: ==24766== Releasing lock... [2024-12-28 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:37:04 [end_date_ymd] => 2024-12-28 02:37:04 [RateCDR] => 1 ) [2024-12-28 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:37:04' and `end` < '2024-12-28 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:37:17] Production.INFO: count ==427 [2024-12-28 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:37:04 - End Time 2024-12-28 02:37:04 [2024-12-28 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118517', 'tblTempUsageDetail_20' ) start [2024-12-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118517', 'tblTempUsageDetail_20' ) end [2024-12-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118517', 'tblTempVendorCDR_20' ) start [2024-12-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118517', 'tblTempVendorCDR_20' ) end [2024-12-28 02:37:17] Production.INFO: ProcessCDR(1,14118517,1,1,2) [2024-12-28 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118517', 'tblTempUsageDetail_20' ) start [2024-12-28 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118517', 'tblTempUsageDetail_20' ) end [2024-12-28 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:37:20] Production.INFO: ==24842== Releasing lock... [2024-12-28 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:37:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:38:05 [end_date_ymd] => 2024-12-28 02:38:05 [RateCDR] => 1 ) [2024-12-28 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:38:05' and `end` < '2024-12-28 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:38:18] Production.INFO: count ==422 [2024-12-28 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:38:05 - End Time 2024-12-28 02:38:05 [2024-12-28 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118522', 'tblTempUsageDetail_20' ) start [2024-12-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118522', 'tblTempUsageDetail_20' ) end [2024-12-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118522', 'tblTempVendorCDR_20' ) start [2024-12-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118522', 'tblTempVendorCDR_20' ) end [2024-12-28 02:38:18] Production.INFO: ProcessCDR(1,14118522,1,1,2) [2024-12-28 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118522', 'tblTempUsageDetail_20' ) start [2024-12-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118522', 'tblTempUsageDetail_20' ) end [2024-12-28 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:38:21] Production.INFO: ==24914== Releasing lock... [2024-12-28 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:38:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:39:04 [end_date_ymd] => 2024-12-28 02:39:04 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:39:04' and `end` < '2024-12-28 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:39:18] Production.INFO: count ==422 [2024-12-28 02:39:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:39:04 - End Time 2024-12-28 02:39:04 [2024-12-28 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118527', 'tblTempUsageDetail_20' ) start [2024-12-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118527', 'tblTempUsageDetail_20' ) end [2024-12-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118527', 'tblTempVendorCDR_20' ) start [2024-12-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118527', 'tblTempVendorCDR_20' ) end [2024-12-28 02:39:18] Production.INFO: ProcessCDR(1,14118527,1,1,2) [2024-12-28 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118527', 'tblTempUsageDetail_20' ) start [2024-12-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118527', 'tblTempUsageDetail_20' ) end [2024-12-28 02:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:39:21] Production.INFO: ==25027== Releasing lock... [2024-12-28 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:39:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:40:06 [end_date_ymd] => 2024-12-28 02:40:06 [RateCDR] => 1 ) [2024-12-28 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:40:06' and `end` < '2024-12-28 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:40:18] Production.INFO: count ==430 [2024-12-28 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:40:06 - End Time 2024-12-28 02:40:06 [2024-12-28 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118533', 'tblTempUsageDetail_20' ) start [2024-12-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118533', 'tblTempUsageDetail_20' ) end [2024-12-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118533', 'tblTempVendorCDR_20' ) start [2024-12-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118533', 'tblTempVendorCDR_20' ) end [2024-12-28 02:40:18] Production.INFO: ProcessCDR(1,14118533,1,1,2) [2024-12-28 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118533', 'tblTempUsageDetail_20' ) start [2024-12-28 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118533', 'tblTempUsageDetail_20' ) end [2024-12-28 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:40:21] Production.INFO: ==25106== Releasing lock... [2024-12-28 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:40:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:41:04 [end_date_ymd] => 2024-12-28 02:41:04 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:41:04' and `end` < '2024-12-28 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:41:18] Production.INFO: count ==438 [2024-12-28 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:41:04 - End Time 2024-12-28 02:41:04 [2024-12-28 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118538', 'tblTempUsageDetail_20' ) start [2024-12-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118538', 'tblTempUsageDetail_20' ) end [2024-12-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118538', 'tblTempVendorCDR_20' ) start [2024-12-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118538', 'tblTempVendorCDR_20' ) end [2024-12-28 02:41:18] Production.INFO: ProcessCDR(1,14118538,1,1,2) [2024-12-28 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118538', 'tblTempUsageDetail_20' ) start [2024-12-28 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118538', 'tblTempUsageDetail_20' ) end [2024-12-28 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:41:21] Production.INFO: ==25184== Releasing lock... [2024-12-28 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:41:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:42:05 [end_date_ymd] => 2024-12-28 02:42:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:42:05' and `end` < '2024-12-28 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-28 02:42:18] Production.INFO: count ==436 [2024-12-28 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:42:05 - End Time 2024-12-28 02:42:05 [2024-12-28 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118543', 'tblTempUsageDetail_20' ) start [2024-12-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118543', 'tblTempUsageDetail_20' ) end [2024-12-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118543', 'tblTempVendorCDR_20' ) start [2024-12-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118543', 'tblTempVendorCDR_20' ) end [2024-12-28 02:42:18] Production.INFO: ProcessCDR(1,14118543,1,1,2) [2024-12-28 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118543', 'tblTempUsageDetail_20' ) start [2024-12-28 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118543', 'tblTempUsageDetail_20' ) end [2024-12-28 02:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:42:22] Production.INFO: ==25257== Releasing lock... [2024-12-28 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:42:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:43:05 [end_date_ymd] => 2024-12-28 02:43:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:43:05' and `end` < '2024-12-28 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-28 02:43:18] Production.INFO: count ==434 [2024-12-28 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:43:05 - End Time 2024-12-28 02:43:05 [2024-12-28 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118548', 'tblTempUsageDetail_20' ) start [2024-12-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118548', 'tblTempUsageDetail_20' ) end [2024-12-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118548', 'tblTempVendorCDR_20' ) start [2024-12-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118548', 'tblTempVendorCDR_20' ) end [2024-12-28 02:43:18] Production.INFO: ProcessCDR(1,14118548,1,1,2) [2024-12-28 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118548', 'tblTempUsageDetail_20' ) start [2024-12-28 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118548', 'tblTempUsageDetail_20' ) end [2024-12-28 02:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:43:22] Production.INFO: ==25328== Releasing lock... [2024-12-28 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:43:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:44:05 [end_date_ymd] => 2024-12-28 02:44:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:44:05' and `end` < '2024-12-28 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-28 02:44:18] Production.INFO: count ==433 [2024-12-28 02:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:44:05 - End Time 2024-12-28 02:44:05 [2024-12-28 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118553', 'tblTempUsageDetail_20' ) start [2024-12-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118553', 'tblTempUsageDetail_20' ) end [2024-12-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118553', 'tblTempVendorCDR_20' ) start [2024-12-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118553', 'tblTempVendorCDR_20' ) end [2024-12-28 02:44:18] Production.INFO: ProcessCDR(1,14118553,1,1,2) [2024-12-28 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118553', 'tblTempUsageDetail_20' ) start [2024-12-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118553', 'tblTempUsageDetail_20' ) end [2024-12-28 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:44:21] Production.INFO: ==25404== Releasing lock... [2024-12-28 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:44:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:45:04 [end_date_ymd] => 2024-12-28 02:45:04 [RateCDR] => 1 ) [2024-12-28 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-27 23:45:04' and `end` < '2024-12-28 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-28 02:45:18] Production.INFO: count ==433 [2024-12-28 02:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:45:04 - End Time 2024-12-28 02:45:04 [2024-12-28 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118558', 'tblTempUsageDetail_20' ) start [2024-12-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118558', 'tblTempUsageDetail_20' ) end [2024-12-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118558', 'tblTempVendorCDR_20' ) start [2024-12-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118558', 'tblTempVendorCDR_20' ) end [2024-12-28 02:45:18] Production.INFO: ProcessCDR(1,14118558,1,1,2) [2024-12-28 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118558', 'tblTempUsageDetail_20' ) start [2024-12-28 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118558', 'tblTempUsageDetail_20' ) end [2024-12-28 02:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:45:23] Production.INFO: ==25476== Releasing lock... [2024-12-28 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:45:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:46:05 [end_date_ymd] => 2024-12-28 02:46:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:46:05' and `end` < '2024-12-28 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-28 02:46:18] Production.INFO: count ==433 [2024-12-28 02:46:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:46:05 - End Time 2024-12-28 02:46:05 [2024-12-28 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118563', 'tblTempUsageDetail_20' ) start [2024-12-28 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118563', 'tblTempUsageDetail_20' ) end [2024-12-28 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118563', 'tblTempVendorCDR_20' ) start [2024-12-28 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118563', 'tblTempVendorCDR_20' ) end [2024-12-28 02:46:19] Production.INFO: ProcessCDR(1,14118563,1,1,2) [2024-12-28 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118563', 'tblTempUsageDetail_20' ) start [2024-12-28 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118563', 'tblTempUsageDetail_20' ) end [2024-12-28 02:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:46:22] Production.INFO: ==25547== Releasing lock... [2024-12-28 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:46:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:47:04 [end_date_ymd] => 2024-12-28 02:47:04 [RateCDR] => 1 ) [2024-12-28 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:47:04' and `end` < '2024-12-28 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:47:18] Production.INFO: count ==432 [2024-12-28 02:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:47:04 - End Time 2024-12-28 02:47:04 [2024-12-28 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118568', 'tblTempUsageDetail_20' ) start [2024-12-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118568', 'tblTempUsageDetail_20' ) end [2024-12-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118568', 'tblTempVendorCDR_20' ) start [2024-12-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118568', 'tblTempVendorCDR_20' ) end [2024-12-28 02:47:18] Production.INFO: ProcessCDR(1,14118568,1,1,2) [2024-12-28 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118568', 'tblTempUsageDetail_20' ) start [2024-12-28 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118568', 'tblTempUsageDetail_20' ) end [2024-12-28 02:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:47:21] Production.INFO: ==25619== Releasing lock... [2024-12-28 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:47:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:48:05 [end_date_ymd] => 2024-12-28 02:48:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:48:05' and `end` < '2024-12-28 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-28 02:48:18] Production.INFO: count ==431 [2024-12-28 02:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:48:05 - End Time 2024-12-28 02:48:05 [2024-12-28 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118573', 'tblTempUsageDetail_20' ) start [2024-12-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118573', 'tblTempUsageDetail_20' ) end [2024-12-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118573', 'tblTempVendorCDR_20' ) start [2024-12-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118573', 'tblTempVendorCDR_20' ) end [2024-12-28 02:48:18] Production.INFO: ProcessCDR(1,14118573,1,1,2) [2024-12-28 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118573', 'tblTempUsageDetail_20' ) start [2024-12-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118573', 'tblTempUsageDetail_20' ) end [2024-12-28 02:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:48:21] Production.INFO: ==25691== Releasing lock... [2024-12-28 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:48:21] Production.INFO: 31 MB #Memory Used# [2024-12-28 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:49:05 [end_date_ymd] => 2024-12-28 02:49:05 [RateCDR] => 1 ) [2024-12-28 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:49:05' and `end` < '2024-12-28 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:49:19] Production.INFO: count ==382 [2024-12-28 02:49:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:49:05 - End Time 2024-12-28 02:49:05 [2024-12-28 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118578', 'tblTempUsageDetail_20' ) start [2024-12-28 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118578', 'tblTempUsageDetail_20' ) end [2024-12-28 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118578', 'tblTempVendorCDR_20' ) start [2024-12-28 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118578', 'tblTempVendorCDR_20' ) end [2024-12-28 02:49:19] Production.INFO: ProcessCDR(1,14118578,1,1,2) [2024-12-28 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118578', 'tblTempUsageDetail_20' ) start [2024-12-28 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118578', 'tblTempUsageDetail_20' ) end [2024-12-28 02:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:49:22] Production.INFO: ==25765== Releasing lock... [2024-12-28 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:49:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:50:05 [end_date_ymd] => 2024-12-28 02:50:05 [RateCDR] => 1 ) [2024-12-28 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:50:05' and `end` < '2024-12-28 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:50:18] Production.INFO: count ==376 [2024-12-28 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:50:05 - End Time 2024-12-28 02:50:05 [2024-12-28 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118584', 'tblTempUsageDetail_20' ) start [2024-12-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118584', 'tblTempUsageDetail_20' ) end [2024-12-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118584', 'tblTempVendorCDR_20' ) start [2024-12-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118584', 'tblTempVendorCDR_20' ) end [2024-12-28 02:50:18] Production.INFO: ProcessCDR(1,14118584,1,1,2) [2024-12-28 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118584', 'tblTempUsageDetail_20' ) start [2024-12-28 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118584', 'tblTempUsageDetail_20' ) end [2024-12-28 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:50:21] Production.INFO: ==25840== Releasing lock... [2024-12-28 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:50:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:51:05 [end_date_ymd] => 2024-12-28 02:51:05 [RateCDR] => 1 ) [2024-12-28 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:51:05' and `end` < '2024-12-28 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:51:19] Production.INFO: count ==376 [2024-12-28 02:51:19] Production.ERROR: pbx CDR StartTime 2024-12-27 23:51:05 - End Time 2024-12-28 02:51:05 [2024-12-28 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118589', 'tblTempUsageDetail_20' ) start [2024-12-28 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118589', 'tblTempUsageDetail_20' ) end [2024-12-28 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118589', 'tblTempVendorCDR_20' ) start [2024-12-28 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118589', 'tblTempVendorCDR_20' ) end [2024-12-28 02:51:19] Production.INFO: ProcessCDR(1,14118589,1,1,2) [2024-12-28 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118589', 'tblTempUsageDetail_20' ) start [2024-12-28 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118589', 'tblTempUsageDetail_20' ) end [2024-12-28 02:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:51:22] Production.INFO: ==25911== Releasing lock... [2024-12-28 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:51:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:52:05 [end_date_ymd] => 2024-12-28 02:52:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:52:05' and `end` < '2024-12-28 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-28 02:52:17] Production.INFO: count ==376 [2024-12-28 02:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:52:05 - End Time 2024-12-28 02:52:05 [2024-12-28 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118594', 'tblTempUsageDetail_20' ) start [2024-12-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118594', 'tblTempUsageDetail_20' ) end [2024-12-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118594', 'tblTempVendorCDR_20' ) start [2024-12-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118594', 'tblTempVendorCDR_20' ) end [2024-12-28 02:52:17] Production.INFO: ProcessCDR(1,14118594,1,1,2) [2024-12-28 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118594', 'tblTempUsageDetail_20' ) start [2024-12-28 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118594', 'tblTempUsageDetail_20' ) end [2024-12-28 02:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:52:20] Production.INFO: ==25985== Releasing lock... [2024-12-28 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:52:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:53:05 [end_date_ymd] => 2024-12-28 02:53:05 [RateCDR] => 1 ) [2024-12-28 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:53:05' and `end` < '2024-12-28 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:53:17] Production.INFO: count ==376 [2024-12-28 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:53:05 - End Time 2024-12-28 02:53:05 [2024-12-28 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118599', 'tblTempUsageDetail_20' ) start [2024-12-28 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118599', 'tblTempUsageDetail_20' ) end [2024-12-28 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118599', 'tblTempVendorCDR_20' ) start [2024-12-28 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118599', 'tblTempVendorCDR_20' ) end [2024-12-28 02:53:17] Production.INFO: ProcessCDR(1,14118599,1,1,2) [2024-12-28 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118599', 'tblTempUsageDetail_20' ) start [2024-12-28 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118599', 'tblTempUsageDetail_20' ) end [2024-12-28 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:53:20] Production.INFO: ==26055== Releasing lock... [2024-12-28 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:53:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:54:04 [end_date_ymd] => 2024-12-28 02:54:04 [RateCDR] => 1 ) [2024-12-28 02: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-27 23:54:04' and `end` < '2024-12-28 02: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-28 02:54:17] Production.INFO: count ==376 [2024-12-28 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:54:04 - End Time 2024-12-28 02:54:04 [2024-12-28 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118604', 'tblTempUsageDetail_20' ) start [2024-12-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118604', 'tblTempUsageDetail_20' ) end [2024-12-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118604', 'tblTempVendorCDR_20' ) start [2024-12-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118604', 'tblTempVendorCDR_20' ) end [2024-12-28 02:54:17] Production.INFO: ProcessCDR(1,14118604,1,1,2) [2024-12-28 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118604', 'tblTempUsageDetail_20' ) start [2024-12-28 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118604', 'tblTempUsageDetail_20' ) end [2024-12-28 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:54:20] Production.INFO: ==26164== Releasing lock... [2024-12-28 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:54:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:55:05 [end_date_ymd] => 2024-12-28 02:55:05 [RateCDR] => 1 ) [2024-12-28 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:55:05' and `end` < '2024-12-28 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:55:17] Production.INFO: count ==376 [2024-12-28 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:55:05 - End Time 2024-12-28 02:55:05 [2024-12-28 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118609', 'tblTempUsageDetail_20' ) start [2024-12-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118609', 'tblTempUsageDetail_20' ) end [2024-12-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118609', 'tblTempVendorCDR_20' ) start [2024-12-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118609', 'tblTempVendorCDR_20' ) end [2024-12-28 02:55:17] Production.INFO: ProcessCDR(1,14118609,1,1,2) [2024-12-28 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118609', 'tblTempUsageDetail_20' ) start [2024-12-28 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118609', 'tblTempUsageDetail_20' ) end [2024-12-28 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:55:20] Production.INFO: ==26236== Releasing lock... [2024-12-28 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:55:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:56:05 [end_date_ymd] => 2024-12-28 02:56:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:56:05' and `end` < '2024-12-28 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-28 02:56:17] Production.INFO: count ==379 [2024-12-28 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:56:05 - End Time 2024-12-28 02:56:05 [2024-12-28 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118614', 'tblTempUsageDetail_20' ) start [2024-12-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118614', 'tblTempUsageDetail_20' ) end [2024-12-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118614', 'tblTempVendorCDR_20' ) start [2024-12-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118614', 'tblTempVendorCDR_20' ) end [2024-12-28 02:56:17] Production.INFO: ProcessCDR(1,14118614,1,1,2) [2024-12-28 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118614', 'tblTempUsageDetail_20' ) start [2024-12-28 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118614', 'tblTempUsageDetail_20' ) end [2024-12-28 02:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:56:21] Production.INFO: ==26306== Releasing lock... [2024-12-28 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:56:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:57:05 [end_date_ymd] => 2024-12-28 02:57:05 [RateCDR] => 1 ) [2024-12-28 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:57:05' and `end` < '2024-12-28 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:57:20] Production.INFO: count ==375 [2024-12-28 02:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 23:57:05 - End Time 2024-12-28 02:57:05 [2024-12-28 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118619', 'tblTempUsageDetail_20' ) start [2024-12-28 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118619', 'tblTempUsageDetail_20' ) end [2024-12-28 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118619', 'tblTempVendorCDR_20' ) start [2024-12-28 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118619', 'tblTempVendorCDR_20' ) end [2024-12-28 02:57:20] Production.INFO: ProcessCDR(1,14118619,1,1,2) [2024-12-28 02:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118619', 'tblTempUsageDetail_20' ) start [2024-12-28 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118619', 'tblTempUsageDetail_20' ) end [2024-12-28 02:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:57:23] Production.INFO: ==26378== Releasing lock... [2024-12-28 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:57:23] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:58:05 [end_date_ymd] => 2024-12-28 02:58:05 [RateCDR] => 1 ) [2024-12-28 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-27 23:58:05' and `end` < '2024-12-28 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-28 02:58:18] Production.INFO: count ==375 [2024-12-28 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 23:58:05 - End Time 2024-12-28 02:58:05 [2024-12-28 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118624', 'tblTempUsageDetail_20' ) start [2024-12-28 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118624', 'tblTempUsageDetail_20' ) end [2024-12-28 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118624', 'tblTempVendorCDR_20' ) start [2024-12-28 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118624', 'tblTempVendorCDR_20' ) end [2024-12-28 02:58:18] Production.INFO: ProcessCDR(1,14118624,1,1,2) [2024-12-28 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118624', 'tblTempUsageDetail_20' ) start [2024-12-28 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118624', 'tblTempUsageDetail_20' ) end [2024-12-28 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:58:21] Production.INFO: ==26452== Releasing lock... [2024-12-28 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:58:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 23:59:04 [end_date_ymd] => 2024-12-28 02:59:04 [RateCDR] => 1 ) [2024-12-28 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 23:59:04' and `end` < '2024-12-28 02:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 02:59:17] Production.INFO: count ==374 [2024-12-28 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-27 23:59:04 - End Time 2024-12-28 02:59:04 [2024-12-28 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118629', 'tblTempUsageDetail_20' ) start [2024-12-28 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118629', 'tblTempUsageDetail_20' ) end [2024-12-28 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118629', 'tblTempVendorCDR_20' ) start [2024-12-28 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118629', 'tblTempVendorCDR_20' ) end [2024-12-28 02:59:17] Production.INFO: ProcessCDR(1,14118629,1,1,2) [2024-12-28 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118629', 'tblTempUsageDetail_20' ) start [2024-12-28 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118629', 'tblTempUsageDetail_20' ) end [2024-12-28 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 02:59:20] Production.INFO: ==26525== Releasing lock... [2024-12-28 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 02:59:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:00:06 [end_date_ymd] => 2024-12-28 03:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 00:00:06' and `end` < '2024-12-28 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-28 03:00:18] Production.INFO: count ==378 [2024-12-28 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:00:06 - End Time 2024-12-28 03:00:06 [2024-12-28 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118634', 'tblTempUsageDetail_20' ) start [2024-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118634', 'tblTempUsageDetail_20' ) end [2024-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118634', 'tblTempVendorCDR_20' ) start [2024-12-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118634', 'tblTempVendorCDR_20' ) end [2024-12-28 03:00:18] Production.INFO: ProcessCDR(1,14118634,1,1,2) [2024-12-28 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118634', 'tblTempUsageDetail_20' ) start [2024-12-28 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118634', 'tblTempUsageDetail_20' ) end [2024-12-28 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:00:21] Production.INFO: ==26600== Releasing lock... [2024-12-28 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:00:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:01:05 [end_date_ymd] => 2024-12-28 03:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:01:05' and `end` < '2024-12-28 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-28 03:01:17] Production.INFO: count ==377 [2024-12-28 03:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:01:05 - End Time 2024-12-28 03:01:05 [2024-12-28 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118640', 'tblTempUsageDetail_20' ) start [2024-12-28 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118640', 'tblTempUsageDetail_20' ) end [2024-12-28 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118640', 'tblTempVendorCDR_20' ) start [2024-12-28 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118640', 'tblTempVendorCDR_20' ) end [2024-12-28 03:01:17] Production.INFO: ProcessCDR(1,14118640,1,1,2) [2024-12-28 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118640', 'tblTempUsageDetail_20' ) start [2024-12-28 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118640', 'tblTempUsageDetail_20' ) end [2024-12-28 03:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:01:20] Production.INFO: ==26691== Releasing lock... [2024-12-28 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:01:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:02:05 [end_date_ymd] => 2024-12-28 03:02:05 [RateCDR] => 1 ) [2024-12-28 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:02:05' and `end` < '2024-12-28 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:02:18] Production.INFO: count ==375 [2024-12-28 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:02:05 - End Time 2024-12-28 03:02:05 [2024-12-28 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118645', 'tblTempUsageDetail_20' ) start [2024-12-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118645', 'tblTempUsageDetail_20' ) end [2024-12-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118645', 'tblTempVendorCDR_20' ) start [2024-12-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118645', 'tblTempVendorCDR_20' ) end [2024-12-28 03:02:18] Production.INFO: ProcessCDR(1,14118645,1,1,2) [2024-12-28 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118645', 'tblTempUsageDetail_20' ) start [2024-12-28 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118645', 'tblTempUsageDetail_20' ) end [2024-12-28 03:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:02:22] Production.INFO: ==26846== Releasing lock... [2024-12-28 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:02:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:03:06 [end_date_ymd] => 2024-12-28 03:03:06 [RateCDR] => 1 ) [2024-12-28 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:03:06' and `end` < '2024-12-28 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:03:18] Production.INFO: count ==375 [2024-12-28 03:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:03:06 - End Time 2024-12-28 03:03:06 [2024-12-28 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118650', 'tblTempUsageDetail_20' ) start [2024-12-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118650', 'tblTempUsageDetail_20' ) end [2024-12-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118650', 'tblTempVendorCDR_20' ) start [2024-12-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118650', 'tblTempVendorCDR_20' ) end [2024-12-28 03:03:18] Production.INFO: ProcessCDR(1,14118650,1,1,2) [2024-12-28 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118650', 'tblTempUsageDetail_20' ) start [2024-12-28 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118650', 'tblTempUsageDetail_20' ) end [2024-12-28 03:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:03:22] Production.INFO: ==26924== Releasing lock... [2024-12-28 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:03:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:04:04 [end_date_ymd] => 2024-12-28 03:04:04 [RateCDR] => 1 ) [2024-12-28 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-28 00:04:04' and `end` < '2024-12-28 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-28 03:04:17] Production.INFO: count ==375 [2024-12-28 03:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:04:04 - End Time 2024-12-28 03:04:04 [2024-12-28 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118655', 'tblTempUsageDetail_20' ) start [2024-12-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118655', 'tblTempUsageDetail_20' ) end [2024-12-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118655', 'tblTempVendorCDR_20' ) start [2024-12-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118655', 'tblTempVendorCDR_20' ) end [2024-12-28 03:04:17] Production.INFO: ProcessCDR(1,14118655,1,1,2) [2024-12-28 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118655', 'tblTempUsageDetail_20' ) start [2024-12-28 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118655', 'tblTempUsageDetail_20' ) end [2024-12-28 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:04:21] Production.INFO: ==26998== Releasing lock... [2024-12-28 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:05:05 [end_date_ymd] => 2024-12-28 03:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:05:05' and `end` < '2024-12-28 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-28 03:05:18] Production.INFO: count ==375 [2024-12-28 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:05:05 - End Time 2024-12-28 03:05:05 [2024-12-28 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118660', 'tblTempUsageDetail_20' ) start [2024-12-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118660', 'tblTempUsageDetail_20' ) end [2024-12-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118660', 'tblTempVendorCDR_20' ) start [2024-12-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118660', 'tblTempVendorCDR_20' ) end [2024-12-28 03:05:18] Production.INFO: ProcessCDR(1,14118660,1,1,2) [2024-12-28 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118660', 'tblTempUsageDetail_20' ) start [2024-12-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118660', 'tblTempUsageDetail_20' ) end [2024-12-28 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:05:21] Production.INFO: ==27114== Releasing lock... [2024-12-28 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:05:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:06:04 [end_date_ymd] => 2024-12-28 03:06:04 [RateCDR] => 1 ) [2024-12-28 03: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-28 00:06:04' and `end` < '2024-12-28 03: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-28 03:06:19] Production.INFO: count ==378 [2024-12-28 03:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:06:04 - End Time 2024-12-28 03:06:04 [2024-12-28 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118665', 'tblTempUsageDetail_20' ) start [2024-12-28 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118665', 'tblTempUsageDetail_20' ) end [2024-12-28 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118665', 'tblTempVendorCDR_20' ) start [2024-12-28 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118665', 'tblTempVendorCDR_20' ) end [2024-12-28 03:06:19] Production.INFO: ProcessCDR(1,14118665,1,1,2) [2024-12-28 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118665', 'tblTempUsageDetail_20' ) start [2024-12-28 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118665', 'tblTempUsageDetail_20' ) end [2024-12-28 03:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:06:22] Production.INFO: ==27247== Releasing lock... [2024-12-28 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:06:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:07:05 [end_date_ymd] => 2024-12-28 03:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:07:05' and `end` < '2024-12-28 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-28 03:07:17] Production.INFO: count ==378 [2024-12-28 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:07:05 - End Time 2024-12-28 03:07:05 [2024-12-28 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118670', 'tblTempUsageDetail_20' ) start [2024-12-28 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118670', 'tblTempUsageDetail_20' ) end [2024-12-28 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118670', 'tblTempVendorCDR_20' ) start [2024-12-28 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118670', 'tblTempVendorCDR_20' ) end [2024-12-28 03:07:17] Production.INFO: ProcessCDR(1,14118670,1,1,2) [2024-12-28 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118670', 'tblTempUsageDetail_20' ) start [2024-12-28 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118670', 'tblTempUsageDetail_20' ) end [2024-12-28 03:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:07:20] Production.INFO: ==27349== Releasing lock... [2024-12-28 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:07:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:08:04 [end_date_ymd] => 2024-12-28 03:08:04 [RateCDR] => 1 ) [2024-12-28 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:08:04' and `end` < '2024-12-28 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:08:18] Production.INFO: count ==381 [2024-12-28 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:08:04 - End Time 2024-12-28 03:08:04 [2024-12-28 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118672', 'tblTempUsageDetail_20' ) start [2024-12-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118672', 'tblTempUsageDetail_20' ) end [2024-12-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118672', 'tblTempVendorCDR_20' ) start [2024-12-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118672', 'tblTempVendorCDR_20' ) end [2024-12-28 03:08:18] Production.INFO: ProcessCDR(1,14118672,1,1,2) [2024-12-28 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118672', 'tblTempUsageDetail_20' ) start [2024-12-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118672', 'tblTempUsageDetail_20' ) end [2024-12-28 03:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:08:22] Production.INFO: ==27427== Releasing lock... [2024-12-28 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:08:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:09:05 [end_date_ymd] => 2024-12-28 03:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:09:05' and `end` < '2024-12-28 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-28 03:09:17] Production.INFO: count ==384 [2024-12-28 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:09:05 - End Time 2024-12-28 03:09:05 [2024-12-28 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118680', 'tblTempUsageDetail_20' ) start [2024-12-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118680', 'tblTempUsageDetail_20' ) end [2024-12-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118680', 'tblTempVendorCDR_20' ) start [2024-12-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118680', 'tblTempVendorCDR_20' ) end [2024-12-28 03:09:17] Production.INFO: ProcessCDR(1,14118680,1,1,2) [2024-12-28 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118680', 'tblTempUsageDetail_20' ) start [2024-12-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118680', 'tblTempUsageDetail_20' ) end [2024-12-28 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:09:21] Production.INFO: ==27585== Releasing lock... [2024-12-28 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:09:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:10:05 [end_date_ymd] => 2024-12-28 03:10:05 [RateCDR] => 1 ) [2024-12-28 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:10:05' and `end` < '2024-12-28 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:10:17] Production.INFO: count ==384 [2024-12-28 03:10:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:10:05 - End Time 2024-12-28 03:10:05 [2024-12-28 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118685', 'tblTempUsageDetail_20' ) start [2024-12-28 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118685', 'tblTempUsageDetail_20' ) end [2024-12-28 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118685', 'tblTempVendorCDR_20' ) start [2024-12-28 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118685', 'tblTempVendorCDR_20' ) end [2024-12-28 03:10:17] Production.INFO: ProcessCDR(1,14118685,1,1,2) [2024-12-28 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118685', 'tblTempUsageDetail_20' ) start [2024-12-28 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118685', 'tblTempUsageDetail_20' ) end [2024-12-28 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:10:21] Production.INFO: ==27704== Releasing lock... [2024-12-28 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:10:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:11:04 [end_date_ymd] => 2024-12-28 03:11:04 [RateCDR] => 1 ) [2024-12-28 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-28 00:11:04' and `end` < '2024-12-28 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-28 03:11:18] Production.INFO: count ==364 [2024-12-28 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:11:04 - End Time 2024-12-28 03:11:04 [2024-12-28 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118691', 'tblTempUsageDetail_20' ) start [2024-12-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118691', 'tblTempUsageDetail_20' ) end [2024-12-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118691', 'tblTempVendorCDR_20' ) start [2024-12-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118691', 'tblTempVendorCDR_20' ) end [2024-12-28 03:11:18] Production.INFO: ProcessCDR(1,14118691,1,1,2) [2024-12-28 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118691', 'tblTempUsageDetail_20' ) start [2024-12-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118691', 'tblTempUsageDetail_20' ) end [2024-12-28 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:11:21] Production.INFO: ==27784== Releasing lock... [2024-12-28 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:11:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:12:05 [end_date_ymd] => 2024-12-28 03:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:12:05' and `end` < '2024-12-28 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-28 03:12:19] Production.INFO: count ==363 [2024-12-28 03:12:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:12:05 - End Time 2024-12-28 03:12:05 [2024-12-28 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118696', 'tblTempUsageDetail_20' ) start [2024-12-28 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118696', 'tblTempUsageDetail_20' ) end [2024-12-28 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118696', 'tblTempVendorCDR_20' ) start [2024-12-28 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118696', 'tblTempVendorCDR_20' ) end [2024-12-28 03:12:19] Production.INFO: ProcessCDR(1,14118696,1,1,2) [2024-12-28 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118696', 'tblTempUsageDetail_20' ) start [2024-12-28 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118696', 'tblTempUsageDetail_20' ) end [2024-12-28 03:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:12:22] Production.INFO: ==27874== Releasing lock... [2024-12-28 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:12:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:13:05 [end_date_ymd] => 2024-12-28 03:13:05 [RateCDR] => 1 ) [2024-12-28 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:13:05' and `end` < '2024-12-28 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:13:19] Production.INFO: count ==363 [2024-12-28 03:13:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:13:05 - End Time 2024-12-28 03:13:05 [2024-12-28 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118701', 'tblTempUsageDetail_20' ) start [2024-12-28 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118701', 'tblTempUsageDetail_20' ) end [2024-12-28 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118701', 'tblTempVendorCDR_20' ) start [2024-12-28 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118701', 'tblTempVendorCDR_20' ) end [2024-12-28 03:13:19] Production.INFO: ProcessCDR(1,14118701,1,1,2) [2024-12-28 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118701', 'tblTempUsageDetail_20' ) start [2024-12-28 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118701', 'tblTempUsageDetail_20' ) end [2024-12-28 03:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:13:22] Production.INFO: ==28034== Releasing lock... [2024-12-28 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:13:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:14:05 [end_date_ymd] => 2024-12-28 03:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:14:05' and `end` < '2024-12-28 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-28 03:14:18] Production.INFO: count ==363 [2024-12-28 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:14:05 - End Time 2024-12-28 03:14:05 [2024-12-28 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118706', 'tblTempUsageDetail_20' ) start [2024-12-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118706', 'tblTempUsageDetail_20' ) end [2024-12-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118706', 'tblTempVendorCDR_20' ) start [2024-12-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118706', 'tblTempVendorCDR_20' ) end [2024-12-28 03:14:18] Production.INFO: ProcessCDR(1,14118706,1,1,2) [2024-12-28 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118706', 'tblTempUsageDetail_20' ) start [2024-12-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118706', 'tblTempUsageDetail_20' ) end [2024-12-28 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:14:21] Production.INFO: ==28114== Releasing lock... [2024-12-28 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:15:05 [end_date_ymd] => 2024-12-28 03:15:05 [RateCDR] => 1 ) [2024-12-28 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:15:05' and `end` < '2024-12-28 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:15:18] Production.INFO: count ==363 [2024-12-28 03:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:15:05 - End Time 2024-12-28 03:15:05 [2024-12-28 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118711', 'tblTempUsageDetail_20' ) start [2024-12-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118711', 'tblTempUsageDetail_20' ) end [2024-12-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118711', 'tblTempVendorCDR_20' ) start [2024-12-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118711', 'tblTempVendorCDR_20' ) end [2024-12-28 03:15:18] Production.INFO: ProcessCDR(1,14118711,1,1,2) [2024-12-28 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118711', 'tblTempUsageDetail_20' ) start [2024-12-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118711', 'tblTempUsageDetail_20' ) end [2024-12-28 03:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:15:21] Production.INFO: ==28192== Releasing lock... [2024-12-28 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:15:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:16:05 [end_date_ymd] => 2024-12-28 03:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:16:05' and `end` < '2024-12-28 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-28 03:16:18] Production.INFO: count ==360 [2024-12-28 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:16:05 - End Time 2024-12-28 03:16:05 [2024-12-28 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118716', 'tblTempUsageDetail_20' ) start [2024-12-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118716', 'tblTempUsageDetail_20' ) end [2024-12-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118716', 'tblTempVendorCDR_20' ) start [2024-12-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118716', 'tblTempVendorCDR_20' ) end [2024-12-28 03:16:18] Production.INFO: ProcessCDR(1,14118716,1,1,2) [2024-12-28 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118716', 'tblTempUsageDetail_20' ) start [2024-12-28 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118716', 'tblTempUsageDetail_20' ) end [2024-12-28 03:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:16:22] Production.INFO: ==28276== Releasing lock... [2024-12-28 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:16:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:17:05 [end_date_ymd] => 2024-12-28 03:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:17:05' and `end` < '2024-12-28 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-28 03:17:18] Production.INFO: count ==360 [2024-12-28 03:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:17:05 - End Time 2024-12-28 03:17:05 [2024-12-28 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118721', 'tblTempUsageDetail_20' ) start [2024-12-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118721', 'tblTempUsageDetail_20' ) end [2024-12-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118721', 'tblTempVendorCDR_20' ) start [2024-12-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118721', 'tblTempVendorCDR_20' ) end [2024-12-28 03:17:18] Production.INFO: ProcessCDR(1,14118721,1,1,2) [2024-12-28 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118721', 'tblTempUsageDetail_20' ) start [2024-12-28 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118721', 'tblTempUsageDetail_20' ) end [2024-12-28 03:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:17:22] Production.INFO: ==28436== Releasing lock... [2024-12-28 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:17:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:18:05 [end_date_ymd] => 2024-12-28 03:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:18:05' and `end` < '2024-12-28 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-28 03:18:18] Production.INFO: count ==360 [2024-12-28 03:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:18:05 - End Time 2024-12-28 03:18:05 [2024-12-28 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118726', 'tblTempUsageDetail_20' ) start [2024-12-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118726', 'tblTempUsageDetail_20' ) end [2024-12-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118726', 'tblTempVendorCDR_20' ) start [2024-12-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118726', 'tblTempVendorCDR_20' ) end [2024-12-28 03:18:18] Production.INFO: ProcessCDR(1,14118726,1,1,2) [2024-12-28 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118726', 'tblTempUsageDetail_20' ) start [2024-12-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118726', 'tblTempUsageDetail_20' ) end [2024-12-28 03:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:18:21] Production.INFO: ==28517== Releasing lock... [2024-12-28 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:19:05 [end_date_ymd] => 2024-12-28 03:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:19:05' and `end` < '2024-12-28 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-28 03:19:18] Production.INFO: count ==360 [2024-12-28 03:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:19:05 - End Time 2024-12-28 03:19:05 [2024-12-28 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118731', 'tblTempUsageDetail_20' ) start [2024-12-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118731', 'tblTempUsageDetail_20' ) end [2024-12-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118731', 'tblTempVendorCDR_20' ) start [2024-12-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118731', 'tblTempVendorCDR_20' ) end [2024-12-28 03:19:18] Production.INFO: ProcessCDR(1,14118731,1,1,2) [2024-12-28 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118731', 'tblTempUsageDetail_20' ) start [2024-12-28 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118731', 'tblTempUsageDetail_20' ) end [2024-12-28 03:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:19:22] Production.INFO: ==28597== Releasing lock... [2024-12-28 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:19:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:20:06 [end_date_ymd] => 2024-12-28 03:20:06 [RateCDR] => 1 ) [2024-12-28 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:20:06' and `end` < '2024-12-28 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:20:18] Production.INFO: count ==344 [2024-12-28 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:20:06 - End Time 2024-12-28 03:20:06 [2024-12-28 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118737', 'tblTempUsageDetail_20' ) start [2024-12-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118737', 'tblTempUsageDetail_20' ) end [2024-12-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118737', 'tblTempVendorCDR_20' ) start [2024-12-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118737', 'tblTempVendorCDR_20' ) end [2024-12-28 03:20:19] Production.INFO: ProcessCDR(1,14118737,1,1,2) [2024-12-28 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118737', 'tblTempUsageDetail_20' ) start [2024-12-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118737', 'tblTempUsageDetail_20' ) end [2024-12-28 03:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:20:22] Production.INFO: ==28689== Releasing lock... [2024-12-28 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:20:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:21:04 [end_date_ymd] => 2024-12-28 03:21:04 [RateCDR] => 1 ) [2024-12-28 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:21:04' and `end` < '2024-12-28 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:21:17] Production.INFO: count ==334 [2024-12-28 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:21:04 - End Time 2024-12-28 03:21:04 [2024-12-28 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118742', 'tblTempUsageDetail_20' ) start [2024-12-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118742', 'tblTempUsageDetail_20' ) end [2024-12-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118742', 'tblTempVendorCDR_20' ) start [2024-12-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118742', 'tblTempVendorCDR_20' ) end [2024-12-28 03:21:17] Production.INFO: ProcessCDR(1,14118742,1,1,2) [2024-12-28 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118742', 'tblTempUsageDetail_20' ) start [2024-12-28 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118742', 'tblTempUsageDetail_20' ) end [2024-12-28 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:21:20] Production.INFO: ==28773== Releasing lock... [2024-12-28 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:21:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:22:05 [end_date_ymd] => 2024-12-28 03:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:22:05' and `end` < '2024-12-28 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-28 03:22:18] Production.INFO: count ==327 [2024-12-28 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:22:05 - End Time 2024-12-28 03:22:05 [2024-12-28 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118747', 'tblTempUsageDetail_20' ) start [2024-12-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118747', 'tblTempUsageDetail_20' ) end [2024-12-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118747', 'tblTempVendorCDR_20' ) start [2024-12-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118747', 'tblTempVendorCDR_20' ) end [2024-12-28 03:22:18] Production.INFO: ProcessCDR(1,14118747,1,1,2) [2024-12-28 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118747', 'tblTempUsageDetail_20' ) start [2024-12-28 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118747', 'tblTempUsageDetail_20' ) end [2024-12-28 03:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:22:22] Production.INFO: ==28856== Releasing lock... [2024-12-28 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:22:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:23:04 [end_date_ymd] => 2024-12-28 03:23:04 [RateCDR] => 1 ) [2024-12-28 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:23:04' and `end` < '2024-12-28 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:23:18] Production.INFO: count ==322 [2024-12-28 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:23:04 - End Time 2024-12-28 03:23:04 [2024-12-28 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118752', 'tblTempUsageDetail_20' ) start [2024-12-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118752', 'tblTempUsageDetail_20' ) end [2024-12-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118752', 'tblTempVendorCDR_20' ) start [2024-12-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118752', 'tblTempVendorCDR_20' ) end [2024-12-28 03:23:18] Production.INFO: ProcessCDR(1,14118752,1,1,2) [2024-12-28 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118752', 'tblTempUsageDetail_20' ) start [2024-12-28 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118752', 'tblTempUsageDetail_20' ) end [2024-12-28 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:23:21] Production.INFO: ==28933== Releasing lock... [2024-12-28 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:23:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:24:05 [end_date_ymd] => 2024-12-28 03:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:24:05' and `end` < '2024-12-28 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-28 03:24:18] Production.INFO: count ==321 [2024-12-28 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:24:05 - End Time 2024-12-28 03:24:05 [2024-12-28 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118757', 'tblTempUsageDetail_20' ) start [2024-12-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118757', 'tblTempUsageDetail_20' ) end [2024-12-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118757', 'tblTempVendorCDR_20' ) start [2024-12-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118757', 'tblTempVendorCDR_20' ) end [2024-12-28 03:24:18] Production.INFO: ProcessCDR(1,14118757,1,1,2) [2024-12-28 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118757', 'tblTempUsageDetail_20' ) start [2024-12-28 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118757', 'tblTempUsageDetail_20' ) end [2024-12-28 03:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:24:22] Production.INFO: ==29013== Releasing lock... [2024-12-28 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:24:22] Production.INFO: 30 MB #Memory Used# [2024-12-28 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:25:04 [end_date_ymd] => 2024-12-28 03:25:04 [RateCDR] => 1 ) [2024-12-28 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:25:04' and `end` < '2024-12-28 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:25:18] Production.INFO: count ==316 [2024-12-28 03:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:25:04 - End Time 2024-12-28 03:25:04 [2024-12-28 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118762', 'tblTempUsageDetail_20' ) start [2024-12-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118762', 'tblTempUsageDetail_20' ) end [2024-12-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118762', 'tblTempVendorCDR_20' ) start [2024-12-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118762', 'tblTempVendorCDR_20' ) end [2024-12-28 03:25:18] Production.INFO: ProcessCDR(1,14118762,1,1,2) [2024-12-28 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118762', 'tblTempUsageDetail_20' ) start [2024-12-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118762', 'tblTempUsageDetail_20' ) end [2024-12-28 03:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:25:21] Production.INFO: ==29092== Releasing lock... [2024-12-28 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:25:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:26:05 [end_date_ymd] => 2024-12-28 03:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:26:05' and `end` < '2024-12-28 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-28 03:26:17] Production.INFO: count ==315 [2024-12-28 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:26:05 - End Time 2024-12-28 03:26:05 [2024-12-28 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118767', 'tblTempUsageDetail_20' ) start [2024-12-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118767', 'tblTempUsageDetail_20' ) end [2024-12-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118767', 'tblTempVendorCDR_20' ) start [2024-12-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118767', 'tblTempVendorCDR_20' ) end [2024-12-28 03:26:17] Production.INFO: ProcessCDR(1,14118767,1,1,2) [2024-12-28 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118767', 'tblTempUsageDetail_20' ) start [2024-12-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118767', 'tblTempUsageDetail_20' ) end [2024-12-28 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:26:21] Production.INFO: ==29176== Releasing lock... [2024-12-28 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:26:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:27:05 [end_date_ymd] => 2024-12-28 03:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:27:05' and `end` < '2024-12-28 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-28 03:27:18] Production.INFO: count ==315 [2024-12-28 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:27:05 - End Time 2024-12-28 03:27:05 [2024-12-28 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118772', 'tblTempUsageDetail_20' ) start [2024-12-28 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118772', 'tblTempUsageDetail_20' ) end [2024-12-28 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118772', 'tblTempVendorCDR_20' ) start [2024-12-28 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118772', 'tblTempVendorCDR_20' ) end [2024-12-28 03:27:18] Production.INFO: ProcessCDR(1,14118772,1,1,2) [2024-12-28 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118772', 'tblTempUsageDetail_20' ) start [2024-12-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118772', 'tblTempUsageDetail_20' ) end [2024-12-28 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:27:21] Production.INFO: ==29294== Releasing lock... [2024-12-28 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:27:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:28:05 [end_date_ymd] => 2024-12-28 03:28:05 [RateCDR] => 1 ) [2024-12-28 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:28:05' and `end` < '2024-12-28 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:28:18] Production.INFO: count ==314 [2024-12-28 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:28:05 - End Time 2024-12-28 03:28:05 [2024-12-28 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118777', 'tblTempUsageDetail_20' ) start [2024-12-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118777', 'tblTempUsageDetail_20' ) end [2024-12-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118777', 'tblTempVendorCDR_20' ) start [2024-12-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118777', 'tblTempVendorCDR_20' ) end [2024-12-28 03:28:18] Production.INFO: ProcessCDR(1,14118777,1,1,2) [2024-12-28 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118777', 'tblTempUsageDetail_20' ) start [2024-12-28 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118777', 'tblTempUsageDetail_20' ) end [2024-12-28 03:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:28:23] Production.INFO: ==29374== Releasing lock... [2024-12-28 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:28:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:29:05 [end_date_ymd] => 2024-12-28 03:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:29:05' and `end` < '2024-12-28 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-28 03:29:20] Production.INFO: count ==314 [2024-12-28 03:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 00:29:05 - End Time 2024-12-28 03:29:05 [2024-12-28 03:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118782', 'tblTempUsageDetail_20' ) start [2024-12-28 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118782', 'tblTempUsageDetail_20' ) end [2024-12-28 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118782', 'tblTempVendorCDR_20' ) start [2024-12-28 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118782', 'tblTempVendorCDR_20' ) end [2024-12-28 03:29:20] Production.INFO: ProcessCDR(1,14118782,1,1,2) [2024-12-28 03:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118782', 'tblTempUsageDetail_20' ) start [2024-12-28 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118782', 'tblTempUsageDetail_20' ) end [2024-12-28 03:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:29:23] Production.INFO: ==29457== Releasing lock... [2024-12-28 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:29:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:30:06 [end_date_ymd] => 2024-12-28 03:30:06 [RateCDR] => 1 ) [2024-12-28 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:30:06' and `end` < '2024-12-28 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:30:18] Production.INFO: count ==307 [2024-12-28 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:30:06 - End Time 2024-12-28 03:30:06 [2024-12-28 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118788', 'tblTempUsageDetail_20' ) start [2024-12-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118788', 'tblTempUsageDetail_20' ) end [2024-12-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118788', 'tblTempVendorCDR_20' ) start [2024-12-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118788', 'tblTempVendorCDR_20' ) end [2024-12-28 03:30:18] Production.INFO: ProcessCDR(1,14118788,1,1,2) [2024-12-28 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118788', 'tblTempUsageDetail_20' ) start [2024-12-28 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118788', 'tblTempUsageDetail_20' ) end [2024-12-28 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:30:21] Production.INFO: ==29538== Releasing lock... [2024-12-28 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:30:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:31:05 [end_date_ymd] => 2024-12-28 03:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:31:05' and `end` < '2024-12-28 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-28 03:31:18] Production.INFO: count ==287 [2024-12-28 03:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:31:05 - End Time 2024-12-28 03:31:05 [2024-12-28 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118793', 'tblTempUsageDetail_20' ) start [2024-12-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118793', 'tblTempUsageDetail_20' ) end [2024-12-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118793', 'tblTempVendorCDR_20' ) start [2024-12-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118793', 'tblTempVendorCDR_20' ) end [2024-12-28 03:31:18] Production.INFO: ProcessCDR(1,14118793,1,1,2) [2024-12-28 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118793', 'tblTempUsageDetail_20' ) start [2024-12-28 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118793', 'tblTempUsageDetail_20' ) end [2024-12-28 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:31:21] Production.INFO: ==29619== Releasing lock... [2024-12-28 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:31:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:32:04 [end_date_ymd] => 2024-12-28 03:32:04 [RateCDR] => 1 ) [2024-12-28 03:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:32:04' and `end` < '2024-12-28 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:32:17] Production.INFO: count ==286 [2024-12-28 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:32:04 - End Time 2024-12-28 03:32:04 [2024-12-28 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118798', 'tblTempUsageDetail_20' ) start [2024-12-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118798', 'tblTempUsageDetail_20' ) end [2024-12-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118798', 'tblTempVendorCDR_20' ) start [2024-12-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118798', 'tblTempVendorCDR_20' ) end [2024-12-28 03:32:17] Production.INFO: ProcessCDR(1,14118798,1,1,2) [2024-12-28 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118798', 'tblTempUsageDetail_20' ) start [2024-12-28 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118798', 'tblTempUsageDetail_20' ) end [2024-12-28 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:32:20] Production.INFO: ==29703== Releasing lock... [2024-12-28 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:32:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:33:05 [end_date_ymd] => 2024-12-28 03:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:33:05' and `end` < '2024-12-28 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-28 03:33:18] Production.INFO: count ==286 [2024-12-28 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:33:05 - End Time 2024-12-28 03:33:05 [2024-12-28 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118803', 'tblTempUsageDetail_20' ) start [2024-12-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118803', 'tblTempUsageDetail_20' ) end [2024-12-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118803', 'tblTempVendorCDR_20' ) start [2024-12-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118803', 'tblTempVendorCDR_20' ) end [2024-12-28 03:33:18] Production.INFO: ProcessCDR(1,14118803,1,1,2) [2024-12-28 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118803', 'tblTempUsageDetail_20' ) start [2024-12-28 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118803', 'tblTempUsageDetail_20' ) end [2024-12-28 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:33:21] Production.INFO: ==29785== Releasing lock... [2024-12-28 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:34:05 [end_date_ymd] => 2024-12-28 03:34:05 [RateCDR] => 1 ) [2024-12-28 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:34:05' and `end` < '2024-12-28 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:34:19] Production.INFO: count ==286 [2024-12-28 03:34:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:34:05 - End Time 2024-12-28 03:34:05 [2024-12-28 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118808', 'tblTempUsageDetail_20' ) start [2024-12-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118808', 'tblTempUsageDetail_20' ) end [2024-12-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118808', 'tblTempVendorCDR_20' ) start [2024-12-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118808', 'tblTempVendorCDR_20' ) end [2024-12-28 03:34:19] Production.INFO: ProcessCDR(1,14118808,1,1,2) [2024-12-28 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118808', 'tblTempUsageDetail_20' ) start [2024-12-28 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118808', 'tblTempUsageDetail_20' ) end [2024-12-28 03:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:34:22] Production.INFO: ==29863== Releasing lock... [2024-12-28 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:34:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:35:05 [end_date_ymd] => 2024-12-28 03:35:05 [RateCDR] => 1 ) [2024-12-28 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:35:05' and `end` < '2024-12-28 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:35:17] Production.INFO: count ==284 [2024-12-28 03:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:35:05 - End Time 2024-12-28 03:35:05 [2024-12-28 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118813', 'tblTempUsageDetail_20' ) start [2024-12-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118813', 'tblTempUsageDetail_20' ) end [2024-12-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118813', 'tblTempVendorCDR_20' ) start [2024-12-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118813', 'tblTempVendorCDR_20' ) end [2024-12-28 03:35:18] Production.INFO: ProcessCDR(1,14118813,1,1,2) [2024-12-28 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118813', 'tblTempUsageDetail_20' ) start [2024-12-28 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118813', 'tblTempUsageDetail_20' ) end [2024-12-28 03:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:35:21] Production.INFO: ==29943== Releasing lock... [2024-12-28 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:35:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:36:04 [end_date_ymd] => 2024-12-28 03:36:04 [RateCDR] => 1 ) [2024-12-28 03:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:36:04' and `end` < '2024-12-28 03:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:36:18] Production.INFO: count ==283 [2024-12-28 03:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:36:04 - End Time 2024-12-28 03:36:04 [2024-12-28 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118818', 'tblTempUsageDetail_20' ) start [2024-12-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118818', 'tblTempUsageDetail_20' ) end [2024-12-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118818', 'tblTempVendorCDR_20' ) start [2024-12-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118818', 'tblTempVendorCDR_20' ) end [2024-12-28 03:36:18] Production.INFO: ProcessCDR(1,14118818,1,1,2) [2024-12-28 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118818', 'tblTempUsageDetail_20' ) start [2024-12-28 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118818', 'tblTempUsageDetail_20' ) end [2024-12-28 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:36:21] Production.INFO: ==30015== Releasing lock... [2024-12-28 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:36:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:37:05 [end_date_ymd] => 2024-12-28 03:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:37:05' and `end` < '2024-12-28 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-28 03:37:18] Production.INFO: count ==283 [2024-12-28 03:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:37:05 - End Time 2024-12-28 03:37:05 [2024-12-28 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118823', 'tblTempUsageDetail_20' ) start [2024-12-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118823', 'tblTempUsageDetail_20' ) end [2024-12-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118823', 'tblTempVendorCDR_20' ) start [2024-12-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118823', 'tblTempVendorCDR_20' ) end [2024-12-28 03:37:18] Production.INFO: ProcessCDR(1,14118823,1,1,2) [2024-12-28 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118823', 'tblTempUsageDetail_20' ) start [2024-12-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118823', 'tblTempUsageDetail_20' ) end [2024-12-28 03:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:37:22] Production.INFO: ==30096== Releasing lock... [2024-12-28 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:37:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:38:04 [end_date_ymd] => 2024-12-28 03:38:04 [RateCDR] => 1 ) [2024-12-28 03: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-28 00:38:04' and `end` < '2024-12-28 03: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-28 03:38:17] Production.INFO: count ==283 [2024-12-28 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:38:04 - End Time 2024-12-28 03:38:04 [2024-12-28 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118828', 'tblTempUsageDetail_20' ) start [2024-12-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118828', 'tblTempUsageDetail_20' ) end [2024-12-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118828', 'tblTempVendorCDR_20' ) start [2024-12-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118828', 'tblTempVendorCDR_20' ) end [2024-12-28 03:38:17] Production.INFO: ProcessCDR(1,14118828,1,1,2) [2024-12-28 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118828', 'tblTempUsageDetail_20' ) start [2024-12-28 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118828', 'tblTempUsageDetail_20' ) end [2024-12-28 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:38:21] Production.INFO: ==30172== Releasing lock... [2024-12-28 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:38:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:39:05 [end_date_ymd] => 2024-12-28 03:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:39:05' and `end` < '2024-12-28 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-28 03:39:18] Production.INFO: count ==283 [2024-12-28 03:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:39:05 - End Time 2024-12-28 03:39:05 [2024-12-28 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118833', 'tblTempUsageDetail_20' ) start [2024-12-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118833', 'tblTempUsageDetail_20' ) end [2024-12-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118833', 'tblTempVendorCDR_20' ) start [2024-12-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118833', 'tblTempVendorCDR_20' ) end [2024-12-28 03:39:18] Production.INFO: ProcessCDR(1,14118833,1,1,2) [2024-12-28 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118833', 'tblTempUsageDetail_20' ) start [2024-12-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118833', 'tblTempUsageDetail_20' ) end [2024-12-28 03:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:39:22] Production.INFO: ==30247== Releasing lock... [2024-12-28 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:39:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:40:06 [end_date_ymd] => 2024-12-28 03:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 00:40:06' and `end` < '2024-12-28 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-28 03:40:18] Production.INFO: count ==275 [2024-12-28 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:40:06 - End Time 2024-12-28 03:40:06 [2024-12-28 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118839', 'tblTempUsageDetail_20' ) start [2024-12-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118839', 'tblTempUsageDetail_20' ) end [2024-12-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118839', 'tblTempVendorCDR_20' ) start [2024-12-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118839', 'tblTempVendorCDR_20' ) end [2024-12-28 03:40:18] Production.INFO: ProcessCDR(1,14118839,1,1,2) [2024-12-28 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118839', 'tblTempUsageDetail_20' ) start [2024-12-28 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118839', 'tblTempUsageDetail_20' ) end [2024-12-28 03:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:40:22] Production.INFO: ==30322== Releasing lock... [2024-12-28 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:40:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:41:05 [end_date_ymd] => 2024-12-28 03:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:41:05' and `end` < '2024-12-28 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-28 03:41:18] Production.INFO: count ==251 [2024-12-28 03:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:41:05 - End Time 2024-12-28 03:41:05 [2024-12-28 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118844', 'tblTempUsageDetail_20' ) start [2024-12-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118844', 'tblTempUsageDetail_20' ) end [2024-12-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118844', 'tblTempVendorCDR_20' ) start [2024-12-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118844', 'tblTempVendorCDR_20' ) end [2024-12-28 03:41:18] Production.INFO: ProcessCDR(1,14118844,1,1,2) [2024-12-28 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118844', 'tblTempUsageDetail_20' ) start [2024-12-28 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118844', 'tblTempUsageDetail_20' ) end [2024-12-28 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:41:21] Production.INFO: ==30397== Releasing lock... [2024-12-28 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:41:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:42:05 [end_date_ymd] => 2024-12-28 03:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:42:05' and `end` < '2024-12-28 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-28 03:42:19] Production.INFO: count ==251 [2024-12-28 03:42:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:42:05 - End Time 2024-12-28 03:42:05 [2024-12-28 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118849', 'tblTempUsageDetail_20' ) start [2024-12-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118849', 'tblTempUsageDetail_20' ) end [2024-12-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118849', 'tblTempVendorCDR_20' ) start [2024-12-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118849', 'tblTempVendorCDR_20' ) end [2024-12-28 03:42:19] Production.INFO: ProcessCDR(1,14118849,1,1,2) [2024-12-28 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118849', 'tblTempUsageDetail_20' ) start [2024-12-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118849', 'tblTempUsageDetail_20' ) end [2024-12-28 03:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:42:22] Production.INFO: ==30473== Releasing lock... [2024-12-28 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:42:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:43:05 [end_date_ymd] => 2024-12-28 03:43:05 [RateCDR] => 1 ) [2024-12-28 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:43:05' and `end` < '2024-12-28 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:43:19] Production.INFO: count ==250 [2024-12-28 03:43:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:43:05 - End Time 2024-12-28 03:43:05 [2024-12-28 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118854', 'tblTempUsageDetail_20' ) start [2024-12-28 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118854', 'tblTempUsageDetail_20' ) end [2024-12-28 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118854', 'tblTempVendorCDR_20' ) start [2024-12-28 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118854', 'tblTempVendorCDR_20' ) end [2024-12-28 03:43:19] Production.INFO: ProcessCDR(1,14118854,1,1,2) [2024-12-28 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118854', 'tblTempUsageDetail_20' ) start [2024-12-28 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118854', 'tblTempUsageDetail_20' ) end [2024-12-28 03:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:43:22] Production.INFO: ==30585== Releasing lock... [2024-12-28 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:43:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:44:05 [end_date_ymd] => 2024-12-28 03:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:44:05' and `end` < '2024-12-28 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-28 03:44:19] Production.INFO: count ==249 [2024-12-28 03:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:44:05 - End Time 2024-12-28 03:44:05 [2024-12-28 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118859', 'tblTempUsageDetail_20' ) start [2024-12-28 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118859', 'tblTempUsageDetail_20' ) end [2024-12-28 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118859', 'tblTempVendorCDR_20' ) start [2024-12-28 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118859', 'tblTempVendorCDR_20' ) end [2024-12-28 03:44:19] Production.INFO: ProcessCDR(1,14118859,1,1,2) [2024-12-28 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118859', 'tblTempUsageDetail_20' ) start [2024-12-28 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118859', 'tblTempUsageDetail_20' ) end [2024-12-28 03:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:44:22] Production.INFO: ==30678== Releasing lock... [2024-12-28 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:44:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:45:05 [end_date_ymd] => 2024-12-28 03:45:05 [RateCDR] => 1 ) [2024-12-28 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:45:05' and `end` < '2024-12-28 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:45:17] Production.INFO: count ==249 [2024-12-28 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:45:05 - End Time 2024-12-28 03:45:05 [2024-12-28 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118864', 'tblTempUsageDetail_20' ) start [2024-12-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118864', 'tblTempUsageDetail_20' ) end [2024-12-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118864', 'tblTempVendorCDR_20' ) start [2024-12-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118864', 'tblTempVendorCDR_20' ) end [2024-12-28 03:45:17] Production.INFO: ProcessCDR(1,14118864,1,1,2) [2024-12-28 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118864', 'tblTempUsageDetail_20' ) start [2024-12-28 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118864', 'tblTempUsageDetail_20' ) end [2024-12-28 03:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:45:21] Production.INFO: ==30784== Releasing lock... [2024-12-28 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:45:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:46:05 [end_date_ymd] => 2024-12-28 03:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:46:05' and `end` < '2024-12-28 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-28 03:46:20] Production.INFO: count ==249 [2024-12-28 03:46:20] Production.ERROR: pbx CDR StartTime 2024-12-28 00:46:05 - End Time 2024-12-28 03:46:05 [2024-12-28 03:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118869', 'tblTempUsageDetail_20' ) start [2024-12-28 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118869', 'tblTempUsageDetail_20' ) end [2024-12-28 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118869', 'tblTempVendorCDR_20' ) start [2024-12-28 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118869', 'tblTempVendorCDR_20' ) end [2024-12-28 03:46:20] Production.INFO: ProcessCDR(1,14118869,1,1,2) [2024-12-28 03:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118869', 'tblTempUsageDetail_20' ) start [2024-12-28 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118869', 'tblTempUsageDetail_20' ) end [2024-12-28 03:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:46:23] Production.INFO: ==30924== Releasing lock... [2024-12-28 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:46:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:47:05 [end_date_ymd] => 2024-12-28 03:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:47:05' and `end` < '2024-12-28 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-28 03:47:18] Production.INFO: count ==249 [2024-12-28 03:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:47:05 - End Time 2024-12-28 03:47:05 [2024-12-28 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118874', 'tblTempUsageDetail_20' ) start [2024-12-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118874', 'tblTempUsageDetail_20' ) end [2024-12-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118874', 'tblTempVendorCDR_20' ) start [2024-12-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118874', 'tblTempVendorCDR_20' ) end [2024-12-28 03:47:18] Production.INFO: ProcessCDR(1,14118874,1,1,2) [2024-12-28 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118874', 'tblTempUsageDetail_20' ) start [2024-12-28 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118874', 'tblTempUsageDetail_20' ) end [2024-12-28 03:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:47:21] Production.INFO: ==31046== Releasing lock... [2024-12-28 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:47:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:48:04 [end_date_ymd] => 2024-12-28 03:48:04 [RateCDR] => 1 ) [2024-12-28 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-28 00:48:04' and `end` < '2024-12-28 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-28 03:48:17] Production.INFO: count ==249 [2024-12-28 03:48:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:48:04 - End Time 2024-12-28 03:48:04 [2024-12-28 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118879', 'tblTempUsageDetail_20' ) start [2024-12-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118879', 'tblTempUsageDetail_20' ) end [2024-12-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118879', 'tblTempVendorCDR_20' ) start [2024-12-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118879', 'tblTempVendorCDR_20' ) end [2024-12-28 03:48:17] Production.INFO: ProcessCDR(1,14118879,1,1,2) [2024-12-28 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118879', 'tblTempUsageDetail_20' ) start [2024-12-28 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118879', 'tblTempUsageDetail_20' ) end [2024-12-28 03:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:48:20] Production.INFO: ==31170== Releasing lock... [2024-12-28 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:48:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:49:05 [end_date_ymd] => 2024-12-28 03:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:49:05' and `end` < '2024-12-28 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-28 03:49:20] Production.INFO: count ==247 [2024-12-28 03:49:20] Production.ERROR: pbx CDR StartTime 2024-12-28 00:49:05 - End Time 2024-12-28 03:49:05 [2024-12-28 03:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118884', 'tblTempUsageDetail_20' ) start [2024-12-28 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118884', 'tblTempUsageDetail_20' ) end [2024-12-28 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118884', 'tblTempVendorCDR_20' ) start [2024-12-28 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118884', 'tblTempVendorCDR_20' ) end [2024-12-28 03:49:20] Production.INFO: ProcessCDR(1,14118884,1,1,2) [2024-12-28 03:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118884', 'tblTempUsageDetail_20' ) start [2024-12-28 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118884', 'tblTempUsageDetail_20' ) end [2024-12-28 03:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:49:23] Production.INFO: ==31286== Releasing lock... [2024-12-28 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:49:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:50:06 [end_date_ymd] => 2024-12-28 03:50:06 [RateCDR] => 1 ) [2024-12-28 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:50:06' and `end` < '2024-12-28 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:50:18] Production.INFO: count ==245 [2024-12-28 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:50:06 - End Time 2024-12-28 03:50:06 [2024-12-28 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118890', 'tblTempUsageDetail_20' ) start [2024-12-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118890', 'tblTempUsageDetail_20' ) end [2024-12-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118890', 'tblTempVendorCDR_20' ) start [2024-12-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118890', 'tblTempVendorCDR_20' ) end [2024-12-28 03:50:18] Production.INFO: ProcessCDR(1,14118890,1,1,2) [2024-12-28 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118890', 'tblTempUsageDetail_20' ) start [2024-12-28 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118890', 'tblTempUsageDetail_20' ) end [2024-12-28 03:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:50:22] Production.INFO: ==31436== Releasing lock... [2024-12-28 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:50:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:51:05 [end_date_ymd] => 2024-12-28 03:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:51:05' and `end` < '2024-12-28 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-28 03:51:19] Production.INFO: count ==236 [2024-12-28 03:51:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:51:05 - End Time 2024-12-28 03:51:05 [2024-12-28 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118895', 'tblTempUsageDetail_20' ) start [2024-12-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118895', 'tblTempUsageDetail_20' ) end [2024-12-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118895', 'tblTempVendorCDR_20' ) start [2024-12-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118895', 'tblTempVendorCDR_20' ) end [2024-12-28 03:51:19] Production.INFO: ProcessCDR(1,14118895,1,1,2) [2024-12-28 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118895', 'tblTempUsageDetail_20' ) start [2024-12-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118895', 'tblTempUsageDetail_20' ) end [2024-12-28 03:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:51:22] Production.INFO: ==31581== Releasing lock... [2024-12-28 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:51:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:52:05 [end_date_ymd] => 2024-12-28 03:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:52:05' and `end` < '2024-12-28 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-28 03:52:18] Production.INFO: count ==236 [2024-12-28 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:52:05 - End Time 2024-12-28 03:52:05 [2024-12-28 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118900', 'tblTempUsageDetail_20' ) start [2024-12-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118900', 'tblTempUsageDetail_20' ) end [2024-12-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118900', 'tblTempVendorCDR_20' ) start [2024-12-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118900', 'tblTempVendorCDR_20' ) end [2024-12-28 03:52:18] Production.INFO: ProcessCDR(1,14118900,1,1,2) [2024-12-28 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118900', 'tblTempUsageDetail_20' ) start [2024-12-28 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118900', 'tblTempUsageDetail_20' ) end [2024-12-28 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:52:21] Production.INFO: ==31733== Releasing lock... [2024-12-28 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:53:04 [end_date_ymd] => 2024-12-28 03:53:04 [RateCDR] => 1 ) [2024-12-28 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-28 00:53:04' and `end` < '2024-12-28 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-28 03:53:18] Production.INFO: count ==236 [2024-12-28 03:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:53:04 - End Time 2024-12-28 03:53:04 [2024-12-28 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118905', 'tblTempUsageDetail_20' ) start [2024-12-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118905', 'tblTempUsageDetail_20' ) end [2024-12-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118905', 'tblTempVendorCDR_20' ) start [2024-12-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118905', 'tblTempVendorCDR_20' ) end [2024-12-28 03:53:18] Production.INFO: ProcessCDR(1,14118905,1,1,2) [2024-12-28 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118905', 'tblTempUsageDetail_20' ) start [2024-12-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118905', 'tblTempUsageDetail_20' ) end [2024-12-28 03:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:53:21] Production.INFO: ==31892== Releasing lock... [2024-12-28 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:53:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:54:05 [end_date_ymd] => 2024-12-28 03:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:54:05' and `end` < '2024-12-28 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-28 03:54:18] Production.INFO: count ==235 [2024-12-28 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:54:05 - End Time 2024-12-28 03:54:05 [2024-12-28 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118910', 'tblTempUsageDetail_20' ) start [2024-12-28 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118910', 'tblTempUsageDetail_20' ) end [2024-12-28 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118910', 'tblTempVendorCDR_20' ) start [2024-12-28 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118910', 'tblTempVendorCDR_20' ) end [2024-12-28 03:54:18] Production.INFO: ProcessCDR(1,14118910,1,1,2) [2024-12-28 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118910', 'tblTempUsageDetail_20' ) start [2024-12-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118910', 'tblTempUsageDetail_20' ) end [2024-12-28 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:54:21] Production.INFO: ==32051== Releasing lock... [2024-12-28 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:54:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:55:05 [end_date_ymd] => 2024-12-28 03:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:55:05' and `end` < '2024-12-28 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-28 03:55:17] Production.INFO: count ==233 [2024-12-28 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:55:05 - End Time 2024-12-28 03:55:05 [2024-12-28 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118915', 'tblTempUsageDetail_20' ) start [2024-12-28 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118915', 'tblTempUsageDetail_20' ) end [2024-12-28 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118915', 'tblTempVendorCDR_20' ) start [2024-12-28 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118915', 'tblTempVendorCDR_20' ) end [2024-12-28 03:55:17] Production.INFO: ProcessCDR(1,14118915,1,1,2) [2024-12-28 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118915', 'tblTempUsageDetail_20' ) start [2024-12-28 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118915', 'tblTempUsageDetail_20' ) end [2024-12-28 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:55:20] Production.INFO: ==32211== Releasing lock... [2024-12-28 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:55:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:56:05 [end_date_ymd] => 2024-12-28 03:56:05 [RateCDR] => 1 ) [2024-12-28 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 00:56:05' and `end` < '2024-12-28 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 03:56:17] Production.INFO: count ==233 [2024-12-28 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 00:56:05 - End Time 2024-12-28 03:56:05 [2024-12-28 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118920', 'tblTempUsageDetail_20' ) start [2024-12-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118920', 'tblTempUsageDetail_20' ) end [2024-12-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118920', 'tblTempVendorCDR_20' ) start [2024-12-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118920', 'tblTempVendorCDR_20' ) end [2024-12-28 03:56:17] Production.INFO: ProcessCDR(1,14118920,1,1,2) [2024-12-28 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118920', 'tblTempUsageDetail_20' ) start [2024-12-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118920', 'tblTempUsageDetail_20' ) end [2024-12-28 03:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:56:21] Production.INFO: ==32426== Releasing lock... [2024-12-28 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:56:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:57:05 [end_date_ymd] => 2024-12-28 03:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:57:05' and `end` < '2024-12-28 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-28 03:57:19] Production.INFO: count ==233 [2024-12-28 03:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 00:57:05 - End Time 2024-12-28 03:57:05 [2024-12-28 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118925', 'tblTempUsageDetail_20' ) start [2024-12-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118925', 'tblTempUsageDetail_20' ) end [2024-12-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118925', 'tblTempVendorCDR_20' ) start [2024-12-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118925', 'tblTempVendorCDR_20' ) end [2024-12-28 03:57:19] Production.INFO: ProcessCDR(1,14118925,1,1,2) [2024-12-28 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118925', 'tblTempUsageDetail_20' ) start [2024-12-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118925', 'tblTempUsageDetail_20' ) end [2024-12-28 03:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:57:22] Production.INFO: ==32630== Releasing lock... [2024-12-28 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:57:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:58:05 [end_date_ymd] => 2024-12-28 03:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:58:05' and `end` < '2024-12-28 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-28 03:58:18] Production.INFO: count ==231 [2024-12-28 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:58:05 - End Time 2024-12-28 03:58:05 [2024-12-28 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118930', 'tblTempUsageDetail_20' ) start [2024-12-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118930', 'tblTempUsageDetail_20' ) end [2024-12-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118930', 'tblTempVendorCDR_20' ) start [2024-12-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118930', 'tblTempVendorCDR_20' ) end [2024-12-28 03:58:18] Production.INFO: ProcessCDR(1,14118930,1,1,2) [2024-12-28 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118930', 'tblTempUsageDetail_20' ) start [2024-12-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118930', 'tblTempUsageDetail_20' ) end [2024-12-28 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:58:21] Production.INFO: ==394== Releasing lock... [2024-12-28 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:58:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 00:59:05 [end_date_ymd] => 2024-12-28 03:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 00:59:05' and `end` < '2024-12-28 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-28 03:59:18] Production.INFO: count ==231 [2024-12-28 03:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 00:59:05 - End Time 2024-12-28 03:59:05 [2024-12-28 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118935', 'tblTempUsageDetail_20' ) start [2024-12-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118935', 'tblTempUsageDetail_20' ) end [2024-12-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118935', 'tblTempVendorCDR_20' ) start [2024-12-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118935', 'tblTempVendorCDR_20' ) end [2024-12-28 03:59:18] Production.INFO: ProcessCDR(1,14118935,1,1,2) [2024-12-28 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118935', 'tblTempUsageDetail_20' ) start [2024-12-28 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118935', 'tblTempUsageDetail_20' ) end [2024-12-28 03:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 03:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 03:59:21] Production.INFO: ==665== Releasing lock... [2024-12-28 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 03:59:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:00:06 [end_date_ymd] => 2024-12-28 04:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 01:00:06' and `end` < '2024-12-28 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-28 04:00:19] Production.INFO: count ==227 [2024-12-28 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:00:06 - End Time 2024-12-28 04:00:06 [2024-12-28 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118941', 'tblTempUsageDetail_20' ) start [2024-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118941', 'tblTempUsageDetail_20' ) end [2024-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118941', 'tblTempVendorCDR_20' ) start [2024-12-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118941', 'tblTempVendorCDR_20' ) end [2024-12-28 04:00:19] Production.INFO: ProcessCDR(1,14118941,1,1,2) [2024-12-28 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118941', 'tblTempUsageDetail_20' ) start [2024-12-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118941', 'tblTempUsageDetail_20' ) end [2024-12-28 04:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:00:24] Production.INFO: ==905== Releasing lock... [2024-12-28 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:00:24] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:01:06 [end_date_ymd] => 2024-12-28 04:01:06 [RateCDR] => 1 ) [2024-12-28 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:01:06' and `end` < '2024-12-28 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:01:18] Production.INFO: count ==227 [2024-12-28 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:01:06 - End Time 2024-12-28 04:01:06 [2024-12-28 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118947', 'tblTempUsageDetail_20' ) start [2024-12-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118947', 'tblTempUsageDetail_20' ) end [2024-12-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118947', 'tblTempVendorCDR_20' ) start [2024-12-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118947', 'tblTempVendorCDR_20' ) end [2024-12-28 04:01:18] Production.INFO: ProcessCDR(1,14118947,1,1,2) [2024-12-28 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118947', 'tblTempUsageDetail_20' ) start [2024-12-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118947', 'tblTempUsageDetail_20' ) end [2024-12-28 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:01:21] Production.INFO: ==1135== Releasing lock... [2024-12-28 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:01:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:02:05 [end_date_ymd] => 2024-12-28 04:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:02:05' and `end` < '2024-12-28 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-28 04:02:17] Production.INFO: count ==227 [2024-12-28 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:02:05 - End Time 2024-12-28 04:02:05 [2024-12-28 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118952', 'tblTempUsageDetail_20' ) start [2024-12-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118952', 'tblTempUsageDetail_20' ) end [2024-12-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118952', 'tblTempVendorCDR_20' ) start [2024-12-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118952', 'tblTempVendorCDR_20' ) end [2024-12-28 04:02:17] Production.INFO: ProcessCDR(1,14118952,1,1,2) [2024-12-28 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118952', 'tblTempUsageDetail_20' ) start [2024-12-28 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118952', 'tblTempUsageDetail_20' ) end [2024-12-28 04:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:02:20] Production.INFO: ==1363== Releasing lock... [2024-12-28 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:02:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:03:05 [end_date_ymd] => 2024-12-28 04:03:05 [RateCDR] => 1 ) [2024-12-28 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:03:05' and `end` < '2024-12-28 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:03:17] Production.INFO: count ==228 [2024-12-28 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:03:05 - End Time 2024-12-28 04:03:05 [2024-12-28 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118957', 'tblTempUsageDetail_20' ) start [2024-12-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118957', 'tblTempUsageDetail_20' ) end [2024-12-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118957', 'tblTempVendorCDR_20' ) start [2024-12-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118957', 'tblTempVendorCDR_20' ) end [2024-12-28 04:03:17] Production.INFO: ProcessCDR(1,14118957,1,1,2) [2024-12-28 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118957', 'tblTempUsageDetail_20' ) start [2024-12-28 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118957', 'tblTempUsageDetail_20' ) end [2024-12-28 04:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:03:22] Production.INFO: ==1612== Releasing lock... [2024-12-28 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:03:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:04:05 [end_date_ymd] => 2024-12-28 04:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:04:05' and `end` < '2024-12-28 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-28 04:04:17] Production.INFO: count ==230 [2024-12-28 04:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:04:05 - End Time 2024-12-28 04:04:05 [2024-12-28 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118962', 'tblTempUsageDetail_20' ) start [2024-12-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118962', 'tblTempUsageDetail_20' ) end [2024-12-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118962', 'tblTempVendorCDR_20' ) start [2024-12-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118962', 'tblTempVendorCDR_20' ) end [2024-12-28 04:04:17] Production.INFO: ProcessCDR(1,14118962,1,1,2) [2024-12-28 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118962', 'tblTempUsageDetail_20' ) start [2024-12-28 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118962', 'tblTempUsageDetail_20' ) end [2024-12-28 04:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:04:22] Production.INFO: ==1822== Releasing lock... [2024-12-28 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:04:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:05:05 [end_date_ymd] => 2024-12-28 04:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:05:05' and `end` < '2024-12-28 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-28 04:05:17] Production.INFO: count ==230 [2024-12-28 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:05:05 - End Time 2024-12-28 04:05:05 [2024-12-28 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118967', 'tblTempUsageDetail_20' ) start [2024-12-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118967', 'tblTempUsageDetail_20' ) end [2024-12-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118967', 'tblTempVendorCDR_20' ) start [2024-12-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118967', 'tblTempVendorCDR_20' ) end [2024-12-28 04:05:17] Production.INFO: ProcessCDR(1,14118967,1,1,2) [2024-12-28 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118967', 'tblTempUsageDetail_20' ) start [2024-12-28 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118967', 'tblTempUsageDetail_20' ) end [2024-12-28 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:05:20] Production.INFO: ==2039== Releasing lock... [2024-12-28 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:05:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:06:05 [end_date_ymd] => 2024-12-28 04:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:06:05' and `end` < '2024-12-28 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-28 04:06:19] Production.INFO: count ==230 [2024-12-28 04:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:06:05 - End Time 2024-12-28 04:06:05 [2024-12-28 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118972', 'tblTempUsageDetail_20' ) start [2024-12-28 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118972', 'tblTempUsageDetail_20' ) end [2024-12-28 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118972', 'tblTempVendorCDR_20' ) start [2024-12-28 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118972', 'tblTempVendorCDR_20' ) end [2024-12-28 04:06:19] Production.INFO: ProcessCDR(1,14118972,1,1,2) [2024-12-28 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118972', 'tblTempUsageDetail_20' ) start [2024-12-28 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118972', 'tblTempUsageDetail_20' ) end [2024-12-28 04:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:06:23] Production.INFO: ==2262== Releasing lock... [2024-12-28 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:06:23] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:07:05 [end_date_ymd] => 2024-12-28 04:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:07:05' and `end` < '2024-12-28 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-28 04:07:17] Production.INFO: count ==231 [2024-12-28 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:07:05 - End Time 2024-12-28 04:07:05 [2024-12-28 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118977', 'tblTempUsageDetail_20' ) start [2024-12-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118977', 'tblTempUsageDetail_20' ) end [2024-12-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118977', 'tblTempVendorCDR_20' ) start [2024-12-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118977', 'tblTempVendorCDR_20' ) end [2024-12-28 04:07:17] Production.INFO: ProcessCDR(1,14118977,1,1,2) [2024-12-28 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118977', 'tblTempUsageDetail_20' ) start [2024-12-28 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118977', 'tblTempUsageDetail_20' ) end [2024-12-28 04:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:07:22] Production.INFO: ==2461== Releasing lock... [2024-12-28 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:07:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:08:05 [end_date_ymd] => 2024-12-28 04:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:08:05' and `end` < '2024-12-28 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-28 04:08:18] Production.INFO: count ==231 [2024-12-28 04:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:08:05 - End Time 2024-12-28 04:08:05 [2024-12-28 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118982', 'tblTempUsageDetail_20' ) start [2024-12-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118982', 'tblTempUsageDetail_20' ) end [2024-12-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118982', 'tblTempVendorCDR_20' ) start [2024-12-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118982', 'tblTempVendorCDR_20' ) end [2024-12-28 04:08:18] Production.INFO: ProcessCDR(1,14118982,1,1,2) [2024-12-28 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118982', 'tblTempUsageDetail_20' ) start [2024-12-28 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118982', 'tblTempUsageDetail_20' ) end [2024-12-28 04:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:08:22] Production.INFO: ==2649== Releasing lock... [2024-12-28 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:08:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:09:05 [end_date_ymd] => 2024-12-28 04:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:09:05' and `end` < '2024-12-28 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:09:18] Production.INFO: count ==231 [2024-12-28 04:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:09:05 - End Time 2024-12-28 04:09:05 [2024-12-28 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118987', 'tblTempUsageDetail_20' ) start [2024-12-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118987', 'tblTempUsageDetail_20' ) end [2024-12-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118987', 'tblTempVendorCDR_20' ) start [2024-12-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118987', 'tblTempVendorCDR_20' ) end [2024-12-28 04:09:18] Production.INFO: ProcessCDR(1,14118987,1,1,2) [2024-12-28 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118987', 'tblTempUsageDetail_20' ) start [2024-12-28 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118987', 'tblTempUsageDetail_20' ) end [2024-12-28 04:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:09:21] Production.INFO: ==2827== Releasing lock... [2024-12-28 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:09:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:10:06 [end_date_ymd] => 2024-12-28 04:10:06 [RateCDR] => 1 ) [2024-12-28 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-28 01:10:06' and `end` < '2024-12-28 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-28 04:10:18] Production.INFO: count ==225 [2024-12-28 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:10:06 - End Time 2024-12-28 04:10:06 [2024-12-28 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118993', 'tblTempUsageDetail_20' ) start [2024-12-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118993', 'tblTempUsageDetail_20' ) end [2024-12-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118993', 'tblTempVendorCDR_20' ) start [2024-12-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118993', 'tblTempVendorCDR_20' ) end [2024-12-28 04:10:18] Production.INFO: ProcessCDR(1,14118993,1,1,2) [2024-12-28 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118993', 'tblTempUsageDetail_20' ) start [2024-12-28 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118993', 'tblTempUsageDetail_20' ) end [2024-12-28 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:10:21] Production.INFO: ==2950== Releasing lock... [2024-12-28 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:10:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:11:06 [end_date_ymd] => 2024-12-28 04:11:06 [RateCDR] => 1 ) [2024-12-28 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:11:06' and `end` < '2024-12-28 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:11:18] Production.INFO: count ==225 [2024-12-28 04:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:11:06 - End Time 2024-12-28 04:11:06 [2024-12-28 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118998', 'tblTempUsageDetail_20' ) start [2024-12-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14118998', 'tblTempUsageDetail_20' ) end [2024-12-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118998', 'tblTempVendorCDR_20' ) start [2024-12-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14118998', 'tblTempVendorCDR_20' ) end [2024-12-28 04:11:18] Production.INFO: ProcessCDR(1,14118998,1,1,2) [2024-12-28 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14118998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14118998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14118998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14118998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118998', 'tblTempUsageDetail_20' ) start [2024-12-28 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14118998', 'tblTempUsageDetail_20' ) end [2024-12-28 04:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:11:22] Production.INFO: ==3079== Releasing lock... [2024-12-28 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:11:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:12:05 [end_date_ymd] => 2024-12-28 04:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:12:05' and `end` < '2024-12-28 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-28 04:12:18] Production.INFO: count ==225 [2024-12-28 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:12:05 - End Time 2024-12-28 04:12:05 [2024-12-28 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119003', 'tblTempUsageDetail_20' ) start [2024-12-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119003', 'tblTempUsageDetail_20' ) end [2024-12-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119003', 'tblTempVendorCDR_20' ) start [2024-12-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119003', 'tblTempVendorCDR_20' ) end [2024-12-28 04:12:18] Production.INFO: ProcessCDR(1,14119003,1,1,2) [2024-12-28 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119003', 'tblTempUsageDetail_20' ) start [2024-12-28 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119003', 'tblTempUsageDetail_20' ) end [2024-12-28 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:12:21] Production.INFO: ==3200== Releasing lock... [2024-12-28 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:12:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:13:06 [end_date_ymd] => 2024-12-28 04:13:06 [RateCDR] => 1 ) [2024-12-28 04: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-28 01:13:06' and `end` < '2024-12-28 04: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-28 04:13:18] Production.INFO: count ==225 [2024-12-28 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:13:06 - End Time 2024-12-28 04:13:06 [2024-12-28 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119008', 'tblTempUsageDetail_20' ) start [2024-12-28 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119008', 'tblTempUsageDetail_20' ) end [2024-12-28 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119008', 'tblTempVendorCDR_20' ) start [2024-12-28 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119008', 'tblTempVendorCDR_20' ) end [2024-12-28 04:13:18] Production.INFO: ProcessCDR(1,14119008,1,1,2) [2024-12-28 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119008', 'tblTempUsageDetail_20' ) start [2024-12-28 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119008', 'tblTempUsageDetail_20' ) end [2024-12-28 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:13:21] Production.INFO: ==3327== Releasing lock... [2024-12-28 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:13:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:14:05 [end_date_ymd] => 2024-12-28 04:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:14:05' and `end` < '2024-12-28 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-28 04:14:18] Production.INFO: count ==225 [2024-12-28 04:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:14:05 - End Time 2024-12-28 04:14:05 [2024-12-28 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119013', 'tblTempUsageDetail_20' ) start [2024-12-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119013', 'tblTempUsageDetail_20' ) end [2024-12-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119013', 'tblTempVendorCDR_20' ) start [2024-12-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119013', 'tblTempVendorCDR_20' ) end [2024-12-28 04:14:18] Production.INFO: ProcessCDR(1,14119013,1,1,2) [2024-12-28 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119013', 'tblTempUsageDetail_20' ) start [2024-12-28 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119013', 'tblTempUsageDetail_20' ) end [2024-12-28 04:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:14:21] Production.INFO: ==3458== Releasing lock... [2024-12-28 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:14:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:15:05 [end_date_ymd] => 2024-12-28 04:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:15:05' and `end` < '2024-12-28 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-28 04:15:18] Production.INFO: count ==225 [2024-12-28 04:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:15:05 - End Time 2024-12-28 04:15:05 [2024-12-28 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119018', 'tblTempUsageDetail_20' ) start [2024-12-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119018', 'tblTempUsageDetail_20' ) end [2024-12-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119018', 'tblTempVendorCDR_20' ) start [2024-12-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119018', 'tblTempVendorCDR_20' ) end [2024-12-28 04:15:18] Production.INFO: ProcessCDR(1,14119018,1,1,2) [2024-12-28 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119018', 'tblTempUsageDetail_20' ) start [2024-12-28 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119018', 'tblTempUsageDetail_20' ) end [2024-12-28 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:15:21] Production.INFO: ==3630== Releasing lock... [2024-12-28 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:15:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:16:05 [end_date_ymd] => 2024-12-28 04:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:16:05' and `end` < '2024-12-28 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-28 04:16:17] Production.INFO: count ==225 [2024-12-28 04:16:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:16:05 - End Time 2024-12-28 04:16:05 [2024-12-28 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119023', 'tblTempUsageDetail_20' ) start [2024-12-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119023', 'tblTempUsageDetail_20' ) end [2024-12-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119023', 'tblTempVendorCDR_20' ) start [2024-12-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119023', 'tblTempVendorCDR_20' ) end [2024-12-28 04:16:17] Production.INFO: ProcessCDR(1,14119023,1,1,2) [2024-12-28 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119023', 'tblTempUsageDetail_20' ) start [2024-12-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119023', 'tblTempUsageDetail_20' ) end [2024-12-28 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:16:21] Production.INFO: ==3724== Releasing lock... [2024-12-28 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:16:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:17:05 [end_date_ymd] => 2024-12-28 04:17:05 [RateCDR] => 1 ) [2024-12-28 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:17:05' and `end` < '2024-12-28 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:17:17] Production.INFO: count ==225 [2024-12-28 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:17:05 - End Time 2024-12-28 04:17:05 [2024-12-28 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119028', 'tblTempUsageDetail_20' ) start [2024-12-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119028', 'tblTempUsageDetail_20' ) end [2024-12-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119028', 'tblTempVendorCDR_20' ) start [2024-12-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119028', 'tblTempVendorCDR_20' ) end [2024-12-28 04:17:17] Production.INFO: ProcessCDR(1,14119028,1,1,2) [2024-12-28 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119028', 'tblTempUsageDetail_20' ) start [2024-12-28 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119028', 'tblTempUsageDetail_20' ) end [2024-12-28 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:17:20] Production.INFO: ==3815== Releasing lock... [2024-12-28 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:17:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:18:05 [end_date_ymd] => 2024-12-28 04:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:18:05' and `end` < '2024-12-28 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-28 04:18:17] Production.INFO: count ==225 [2024-12-28 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:18:05 - End Time 2024-12-28 04:18:05 [2024-12-28 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119033', 'tblTempUsageDetail_20' ) start [2024-12-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119033', 'tblTempUsageDetail_20' ) end [2024-12-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119033', 'tblTempVendorCDR_20' ) start [2024-12-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119033', 'tblTempVendorCDR_20' ) end [2024-12-28 04:18:17] Production.INFO: ProcessCDR(1,14119033,1,1,2) [2024-12-28 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119033', 'tblTempUsageDetail_20' ) start [2024-12-28 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119033', 'tblTempUsageDetail_20' ) end [2024-12-28 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:18:20] Production.INFO: ==3900== Releasing lock... [2024-12-28 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:19:05 [end_date_ymd] => 2024-12-28 04:19:05 [RateCDR] => 1 ) [2024-12-28 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:19:05' and `end` < '2024-12-28 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:19:19] Production.INFO: count ==225 [2024-12-28 04:19:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:19:05 - End Time 2024-12-28 04:19:05 [2024-12-28 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119038', 'tblTempUsageDetail_20' ) start [2024-12-28 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119038', 'tblTempUsageDetail_20' ) end [2024-12-28 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119038', 'tblTempVendorCDR_20' ) start [2024-12-28 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119038', 'tblTempVendorCDR_20' ) end [2024-12-28 04:19:19] Production.INFO: ProcessCDR(1,14119038,1,1,2) [2024-12-28 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119038', 'tblTempUsageDetail_20' ) start [2024-12-28 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119038', 'tblTempUsageDetail_20' ) end [2024-12-28 04:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:19:22] Production.INFO: ==3993== Releasing lock... [2024-12-28 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:19:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:20:05 [end_date_ymd] => 2024-12-28 04:20:05 [RateCDR] => 1 ) [2024-12-28 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:20:05' and `end` < '2024-12-28 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:20:18] Production.INFO: count ==218 [2024-12-28 04:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:20:05 - End Time 2024-12-28 04:20:05 [2024-12-28 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119043', 'tblTempUsageDetail_20' ) start [2024-12-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119043', 'tblTempUsageDetail_20' ) end [2024-12-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119043', 'tblTempVendorCDR_20' ) start [2024-12-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119043', 'tblTempVendorCDR_20' ) end [2024-12-28 04:20:18] Production.INFO: ProcessCDR(1,14119043,1,1,2) [2024-12-28 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119043', 'tblTempUsageDetail_20' ) start [2024-12-28 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119043', 'tblTempUsageDetail_20' ) end [2024-12-28 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:20:21] Production.INFO: ==4082== Releasing lock... [2024-12-28 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:20:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:21:05 [end_date_ymd] => 2024-12-28 04:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:21:05' and `end` < '2024-12-28 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-28 04:21:18] Production.INFO: count ==188 [2024-12-28 04:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:21:05 - End Time 2024-12-28 04:21:05 [2024-12-28 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119049', 'tblTempUsageDetail_20' ) start [2024-12-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119049', 'tblTempUsageDetail_20' ) end [2024-12-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119049', 'tblTempVendorCDR_20' ) start [2024-12-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119049', 'tblTempVendorCDR_20' ) end [2024-12-28 04:21:18] Production.INFO: ProcessCDR(1,14119049,1,1,2) [2024-12-28 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119049', 'tblTempUsageDetail_20' ) start [2024-12-28 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119049', 'tblTempUsageDetail_20' ) end [2024-12-28 04:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:21:21] Production.INFO: ==4162== Releasing lock... [2024-12-28 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:21:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:22:05 [end_date_ymd] => 2024-12-28 04:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:22:05' and `end` < '2024-12-28 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-28 04:22:17] Production.INFO: count ==188 [2024-12-28 04:22:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:22:05 - End Time 2024-12-28 04:22:05 [2024-12-28 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119054', 'tblTempUsageDetail_20' ) start [2024-12-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119054', 'tblTempUsageDetail_20' ) end [2024-12-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119054', 'tblTempVendorCDR_20' ) start [2024-12-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119054', 'tblTempVendorCDR_20' ) end [2024-12-28 04:22:17] Production.INFO: ProcessCDR(1,14119054,1,1,2) [2024-12-28 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119054', 'tblTempUsageDetail_20' ) start [2024-12-28 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119054', 'tblTempUsageDetail_20' ) end [2024-12-28 04:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:22:20] Production.INFO: ==4243== Releasing lock... [2024-12-28 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:22:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:23:05 [end_date_ymd] => 2024-12-28 04:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:23:05' and `end` < '2024-12-28 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-28 04:23:18] Production.INFO: count ==188 [2024-12-28 04:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:23:05 - End Time 2024-12-28 04:23:05 [2024-12-28 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119059', 'tblTempUsageDetail_20' ) start [2024-12-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119059', 'tblTempUsageDetail_20' ) end [2024-12-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119059', 'tblTempVendorCDR_20' ) start [2024-12-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119059', 'tblTempVendorCDR_20' ) end [2024-12-28 04:23:18] Production.INFO: ProcessCDR(1,14119059,1,1,2) [2024-12-28 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119059', 'tblTempUsageDetail_20' ) start [2024-12-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119059', 'tblTempUsageDetail_20' ) end [2024-12-28 04:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:23:21] Production.INFO: ==4323== Releasing lock... [2024-12-28 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:23:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:24:05 [end_date_ymd] => 2024-12-28 04:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:24:05' and `end` < '2024-12-28 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-28 04:24:17] Production.INFO: count ==188 [2024-12-28 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:24:05 - End Time 2024-12-28 04:24:05 [2024-12-28 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119064', 'tblTempUsageDetail_20' ) start [2024-12-28 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119064', 'tblTempUsageDetail_20' ) end [2024-12-28 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119064', 'tblTempVendorCDR_20' ) start [2024-12-28 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119064', 'tblTempVendorCDR_20' ) end [2024-12-28 04:24:17] Production.INFO: ProcessCDR(1,14119064,1,1,2) [2024-12-28 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119064', 'tblTempUsageDetail_20' ) start [2024-12-28 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119064', 'tblTempUsageDetail_20' ) end [2024-12-28 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:24:20] Production.INFO: ==4406== Releasing lock... [2024-12-28 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:24:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:25:05 [end_date_ymd] => 2024-12-28 04:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:25:05' and `end` < '2024-12-28 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-28 04:25:17] Production.INFO: count ==188 [2024-12-28 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:25:05 - End Time 2024-12-28 04:25:05 [2024-12-28 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119069', 'tblTempUsageDetail_20' ) start [2024-12-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119069', 'tblTempUsageDetail_20' ) end [2024-12-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119069', 'tblTempVendorCDR_20' ) start [2024-12-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119069', 'tblTempVendorCDR_20' ) end [2024-12-28 04:25:17] Production.INFO: ProcessCDR(1,14119069,1,1,2) [2024-12-28 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119069', 'tblTempUsageDetail_20' ) start [2024-12-28 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119069', 'tblTempUsageDetail_20' ) end [2024-12-28 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:25:21] Production.INFO: ==4486== Releasing lock... [2024-12-28 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:26:04 [end_date_ymd] => 2024-12-28 04:26:04 [RateCDR] => 1 ) [2024-12-28 04: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-28 01:26:04' and `end` < '2024-12-28 04: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-28 04:26:18] Production.INFO: count ==188 [2024-12-28 04:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:26:04 - End Time 2024-12-28 04:26:04 [2024-12-28 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119074', 'tblTempUsageDetail_20' ) start [2024-12-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119074', 'tblTempUsageDetail_20' ) end [2024-12-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119074', 'tblTempVendorCDR_20' ) start [2024-12-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119074', 'tblTempVendorCDR_20' ) end [2024-12-28 04:26:18] Production.INFO: ProcessCDR(1,14119074,1,1,2) [2024-12-28 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119074', 'tblTempUsageDetail_20' ) start [2024-12-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119074', 'tblTempUsageDetail_20' ) end [2024-12-28 04:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:26:21] Production.INFO: ==4558== Releasing lock... [2024-12-28 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:26:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:27:05 [end_date_ymd] => 2024-12-28 04:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:27:05' and `end` < '2024-12-28 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-28 04:27:18] Production.INFO: count ==188 [2024-12-28 04:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:27:05 - End Time 2024-12-28 04:27:05 [2024-12-28 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119079', 'tblTempUsageDetail_20' ) start [2024-12-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119079', 'tblTempUsageDetail_20' ) end [2024-12-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119079', 'tblTempVendorCDR_20' ) start [2024-12-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119079', 'tblTempVendorCDR_20' ) end [2024-12-28 04:27:18] Production.INFO: ProcessCDR(1,14119079,1,1,2) [2024-12-28 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119079', 'tblTempUsageDetail_20' ) start [2024-12-28 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119079', 'tblTempUsageDetail_20' ) end [2024-12-28 04:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:27:22] Production.INFO: ==4642== Releasing lock... [2024-12-28 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:27:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:28:04 [end_date_ymd] => 2024-12-28 04:28:04 [RateCDR] => 1 ) [2024-12-28 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-28 01:28:04' and `end` < '2024-12-28 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-28 04:28:18] Production.INFO: count ==188 [2024-12-28 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:28:04 - End Time 2024-12-28 04:28:04 [2024-12-28 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119084', 'tblTempUsageDetail_20' ) start [2024-12-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119084', 'tblTempUsageDetail_20' ) end [2024-12-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119084', 'tblTempVendorCDR_20' ) start [2024-12-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119084', 'tblTempVendorCDR_20' ) end [2024-12-28 04:28:18] Production.INFO: ProcessCDR(1,14119084,1,1,2) [2024-12-28 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119084', 'tblTempUsageDetail_20' ) start [2024-12-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119084', 'tblTempUsageDetail_20' ) end [2024-12-28 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:28:21] Production.INFO: ==4714== Releasing lock... [2024-12-28 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:29:05 [end_date_ymd] => 2024-12-28 04:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:29:05' and `end` < '2024-12-28 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-28 04:29:19] Production.INFO: count ==187 [2024-12-28 04:29:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:29:05 - End Time 2024-12-28 04:29:05 [2024-12-28 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119089', 'tblTempUsageDetail_20' ) start [2024-12-28 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119089', 'tblTempUsageDetail_20' ) end [2024-12-28 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119089', 'tblTempVendorCDR_20' ) start [2024-12-28 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119089', 'tblTempVendorCDR_20' ) end [2024-12-28 04:29:19] Production.INFO: ProcessCDR(1,14119089,1,1,2) [2024-12-28 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119089', 'tblTempUsageDetail_20' ) start [2024-12-28 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119089', 'tblTempUsageDetail_20' ) end [2024-12-28 04:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:29:22] Production.INFO: ==4790== Releasing lock... [2024-12-28 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:29:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:30:05 [end_date_ymd] => 2024-12-28 04:30:05 [RateCDR] => 1 ) [2024-12-28 04: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-28 01:30:05' and `end` < '2024-12-28 04: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-28 04:30:18] Production.INFO: count ==183 [2024-12-28 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:30:05 - End Time 2024-12-28 04:30:05 [2024-12-28 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119096', 'tblTempUsageDetail_20' ) start [2024-12-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119096', 'tblTempUsageDetail_20' ) end [2024-12-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119096', 'tblTempVendorCDR_20' ) start [2024-12-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119096', 'tblTempVendorCDR_20' ) end [2024-12-28 04:30:18] Production.INFO: ProcessCDR(1,14119096,1,1,2) [2024-12-28 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119096', 'tblTempUsageDetail_20' ) start [2024-12-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119096', 'tblTempUsageDetail_20' ) end [2024-12-28 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:30:21] Production.INFO: ==4904== Releasing lock... [2024-12-28 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:30:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:31:05 [end_date_ymd] => 2024-12-28 04:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:31:05' and `end` < '2024-12-28 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-28 04:31:18] Production.INFO: count ==184 [2024-12-28 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:31:05 - End Time 2024-12-28 04:31:05 [2024-12-28 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119101', 'tblTempUsageDetail_20' ) start [2024-12-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119101', 'tblTempUsageDetail_20' ) end [2024-12-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119101', 'tblTempVendorCDR_20' ) start [2024-12-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119101', 'tblTempVendorCDR_20' ) end [2024-12-28 04:31:18] Production.INFO: ProcessCDR(1,14119101,1,1,2) [2024-12-28 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119101', 'tblTempUsageDetail_20' ) start [2024-12-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119101', 'tblTempUsageDetail_20' ) end [2024-12-28 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:31:21] Production.INFO: ==5050== Releasing lock... [2024-12-28 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:31:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:32:05 [end_date_ymd] => 2024-12-28 04:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:32:05' and `end` < '2024-12-28 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-28 04:32:18] Production.INFO: count ==182 [2024-12-28 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:32:05 - End Time 2024-12-28 04:32:05 [2024-12-28 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119106', 'tblTempUsageDetail_20' ) start [2024-12-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119106', 'tblTempUsageDetail_20' ) end [2024-12-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119106', 'tblTempVendorCDR_20' ) start [2024-12-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119106', 'tblTempVendorCDR_20' ) end [2024-12-28 04:32:18] Production.INFO: ProcessCDR(1,14119106,1,1,2) [2024-12-28 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119106', 'tblTempUsageDetail_20' ) start [2024-12-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119106', 'tblTempUsageDetail_20' ) end [2024-12-28 04:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:32:21] Production.INFO: ==5121== Releasing lock... [2024-12-28 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:32:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:33:04 [end_date_ymd] => 2024-12-28 04:33:04 [RateCDR] => 1 ) [2024-12-28 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-28 01:33:04' and `end` < '2024-12-28 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-28 04:33:17] Production.INFO: count ==182 [2024-12-28 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:33:04 - End Time 2024-12-28 04:33:04 [2024-12-28 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119111', 'tblTempUsageDetail_20' ) start [2024-12-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119111', 'tblTempUsageDetail_20' ) end [2024-12-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119111', 'tblTempVendorCDR_20' ) start [2024-12-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119111', 'tblTempVendorCDR_20' ) end [2024-12-28 04:33:17] Production.INFO: ProcessCDR(1,14119111,1,1,2) [2024-12-28 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119111', 'tblTempUsageDetail_20' ) start [2024-12-28 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119111', 'tblTempUsageDetail_20' ) end [2024-12-28 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:33:20] Production.INFO: ==5197== Releasing lock... [2024-12-28 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:33:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:34:05 [end_date_ymd] => 2024-12-28 04:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:34:05' and `end` < '2024-12-28 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-28 04:34:18] Production.INFO: count ==181 [2024-12-28 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:34:05 - End Time 2024-12-28 04:34:05 [2024-12-28 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119116', 'tblTempUsageDetail_20' ) start [2024-12-28 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119116', 'tblTempUsageDetail_20' ) end [2024-12-28 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119116', 'tblTempVendorCDR_20' ) start [2024-12-28 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119116', 'tblTempVendorCDR_20' ) end [2024-12-28 04:34:18] Production.INFO: ProcessCDR(1,14119116,1,1,2) [2024-12-28 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119116', 'tblTempUsageDetail_20' ) start [2024-12-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119116', 'tblTempUsageDetail_20' ) end [2024-12-28 04:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:34:22] Production.INFO: ==5271== Releasing lock... [2024-12-28 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:34:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:35:04 [end_date_ymd] => 2024-12-28 04:35:04 [RateCDR] => 1 ) [2024-12-28 04:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:35:04' and `end` < '2024-12-28 04:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:35:16] Production.INFO: count ==180 [2024-12-28 04:35:16] Production.ERROR: pbx CDR StartTime 2024-12-28 01:35:04 - End Time 2024-12-28 04:35:04 [2024-12-28 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119121', 'tblTempUsageDetail_20' ) start [2024-12-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119121', 'tblTempUsageDetail_20' ) end [2024-12-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119121', 'tblTempVendorCDR_20' ) start [2024-12-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119121', 'tblTempVendorCDR_20' ) end [2024-12-28 04:35:16] Production.INFO: ProcessCDR(1,14119121,1,1,2) [2024-12-28 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119121', 'tblTempUsageDetail_20' ) start [2024-12-28 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119121', 'tblTempUsageDetail_20' ) end [2024-12-28 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:35:20] Production.INFO: ==5346== Releasing lock... [2024-12-28 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:36:05 [end_date_ymd] => 2024-12-28 04:36:05 [RateCDR] => 1 ) [2024-12-28 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:36:05' and `end` < '2024-12-28 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-28 04:36:18] Production.INFO: count ==180 [2024-12-28 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:36:05 - End Time 2024-12-28 04:36:05 [2024-12-28 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119126', 'tblTempUsageDetail_20' ) start [2024-12-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119126', 'tblTempUsageDetail_20' ) end [2024-12-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119126', 'tblTempVendorCDR_20' ) start [2024-12-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119126', 'tblTempVendorCDR_20' ) end [2024-12-28 04:36:18] Production.INFO: ProcessCDR(1,14119126,1,1,2) [2024-12-28 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119126', 'tblTempUsageDetail_20' ) start [2024-12-28 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119126', 'tblTempUsageDetail_20' ) end [2024-12-28 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:36:21] Production.INFO: ==5420== Releasing lock... [2024-12-28 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:36:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:37:04 [end_date_ymd] => 2024-12-28 04:37:04 [RateCDR] => 1 ) [2024-12-28 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-28 01:37:04' and `end` < '2024-12-28 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-28 04:37:18] Production.INFO: count ==180 [2024-12-28 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:37:04 - End Time 2024-12-28 04:37:04 [2024-12-28 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119131', 'tblTempUsageDetail_20' ) start [2024-12-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119131', 'tblTempUsageDetail_20' ) end [2024-12-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119131', 'tblTempVendorCDR_20' ) start [2024-12-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119131', 'tblTempVendorCDR_20' ) end [2024-12-28 04:37:18] Production.INFO: ProcessCDR(1,14119131,1,1,2) [2024-12-28 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119131', 'tblTempUsageDetail_20' ) start [2024-12-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119131', 'tblTempUsageDetail_20' ) end [2024-12-28 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:37:21] Production.INFO: ==5493== Releasing lock... [2024-12-28 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:37:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:38:05 [end_date_ymd] => 2024-12-28 04:38:05 [RateCDR] => 1 ) [2024-12-28 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:38:05' and `end` < '2024-12-28 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:38:17] Production.INFO: count ==180 [2024-12-28 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:38:05 - End Time 2024-12-28 04:38:05 [2024-12-28 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119136', 'tblTempUsageDetail_20' ) start [2024-12-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119136', 'tblTempUsageDetail_20' ) end [2024-12-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119136', 'tblTempVendorCDR_20' ) start [2024-12-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119136', 'tblTempVendorCDR_20' ) end [2024-12-28 04:38:17] Production.INFO: ProcessCDR(1,14119136,1,1,2) [2024-12-28 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119136', 'tblTempUsageDetail_20' ) start [2024-12-28 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119136', 'tblTempUsageDetail_20' ) end [2024-12-28 04:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:38:20] Production.INFO: ==5566== Releasing lock... [2024-12-28 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:38:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:39:05 [end_date_ymd] => 2024-12-28 04:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:39:05' and `end` < '2024-12-28 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-28 04:39:18] Production.INFO: count ==180 [2024-12-28 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:39:05 - End Time 2024-12-28 04:39:05 [2024-12-28 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119141', 'tblTempUsageDetail_20' ) start [2024-12-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119141', 'tblTempUsageDetail_20' ) end [2024-12-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119141', 'tblTempVendorCDR_20' ) start [2024-12-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119141', 'tblTempVendorCDR_20' ) end [2024-12-28 04:39:18] Production.INFO: ProcessCDR(1,14119141,1,1,2) [2024-12-28 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119141', 'tblTempUsageDetail_20' ) start [2024-12-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119141', 'tblTempUsageDetail_20' ) end [2024-12-28 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:39:21] Production.INFO: ==5638== Releasing lock... [2024-12-28 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:39:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:40:06 [end_date_ymd] => 2024-12-28 04:40:06 [RateCDR] => 1 ) [2024-12-28 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:40:06' and `end` < '2024-12-28 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:40:18] Production.INFO: count ==172 [2024-12-28 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:40:06 - End Time 2024-12-28 04:40:06 [2024-12-28 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119147', 'tblTempUsageDetail_20' ) start [2024-12-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119147', 'tblTempUsageDetail_20' ) end [2024-12-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119147', 'tblTempVendorCDR_20' ) start [2024-12-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119147', 'tblTempVendorCDR_20' ) end [2024-12-28 04:40:18] Production.INFO: ProcessCDR(1,14119147,1,1,2) [2024-12-28 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119147', 'tblTempUsageDetail_20' ) start [2024-12-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119147', 'tblTempUsageDetail_20' ) end [2024-12-28 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:40:21] Production.INFO: ==5715== Releasing lock... [2024-12-28 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:40:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:41:04 [end_date_ymd] => 2024-12-28 04:41:04 [RateCDR] => 1 ) [2024-12-28 04: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-28 01:41:04' and `end` < '2024-12-28 04: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-28 04:41:16] Production.INFO: count ==166 [2024-12-28 04:41:16] Production.ERROR: pbx CDR StartTime 2024-12-28 01:41:04 - End Time 2024-12-28 04:41:04 [2024-12-28 04:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119152', 'tblTempUsageDetail_20' ) start [2024-12-28 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119152', 'tblTempUsageDetail_20' ) end [2024-12-28 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119152', 'tblTempVendorCDR_20' ) start [2024-12-28 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119152', 'tblTempVendorCDR_20' ) end [2024-12-28 04:41:16] Production.INFO: ProcessCDR(1,14119152,1,1,2) [2024-12-28 04:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119152', 'tblTempUsageDetail_20' ) start [2024-12-28 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119152', 'tblTempUsageDetail_20' ) end [2024-12-28 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:41:20] Production.INFO: ==5788== Releasing lock... [2024-12-28 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:41:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:42:05 [end_date_ymd] => 2024-12-28 04:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:42:05' and `end` < '2024-12-28 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:42:20] Production.INFO: count ==166 [2024-12-28 04:42:20] Production.ERROR: pbx CDR StartTime 2024-12-28 01:42:05 - End Time 2024-12-28 04:42:05 [2024-12-28 04:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119157', 'tblTempUsageDetail_20' ) start [2024-12-28 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119157', 'tblTempUsageDetail_20' ) end [2024-12-28 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119157', 'tblTempVendorCDR_20' ) start [2024-12-28 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119157', 'tblTempVendorCDR_20' ) end [2024-12-28 04:42:20] Production.INFO: ProcessCDR(1,14119157,1,1,2) [2024-12-28 04:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119157', 'tblTempUsageDetail_20' ) start [2024-12-28 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119157', 'tblTempUsageDetail_20' ) end [2024-12-28 04:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:42:23] Production.INFO: ==5866== Releasing lock... [2024-12-28 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:42:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:43:05 [end_date_ymd] => 2024-12-28 04:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:43:05' and `end` < '2024-12-28 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-28 04:43:19] Production.INFO: count ==166 [2024-12-28 04:43:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:43:05 - End Time 2024-12-28 04:43:05 [2024-12-28 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119162', 'tblTempUsageDetail_20' ) start [2024-12-28 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119162', 'tblTempUsageDetail_20' ) end [2024-12-28 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119162', 'tblTempVendorCDR_20' ) start [2024-12-28 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119162', 'tblTempVendorCDR_20' ) end [2024-12-28 04:43:19] Production.INFO: ProcessCDR(1,14119162,1,1,2) [2024-12-28 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119162', 'tblTempUsageDetail_20' ) start [2024-12-28 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119162', 'tblTempUsageDetail_20' ) end [2024-12-28 04:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:43:22] Production.INFO: ==5940== Releasing lock... [2024-12-28 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:43:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:44:05 [end_date_ymd] => 2024-12-28 04:44:05 [RateCDR] => 1 ) [2024-12-28 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:44:05' and `end` < '2024-12-28 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:44:17] Production.INFO: count ==166 [2024-12-28 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:44:05 - End Time 2024-12-28 04:44:05 [2024-12-28 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119167', 'tblTempUsageDetail_20' ) start [2024-12-28 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119167', 'tblTempUsageDetail_20' ) end [2024-12-28 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119167', 'tblTempVendorCDR_20' ) start [2024-12-28 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119167', 'tblTempVendorCDR_20' ) end [2024-12-28 04:44:17] Production.INFO: ProcessCDR(1,14119167,1,1,2) [2024-12-28 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119167', 'tblTempUsageDetail_20' ) start [2024-12-28 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119167', 'tblTempUsageDetail_20' ) end [2024-12-28 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:44:20] Production.INFO: ==6016== Releasing lock... [2024-12-28 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:44:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:45:05 [end_date_ymd] => 2024-12-28 04:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:45:05' and `end` < '2024-12-28 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-28 04:45:17] Production.INFO: count ==166 [2024-12-28 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 01:45:05 - End Time 2024-12-28 04:45:05 [2024-12-28 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119172', 'tblTempUsageDetail_20' ) start [2024-12-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119172', 'tblTempUsageDetail_20' ) end [2024-12-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119172', 'tblTempVendorCDR_20' ) start [2024-12-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119172', 'tblTempVendorCDR_20' ) end [2024-12-28 04:45:17] Production.INFO: ProcessCDR(1,14119172,1,1,2) [2024-12-28 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119172', 'tblTempUsageDetail_20' ) start [2024-12-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119172', 'tblTempUsageDetail_20' ) end [2024-12-28 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:45:20] Production.INFO: ==6093== Releasing lock... [2024-12-28 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:45:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:46:04 [end_date_ymd] => 2024-12-28 04:46:04 [RateCDR] => 1 ) [2024-12-28 04:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:46:04' and `end` < '2024-12-28 04:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:46:22] Production.INFO: count ==163 [2024-12-28 04:46:22] Production.ERROR: pbx CDR StartTime 2024-12-28 01:46:04 - End Time 2024-12-28 04:46:04 [2024-12-28 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119177', 'tblTempUsageDetail_20' ) start [2024-12-28 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119177', 'tblTempUsageDetail_20' ) end [2024-12-28 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119177', 'tblTempVendorCDR_20' ) start [2024-12-28 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119177', 'tblTempVendorCDR_20' ) end [2024-12-28 04:46:22] Production.INFO: ProcessCDR(1,14119177,1,1,2) [2024-12-28 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119177', 'tblTempUsageDetail_20' ) start [2024-12-28 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119177', 'tblTempUsageDetail_20' ) end [2024-12-28 04:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:46:25] Production.INFO: ==6212== Releasing lock... [2024-12-28 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:46:25] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:47:04 [end_date_ymd] => 2024-12-28 04:47:04 [RateCDR] => 1 ) [2024-12-28 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:47:04' and `end` < '2024-12-28 04:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:47:19] Production.INFO: count ==163 [2024-12-28 04:47:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:47:04 - End Time 2024-12-28 04:47:04 [2024-12-28 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119182', 'tblTempUsageDetail_20' ) start [2024-12-28 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119182', 'tblTempUsageDetail_20' ) end [2024-12-28 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119182', 'tblTempVendorCDR_20' ) start [2024-12-28 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119182', 'tblTempVendorCDR_20' ) end [2024-12-28 04:47:19] Production.INFO: ProcessCDR(1,14119182,1,1,2) [2024-12-28 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119182', 'tblTempUsageDetail_20' ) start [2024-12-28 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119182', 'tblTempUsageDetail_20' ) end [2024-12-28 04:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:47:22] Production.INFO: ==6285== Releasing lock... [2024-12-28 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:47:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:48:05 [end_date_ymd] => 2024-12-28 04:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:48:05' and `end` < '2024-12-28 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-28 04:48:19] Production.INFO: count ==163 [2024-12-28 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:48:05 - End Time 2024-12-28 04:48:05 [2024-12-28 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119187', 'tblTempUsageDetail_20' ) start [2024-12-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119187', 'tblTempUsageDetail_20' ) end [2024-12-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119187', 'tblTempVendorCDR_20' ) start [2024-12-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119187', 'tblTempVendorCDR_20' ) end [2024-12-28 04:48:19] Production.INFO: ProcessCDR(1,14119187,1,1,2) [2024-12-28 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119187', 'tblTempUsageDetail_20' ) start [2024-12-28 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119187', 'tblTempUsageDetail_20' ) end [2024-12-28 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:48:22] Production.INFO: ==6359== Releasing lock... [2024-12-28 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:48:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:49:04 [end_date_ymd] => 2024-12-28 04:49:04 [RateCDR] => 1 ) [2024-12-28 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:49:04' and `end` < '2024-12-28 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:49:20] Production.INFO: count ==163 [2024-12-28 04:49:20] Production.ERROR: pbx CDR StartTime 2024-12-28 01:49:04 - End Time 2024-12-28 04:49:04 [2024-12-28 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119192', 'tblTempUsageDetail_20' ) start [2024-12-28 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119192', 'tblTempUsageDetail_20' ) end [2024-12-28 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119192', 'tblTempVendorCDR_20' ) start [2024-12-28 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119192', 'tblTempVendorCDR_20' ) end [2024-12-28 04:49:20] Production.INFO: ProcessCDR(1,14119192,1,1,2) [2024-12-28 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119192', 'tblTempUsageDetail_20' ) start [2024-12-28 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119192', 'tblTempUsageDetail_20' ) end [2024-12-28 04:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:49:23] Production.INFO: ==6434== Releasing lock... [2024-12-28 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:49:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:50:06 [end_date_ymd] => 2024-12-28 04:50:06 [RateCDR] => 1 ) [2024-12-28 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:50:06' and `end` < '2024-12-28 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:50:20] Production.INFO: count ==163 [2024-12-28 04:50:20] Production.ERROR: pbx CDR StartTime 2024-12-28 01:50:06 - End Time 2024-12-28 04:50:06 [2024-12-28 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119198', 'tblTempUsageDetail_20' ) start [2024-12-28 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119198', 'tblTempUsageDetail_20' ) end [2024-12-28 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119198', 'tblTempVendorCDR_20' ) start [2024-12-28 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119198', 'tblTempVendorCDR_20' ) end [2024-12-28 04:50:20] Production.INFO: ProcessCDR(1,14119198,1,1,2) [2024-12-28 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119198', 'tblTempUsageDetail_20' ) start [2024-12-28 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119198', 'tblTempUsageDetail_20' ) end [2024-12-28 04:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:50:23] Production.INFO: ==6510== Releasing lock... [2024-12-28 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:50:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:51:05 [end_date_ymd] => 2024-12-28 04:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:51:05' and `end` < '2024-12-28 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:51:20] Production.INFO: count ==159 [2024-12-28 04:51:20] Production.ERROR: pbx CDR StartTime 2024-12-28 01:51:05 - End Time 2024-12-28 04:51:05 [2024-12-28 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119203', 'tblTempUsageDetail_20' ) start [2024-12-28 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119203', 'tblTempUsageDetail_20' ) end [2024-12-28 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119203', 'tblTempVendorCDR_20' ) start [2024-12-28 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119203', 'tblTempVendorCDR_20' ) end [2024-12-28 04:51:20] Production.INFO: ProcessCDR(1,14119203,1,1,2) [2024-12-28 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119203', 'tblTempUsageDetail_20' ) start [2024-12-28 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119203', 'tblTempUsageDetail_20' ) end [2024-12-28 04:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:51:24] Production.INFO: ==6588== Releasing lock... [2024-12-28 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:51:24] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:52:05 [end_date_ymd] => 2024-12-28 04:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:52:05' and `end` < '2024-12-28 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-28 04:52:20] Production.INFO: count ==159 [2024-12-28 04:52:20] Production.ERROR: pbx CDR StartTime 2024-12-28 01:52:05 - End Time 2024-12-28 04:52:05 [2024-12-28 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119208', 'tblTempUsageDetail_20' ) start [2024-12-28 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119208', 'tblTempUsageDetail_20' ) end [2024-12-28 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119208', 'tblTempVendorCDR_20' ) start [2024-12-28 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119208', 'tblTempVendorCDR_20' ) end [2024-12-28 04:52:20] Production.INFO: ProcessCDR(1,14119208,1,1,2) [2024-12-28 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119208', 'tblTempUsageDetail_20' ) start [2024-12-28 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119208', 'tblTempUsageDetail_20' ) end [2024-12-28 04:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:52:24] Production.INFO: ==6660== Releasing lock... [2024-12-28 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:52:24] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:53:04 [end_date_ymd] => 2024-12-28 04:53:04 [RateCDR] => 1 ) [2024-12-28 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 01:53:04' and `end` < '2024-12-28 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 04:53:18] Production.INFO: count ==159 [2024-12-28 04:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:53:04 - End Time 2024-12-28 04:53:04 [2024-12-28 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119213', 'tblTempUsageDetail_20' ) start [2024-12-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119213', 'tblTempUsageDetail_20' ) end [2024-12-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119213', 'tblTempVendorCDR_20' ) start [2024-12-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119213', 'tblTempVendorCDR_20' ) end [2024-12-28 04:53:18] Production.INFO: ProcessCDR(1,14119213,1,1,2) [2024-12-28 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119213', 'tblTempUsageDetail_20' ) start [2024-12-28 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119213', 'tblTempUsageDetail_20' ) end [2024-12-28 04:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:53:21] Production.INFO: ==6736== Releasing lock... [2024-12-28 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:54:05 [end_date_ymd] => 2024-12-28 04:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:54:05' and `end` < '2024-12-28 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-28 04:54:19] Production.INFO: count ==159 [2024-12-28 04:54:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:54:05 - End Time 2024-12-28 04:54:05 [2024-12-28 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119218', 'tblTempUsageDetail_20' ) start [2024-12-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119218', 'tblTempUsageDetail_20' ) end [2024-12-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119218', 'tblTempVendorCDR_20' ) start [2024-12-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119218', 'tblTempVendorCDR_20' ) end [2024-12-28 04:54:19] Production.INFO: ProcessCDR(1,14119218,1,1,2) [2024-12-28 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119218', 'tblTempUsageDetail_20' ) start [2024-12-28 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119218', 'tblTempUsageDetail_20' ) end [2024-12-28 04:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:54:22] Production.INFO: ==6809== Releasing lock... [2024-12-28 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:54:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:55:04 [end_date_ymd] => 2024-12-28 04:55:04 [RateCDR] => 1 ) [2024-12-28 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-28 01:55:04' and `end` < '2024-12-28 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-28 04:55:19] Production.INFO: count ==159 [2024-12-28 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:55:04 - End Time 2024-12-28 04:55:04 [2024-12-28 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119223', 'tblTempUsageDetail_20' ) start [2024-12-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119223', 'tblTempUsageDetail_20' ) end [2024-12-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119223', 'tblTempVendorCDR_20' ) start [2024-12-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119223', 'tblTempVendorCDR_20' ) end [2024-12-28 04:55:19] Production.INFO: ProcessCDR(1,14119223,1,1,2) [2024-12-28 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119223', 'tblTempUsageDetail_20' ) start [2024-12-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119223', 'tblTempUsageDetail_20' ) end [2024-12-28 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:55:22] Production.INFO: ==6880== Releasing lock... [2024-12-28 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:56:04 [end_date_ymd] => 2024-12-28 04:56:04 [RateCDR] => 1 ) [2024-12-28 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-28 01:56:04' and `end` < '2024-12-28 04: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-28 04:56:21] Production.INFO: count ==159 [2024-12-28 04:56:21] Production.ERROR: pbx CDR StartTime 2024-12-28 01:56:04 - End Time 2024-12-28 04:56:04 [2024-12-28 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119228', 'tblTempUsageDetail_20' ) start [2024-12-28 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119228', 'tblTempUsageDetail_20' ) end [2024-12-28 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119228', 'tblTempVendorCDR_20' ) start [2024-12-28 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119228', 'tblTempVendorCDR_20' ) end [2024-12-28 04:56:21] Production.INFO: ProcessCDR(1,14119228,1,1,2) [2024-12-28 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119228', 'tblTempUsageDetail_20' ) start [2024-12-28 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119228', 'tblTempUsageDetail_20' ) end [2024-12-28 04:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:56:24] Production.INFO: ==6952== Releasing lock... [2024-12-28 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:56:24] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:57:05 [end_date_ymd] => 2024-12-28 04:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:57:05' and `end` < '2024-12-28 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-28 04:57:19] Production.INFO: count ==159 [2024-12-28 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:57:05 - End Time 2024-12-28 04:57:05 [2024-12-28 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119233', 'tblTempUsageDetail_20' ) start [2024-12-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119233', 'tblTempUsageDetail_20' ) end [2024-12-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119233', 'tblTempVendorCDR_20' ) start [2024-12-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119233', 'tblTempVendorCDR_20' ) end [2024-12-28 04:57:19] Production.INFO: ProcessCDR(1,14119233,1,1,2) [2024-12-28 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119233', 'tblTempUsageDetail_20' ) start [2024-12-28 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119233', 'tblTempUsageDetail_20' ) end [2024-12-28 04:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:57:23] Production.INFO: ==7027== Releasing lock... [2024-12-28 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:57:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:58:05 [end_date_ymd] => 2024-12-28 04:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:58:05' and `end` < '2024-12-28 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-28 04:58:18] Production.INFO: count ==159 [2024-12-28 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 01:58:05 - End Time 2024-12-28 04:58:05 [2024-12-28 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119238', 'tblTempUsageDetail_20' ) start [2024-12-28 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119238', 'tblTempUsageDetail_20' ) end [2024-12-28 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119238', 'tblTempVendorCDR_20' ) start [2024-12-28 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119238', 'tblTempVendorCDR_20' ) end [2024-12-28 04:58:18] Production.INFO: ProcessCDR(1,14119238,1,1,2) [2024-12-28 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119238', 'tblTempUsageDetail_20' ) start [2024-12-28 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119238', 'tblTempUsageDetail_20' ) end [2024-12-28 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:58:21] Production.INFO: ==7098== Releasing lock... [2024-12-28 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 01:59:05 [end_date_ymd] => 2024-12-28 04:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 01:59:05' and `end` < '2024-12-28 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-28 04:59:19] Production.INFO: count ==159 [2024-12-28 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-28 01:59:05 - End Time 2024-12-28 04:59:05 [2024-12-28 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119243', 'tblTempUsageDetail_20' ) start [2024-12-28 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119243', 'tblTempUsageDetail_20' ) end [2024-12-28 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119243', 'tblTempVendorCDR_20' ) start [2024-12-28 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119243', 'tblTempVendorCDR_20' ) end [2024-12-28 04:59:19] Production.INFO: ProcessCDR(1,14119243,1,1,2) [2024-12-28 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119243', 'tblTempUsageDetail_20' ) start [2024-12-28 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119243', 'tblTempUsageDetail_20' ) end [2024-12-28 04:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 04:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 04:59:23] Production.INFO: ==7172== Releasing lock... [2024-12-28 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 04:59:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:00:05 [end_date_ymd] => 2024-12-28 05:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:00:05' and `end` < '2024-12-28 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-28 05:00:19] Production.INFO: count ==154 [2024-12-28 05:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:00:05 - End Time 2024-12-28 05:00:05 [2024-12-28 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119248', 'tblTempUsageDetail_20' ) start [2024-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119248', 'tblTempUsageDetail_20' ) end [2024-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119248', 'tblTempVendorCDR_20' ) start [2024-12-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119248', 'tblTempVendorCDR_20' ) end [2024-12-28 05:00:19] Production.INFO: ProcessCDR(1,14119248,1,1,2) [2024-12-28 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119248', 'tblTempUsageDetail_20' ) start [2024-12-28 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119248', 'tblTempUsageDetail_20' ) end [2024-12-28 05:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:00:22] Production.INFO: ==7255== Releasing lock... [2024-12-28 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:00:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:01:05 [end_date_ymd] => 2024-12-28 05:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:01:05' and `end` < '2024-12-28 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-28 05:01:20] Production.INFO: count ==148 [2024-12-28 05:01:20] Production.ERROR: pbx CDR StartTime 2024-12-28 02:01:05 - End Time 2024-12-28 05:01:05 [2024-12-28 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119254', 'tblTempUsageDetail_20' ) start [2024-12-28 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119254', 'tblTempUsageDetail_20' ) end [2024-12-28 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119254', 'tblTempVendorCDR_20' ) start [2024-12-28 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119254', 'tblTempVendorCDR_20' ) end [2024-12-28 05:01:20] Production.INFO: ProcessCDR(1,14119254,1,1,2) [2024-12-28 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119254', 'tblTempUsageDetail_20' ) start [2024-12-28 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119254', 'tblTempUsageDetail_20' ) end [2024-12-28 05:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:01:23] Production.INFO: ==7350== Releasing lock... [2024-12-28 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:01:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:02:04 [end_date_ymd] => 2024-12-28 05:02:04 [RateCDR] => 1 ) [2024-12-28 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-28 02:02:04' and `end` < '2024-12-28 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-28 05:02:19] Production.INFO: count ==148 [2024-12-28 05:02:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:02:04 - End Time 2024-12-28 05:02:04 [2024-12-28 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119256', 'tblTempUsageDetail_20' ) start [2024-12-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119256', 'tblTempUsageDetail_20' ) end [2024-12-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119256', 'tblTempVendorCDR_20' ) start [2024-12-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119256', 'tblTempVendorCDR_20' ) end [2024-12-28 05:02:19] Production.INFO: ProcessCDR(1,14119256,1,1,2) [2024-12-28 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119256', 'tblTempUsageDetail_20' ) start [2024-12-28 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119256', 'tblTempUsageDetail_20' ) end [2024-12-28 05:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:02:22] Production.INFO: ==7461== Releasing lock... [2024-12-28 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:02:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:03:05 [end_date_ymd] => 2024-12-28 05:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:03:05' and `end` < '2024-12-28 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-28 05:03:19] Production.INFO: count ==148 [2024-12-28 05:03:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:03:05 - End Time 2024-12-28 05:03:05 [2024-12-28 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119264', 'tblTempUsageDetail_20' ) start [2024-12-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119264', 'tblTempUsageDetail_20' ) end [2024-12-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119264', 'tblTempVendorCDR_20' ) start [2024-12-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119264', 'tblTempVendorCDR_20' ) end [2024-12-28 05:03:19] Production.INFO: ProcessCDR(1,14119264,1,1,2) [2024-12-28 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119264', 'tblTempUsageDetail_20' ) start [2024-12-28 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119264', 'tblTempUsageDetail_20' ) end [2024-12-28 05:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:03:23] Production.INFO: ==7535== Releasing lock... [2024-12-28 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:03:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:04:04 [end_date_ymd] => 2024-12-28 05:04:04 [RateCDR] => 1 ) [2024-12-28 05: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-28 02:04:04' and `end` < '2024-12-28 05: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-28 05:04:17] Production.INFO: count ==148 [2024-12-28 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:04:04 - End Time 2024-12-28 05:04:04 [2024-12-28 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119269', 'tblTempUsageDetail_20' ) start [2024-12-28 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119269', 'tblTempUsageDetail_20' ) end [2024-12-28 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119269', 'tblTempVendorCDR_20' ) start [2024-12-28 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119269', 'tblTempVendorCDR_20' ) end [2024-12-28 05:04:17] Production.INFO: ProcessCDR(1,14119269,1,1,2) [2024-12-28 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119269', 'tblTempUsageDetail_20' ) start [2024-12-28 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119269', 'tblTempUsageDetail_20' ) end [2024-12-28 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:04:20] Production.INFO: ==7607== Releasing lock... [2024-12-28 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:04:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:05:04 [end_date_ymd] => 2024-12-28 05:05:04 [RateCDR] => 1 ) [2024-12-28 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-28 02:05:04' and `end` < '2024-12-28 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-28 05:05:17] Production.INFO: count ==148 [2024-12-28 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:05:04 - End Time 2024-12-28 05:05:04 [2024-12-28 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119274', 'tblTempUsageDetail_20' ) start [2024-12-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119274', 'tblTempUsageDetail_20' ) end [2024-12-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119274', 'tblTempVendorCDR_20' ) start [2024-12-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119274', 'tblTempVendorCDR_20' ) end [2024-12-28 05:05:17] Production.INFO: ProcessCDR(1,14119274,1,1,2) [2024-12-28 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119274', 'tblTempUsageDetail_20' ) start [2024-12-28 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119274', 'tblTempUsageDetail_20' ) end [2024-12-28 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:05:20] Production.INFO: ==7677== Releasing lock... [2024-12-28 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:06:05 [end_date_ymd] => 2024-12-28 05:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:06:05' and `end` < '2024-12-28 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-28 05:06:18] Production.INFO: count ==148 [2024-12-28 05:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:06:05 - End Time 2024-12-28 05:06:05 [2024-12-28 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119279', 'tblTempUsageDetail_20' ) start [2024-12-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119279', 'tblTempUsageDetail_20' ) end [2024-12-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119279', 'tblTempVendorCDR_20' ) start [2024-12-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119279', 'tblTempVendorCDR_20' ) end [2024-12-28 05:06:18] Production.INFO: ProcessCDR(1,14119279,1,1,2) [2024-12-28 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119279', 'tblTempUsageDetail_20' ) start [2024-12-28 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119279', 'tblTempUsageDetail_20' ) end [2024-12-28 05:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:06:21] Production.INFO: ==7762== Releasing lock... [2024-12-28 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:06:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:07:05 [end_date_ymd] => 2024-12-28 05:07:05 [RateCDR] => 1 ) [2024-12-28 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:07:05' and `end` < '2024-12-28 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:07:17] Production.INFO: count ==148 [2024-12-28 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:07:05 - End Time 2024-12-28 05:07:05 [2024-12-28 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119284', 'tblTempUsageDetail_20' ) start [2024-12-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119284', 'tblTempUsageDetail_20' ) end [2024-12-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119284', 'tblTempVendorCDR_20' ) start [2024-12-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119284', 'tblTempVendorCDR_20' ) end [2024-12-28 05:07:17] Production.INFO: ProcessCDR(1,14119284,1,1,2) [2024-12-28 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119284', 'tblTempUsageDetail_20' ) start [2024-12-28 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119284', 'tblTempUsageDetail_20' ) end [2024-12-28 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:07:20] Production.INFO: ==7848== Releasing lock... [2024-12-28 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:07:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:08:06 [end_date_ymd] => 2024-12-28 05:08:06 [RateCDR] => 1 ) [2024-12-28 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:08:06' and `end` < '2024-12-28 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:08:18] Production.INFO: count ==144 [2024-12-28 05:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:08:06 - End Time 2024-12-28 05:08:06 [2024-12-28 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119289', 'tblTempUsageDetail_20' ) start [2024-12-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119289', 'tblTempUsageDetail_20' ) end [2024-12-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119289', 'tblTempVendorCDR_20' ) start [2024-12-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119289', 'tblTempVendorCDR_20' ) end [2024-12-28 05:08:18] Production.INFO: ProcessCDR(1,14119289,1,1,2) [2024-12-28 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119289', 'tblTempUsageDetail_20' ) start [2024-12-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119289', 'tblTempUsageDetail_20' ) end [2024-12-28 05:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:08:21] Production.INFO: ==7930== Releasing lock... [2024-12-28 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:08:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:09:05 [end_date_ymd] => 2024-12-28 05:09:05 [RateCDR] => 1 ) [2024-12-28 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:09:05' and `end` < '2024-12-28 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:09:17] Production.INFO: count ==143 [2024-12-28 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:09:05 - End Time 2024-12-28 05:09:05 [2024-12-28 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119294', 'tblTempUsageDetail_20' ) start [2024-12-28 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119294', 'tblTempUsageDetail_20' ) end [2024-12-28 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119294', 'tblTempVendorCDR_20' ) start [2024-12-28 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119294', 'tblTempVendorCDR_20' ) end [2024-12-28 05:09:17] Production.INFO: ProcessCDR(1,14119294,1,1,2) [2024-12-28 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119294', 'tblTempUsageDetail_20' ) start [2024-12-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119294', 'tblTempUsageDetail_20' ) end [2024-12-28 05:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:09:21] Production.INFO: ==8002== Releasing lock... [2024-12-28 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:10:05 [end_date_ymd] => 2024-12-28 05:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:10:05' and `end` < '2024-12-28 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-28 05:10:18] Production.INFO: count ==136 [2024-12-28 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:10:05 - End Time 2024-12-28 05:10:05 [2024-12-28 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119300', 'tblTempUsageDetail_20' ) start [2024-12-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119300', 'tblTempUsageDetail_20' ) end [2024-12-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119300', 'tblTempVendorCDR_20' ) start [2024-12-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119300', 'tblTempVendorCDR_20' ) end [2024-12-28 05:10:18] Production.INFO: ProcessCDR(1,14119300,1,1,2) [2024-12-28 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119300', 'tblTempUsageDetail_20' ) start [2024-12-28 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119300', 'tblTempUsageDetail_20' ) end [2024-12-28 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:10:21] Production.INFO: ==8083== Releasing lock... [2024-12-28 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:10:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:11:04 [end_date_ymd] => 2024-12-28 05:11:04 [RateCDR] => 1 ) [2024-12-28 05:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:11:04' and `end` < '2024-12-28 05:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:11:17] Production.INFO: count ==117 [2024-12-28 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:11:04 - End Time 2024-12-28 05:11:04 [2024-12-28 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119305', 'tblTempUsageDetail_20' ) start [2024-12-28 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119305', 'tblTempUsageDetail_20' ) end [2024-12-28 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119305', 'tblTempVendorCDR_20' ) start [2024-12-28 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119305', 'tblTempVendorCDR_20' ) end [2024-12-28 05:11:17] Production.INFO: ProcessCDR(1,14119305,1,1,2) [2024-12-28 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119305', 'tblTempUsageDetail_20' ) start [2024-12-28 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119305', 'tblTempUsageDetail_20' ) end [2024-12-28 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:11:20] Production.INFO: ==8173== Releasing lock... [2024-12-28 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:11:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:12:05 [end_date_ymd] => 2024-12-28 05:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:12:05' and `end` < '2024-12-28 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-28 05:12:17] Production.INFO: count ==117 [2024-12-28 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:12:05 - End Time 2024-12-28 05:12:05 [2024-12-28 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119310', 'tblTempUsageDetail_20' ) start [2024-12-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119310', 'tblTempUsageDetail_20' ) end [2024-12-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119310', 'tblTempVendorCDR_20' ) start [2024-12-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119310', 'tblTempVendorCDR_20' ) end [2024-12-28 05:12:17] Production.INFO: ProcessCDR(1,14119310,1,1,2) [2024-12-28 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119310', 'tblTempUsageDetail_20' ) start [2024-12-28 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119310', 'tblTempUsageDetail_20' ) end [2024-12-28 05:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:12:20] Production.INFO: ==8266== Releasing lock... [2024-12-28 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:13:05 [end_date_ymd] => 2024-12-28 05:13:05 [RateCDR] => 1 ) [2024-12-28 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:13:05' and `end` < '2024-12-28 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:13:17] Production.INFO: count ==116 [2024-12-28 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:13:05 - End Time 2024-12-28 05:13:05 [2024-12-28 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119315', 'tblTempUsageDetail_20' ) start [2024-12-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119315', 'tblTempUsageDetail_20' ) end [2024-12-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119315', 'tblTempVendorCDR_20' ) start [2024-12-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119315', 'tblTempVendorCDR_20' ) end [2024-12-28 05:13:17] Production.INFO: ProcessCDR(1,14119315,1,1,2) [2024-12-28 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119315', 'tblTempUsageDetail_20' ) start [2024-12-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119315', 'tblTempUsageDetail_20' ) end [2024-12-28 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:13:20] Production.INFO: ==8366== Releasing lock... [2024-12-28 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:14:05 [end_date_ymd] => 2024-12-28 05:14:05 [RateCDR] => 1 ) [2024-12-28 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:14:05' and `end` < '2024-12-28 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:14:17] Production.INFO: count ==116 [2024-12-28 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:14:05 - End Time 2024-12-28 05:14:05 [2024-12-28 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119320', 'tblTempUsageDetail_20' ) start [2024-12-28 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119320', 'tblTempUsageDetail_20' ) end [2024-12-28 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119320', 'tblTempVendorCDR_20' ) start [2024-12-28 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119320', 'tblTempVendorCDR_20' ) end [2024-12-28 05:14:17] Production.INFO: ProcessCDR(1,14119320,1,1,2) [2024-12-28 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119320', 'tblTempUsageDetail_20' ) start [2024-12-28 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119320', 'tblTempUsageDetail_20' ) end [2024-12-28 05:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:14:20] Production.INFO: ==8466== Releasing lock... [2024-12-28 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:15:05 [end_date_ymd] => 2024-12-28 05:15:05 [RateCDR] => 1 ) [2024-12-28 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:15:05' and `end` < '2024-12-28 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:15:18] Production.INFO: count ==116 [2024-12-28 05:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:15:05 - End Time 2024-12-28 05:15:05 [2024-12-28 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119325', 'tblTempUsageDetail_20' ) start [2024-12-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119325', 'tblTempUsageDetail_20' ) end [2024-12-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119325', 'tblTempVendorCDR_20' ) start [2024-12-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119325', 'tblTempVendorCDR_20' ) end [2024-12-28 05:15:18] Production.INFO: ProcessCDR(1,14119325,1,1,2) [2024-12-28 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119325', 'tblTempUsageDetail_20' ) start [2024-12-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119325', 'tblTempUsageDetail_20' ) end [2024-12-28 05:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:15:21] Production.INFO: ==8567== Releasing lock... [2024-12-28 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:16:05 [end_date_ymd] => 2024-12-28 05:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:16:05' and `end` < '2024-12-28 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-28 05:16:17] Production.INFO: count ==115 [2024-12-28 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:16:05 - End Time 2024-12-28 05:16:05 [2024-12-28 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119330', 'tblTempUsageDetail_20' ) start [2024-12-28 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119330', 'tblTempUsageDetail_20' ) end [2024-12-28 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119330', 'tblTempVendorCDR_20' ) start [2024-12-28 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119330', 'tblTempVendorCDR_20' ) end [2024-12-28 05:16:17] Production.INFO: ProcessCDR(1,14119330,1,1,2) [2024-12-28 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119330', 'tblTempUsageDetail_20' ) start [2024-12-28 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119330', 'tblTempUsageDetail_20' ) end [2024-12-28 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:16:20] Production.INFO: ==8662== Releasing lock... [2024-12-28 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:17:05 [end_date_ymd] => 2024-12-28 05:17:05 [RateCDR] => 1 ) [2024-12-28 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:17:05' and `end` < '2024-12-28 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:17:18] Production.INFO: count ==115 [2024-12-28 05:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:17:05 - End Time 2024-12-28 05:17:05 [2024-12-28 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119335', 'tblTempUsageDetail_20' ) start [2024-12-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119335', 'tblTempUsageDetail_20' ) end [2024-12-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119335', 'tblTempVendorCDR_20' ) start [2024-12-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119335', 'tblTempVendorCDR_20' ) end [2024-12-28 05:17:18] Production.INFO: ProcessCDR(1,14119335,1,1,2) [2024-12-28 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119335', 'tblTempUsageDetail_20' ) start [2024-12-28 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119335', 'tblTempUsageDetail_20' ) end [2024-12-28 05:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:17:21] Production.INFO: ==8801== Releasing lock... [2024-12-28 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:18:04 [end_date_ymd] => 2024-12-28 05:18:04 [RateCDR] => 1 ) [2024-12-28 05: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-28 02:18:04' and `end` < '2024-12-28 05: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-28 05:18:18] Production.INFO: count ==115 [2024-12-28 05:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:18:04 - End Time 2024-12-28 05:18:04 [2024-12-28 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119340', 'tblTempUsageDetail_20' ) start [2024-12-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119340', 'tblTempUsageDetail_20' ) end [2024-12-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119340', 'tblTempVendorCDR_20' ) start [2024-12-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119340', 'tblTempVendorCDR_20' ) end [2024-12-28 05:18:18] Production.INFO: ProcessCDR(1,14119340,1,1,2) [2024-12-28 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119340', 'tblTempUsageDetail_20' ) start [2024-12-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119340', 'tblTempUsageDetail_20' ) end [2024-12-28 05:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:18:21] Production.INFO: ==8898== Releasing lock... [2024-12-28 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:19:05 [end_date_ymd] => 2024-12-28 05:19:05 [RateCDR] => 1 ) [2024-12-28 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:19:05' and `end` < '2024-12-28 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:19:18] Production.INFO: count ==112 [2024-12-28 05:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:19:05 - End Time 2024-12-28 05:19:05 [2024-12-28 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119345', 'tblTempUsageDetail_20' ) start [2024-12-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119345', 'tblTempUsageDetail_20' ) end [2024-12-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119345', 'tblTempVendorCDR_20' ) start [2024-12-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119345', 'tblTempVendorCDR_20' ) end [2024-12-28 05:19:18] Production.INFO: ProcessCDR(1,14119345,1,1,2) [2024-12-28 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119345', 'tblTempUsageDetail_20' ) start [2024-12-28 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119345', 'tblTempUsageDetail_20' ) end [2024-12-28 05:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:19:21] Production.INFO: ==8998== Releasing lock... [2024-12-28 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:19:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:20:06 [end_date_ymd] => 2024-12-28 05:20:06 [RateCDR] => 1 ) [2024-12-28 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-28 02:20:06' and `end` < '2024-12-28 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-28 05:20:19] Production.INFO: count ==101 [2024-12-28 05:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:20:06 - End Time 2024-12-28 05:20:06 [2024-12-28 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119351', 'tblTempUsageDetail_20' ) start [2024-12-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119351', 'tblTempUsageDetail_20' ) end [2024-12-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119351', 'tblTempVendorCDR_20' ) start [2024-12-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119351', 'tblTempVendorCDR_20' ) end [2024-12-28 05:20:19] Production.INFO: ProcessCDR(1,14119351,1,1,2) [2024-12-28 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119351', 'tblTempUsageDetail_20' ) start [2024-12-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119351', 'tblTempUsageDetail_20' ) end [2024-12-28 05:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:20:22] Production.INFO: ==9101== Releasing lock... [2024-12-28 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:20:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:21:05 [end_date_ymd] => 2024-12-28 05:21:05 [RateCDR] => 1 ) [2024-12-28 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:21:05' and `end` < '2024-12-28 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:21:18] Production.INFO: count ==97 [2024-12-28 05:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:21:05 - End Time 2024-12-28 05:21:05 [2024-12-28 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119356', 'tblTempUsageDetail_20' ) start [2024-12-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119356', 'tblTempUsageDetail_20' ) end [2024-12-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119356', 'tblTempVendorCDR_20' ) start [2024-12-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119356', 'tblTempVendorCDR_20' ) end [2024-12-28 05:21:18] Production.INFO: ProcessCDR(1,14119356,1,1,2) [2024-12-28 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119356', 'tblTempUsageDetail_20' ) start [2024-12-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119356', 'tblTempUsageDetail_20' ) end [2024-12-28 05:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:21:21] Production.INFO: ==9205== Releasing lock... [2024-12-28 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:22:05 [end_date_ymd] => 2024-12-28 05:22:05 [RateCDR] => 1 ) [2024-12-28 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:22:05' and `end` < '2024-12-28 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:22:18] Production.INFO: count ==97 [2024-12-28 05:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:22:05 - End Time 2024-12-28 05:22:05 [2024-12-28 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119361', 'tblTempUsageDetail_20' ) start [2024-12-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119361', 'tblTempUsageDetail_20' ) end [2024-12-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119361', 'tblTempVendorCDR_20' ) start [2024-12-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119361', 'tblTempVendorCDR_20' ) end [2024-12-28 05:22:18] Production.INFO: ProcessCDR(1,14119361,1,1,2) [2024-12-28 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119361', 'tblTempUsageDetail_20' ) start [2024-12-28 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119361', 'tblTempUsageDetail_20' ) end [2024-12-28 05:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:22:21] Production.INFO: ==9309== Releasing lock... [2024-12-28 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:23:04 [end_date_ymd] => 2024-12-28 05:23:04 [RateCDR] => 1 ) [2024-12-28 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:23:04' and `end` < '2024-12-28 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:23:17] Production.INFO: count ==97 [2024-12-28 05:23:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:23:04 - End Time 2024-12-28 05:23:04 [2024-12-28 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119366', 'tblTempUsageDetail_20' ) start [2024-12-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119366', 'tblTempUsageDetail_20' ) end [2024-12-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119366', 'tblTempVendorCDR_20' ) start [2024-12-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119366', 'tblTempVendorCDR_20' ) end [2024-12-28 05:23:17] Production.INFO: ProcessCDR(1,14119366,1,1,2) [2024-12-28 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119366', 'tblTempUsageDetail_20' ) start [2024-12-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119366', 'tblTempUsageDetail_20' ) end [2024-12-28 05:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:23:20] Production.INFO: ==9409== Releasing lock... [2024-12-28 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:24:05 [end_date_ymd] => 2024-12-28 05:24:05 [RateCDR] => 1 ) [2024-12-28 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:24:05' and `end` < '2024-12-28 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:24:17] Production.INFO: count ==97 [2024-12-28 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:24:05 - End Time 2024-12-28 05:24:05 [2024-12-28 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119371', 'tblTempUsageDetail_20' ) start [2024-12-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119371', 'tblTempUsageDetail_20' ) end [2024-12-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119371', 'tblTempVendorCDR_20' ) start [2024-12-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119371', 'tblTempVendorCDR_20' ) end [2024-12-28 05:24:17] Production.INFO: ProcessCDR(1,14119371,1,1,2) [2024-12-28 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119371', 'tblTempUsageDetail_20' ) start [2024-12-28 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119371', 'tblTempUsageDetail_20' ) end [2024-12-28 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:24:20] Production.INFO: ==9513== Releasing lock... [2024-12-28 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:25:05 [end_date_ymd] => 2024-12-28 05:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:25:05' and `end` < '2024-12-28 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-28 05:25:19] Production.INFO: count ==97 [2024-12-28 05:25:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:25:05 - End Time 2024-12-28 05:25:05 [2024-12-28 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119376', 'tblTempUsageDetail_20' ) start [2024-12-28 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119376', 'tblTempUsageDetail_20' ) end [2024-12-28 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119376', 'tblTempVendorCDR_20' ) start [2024-12-28 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119376', 'tblTempVendorCDR_20' ) end [2024-12-28 05:25:19] Production.INFO: ProcessCDR(1,14119376,1,1,2) [2024-12-28 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119376', 'tblTempUsageDetail_20' ) start [2024-12-28 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119376', 'tblTempUsageDetail_20' ) end [2024-12-28 05:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:25:22] Production.INFO: ==9616== Releasing lock... [2024-12-28 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:25:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:26:04 [end_date_ymd] => 2024-12-28 05:26:04 [RateCDR] => 1 ) [2024-12-28 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:26:04' and `end` < '2024-12-28 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:26:18] Production.INFO: count ==97 [2024-12-28 05:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:26:04 - End Time 2024-12-28 05:26:04 [2024-12-28 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119381', 'tblTempUsageDetail_20' ) start [2024-12-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119381', 'tblTempUsageDetail_20' ) end [2024-12-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119381', 'tblTempVendorCDR_20' ) start [2024-12-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119381', 'tblTempVendorCDR_20' ) end [2024-12-28 05:26:18] Production.INFO: ProcessCDR(1,14119381,1,1,2) [2024-12-28 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119381', 'tblTempUsageDetail_20' ) start [2024-12-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119381', 'tblTempUsageDetail_20' ) end [2024-12-28 05:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:26:21] Production.INFO: ==9724== Releasing lock... [2024-12-28 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:27:04 [end_date_ymd] => 2024-12-28 05:27:04 [RateCDR] => 1 ) [2024-12-28 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:27:04' and `end` < '2024-12-28 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:27:17] Production.INFO: count ==97 [2024-12-28 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:27:04 - End Time 2024-12-28 05:27:04 [2024-12-28 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119386', 'tblTempUsageDetail_20' ) start [2024-12-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119386', 'tblTempUsageDetail_20' ) end [2024-12-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119386', 'tblTempVendorCDR_20' ) start [2024-12-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119386', 'tblTempVendorCDR_20' ) end [2024-12-28 05:27:17] Production.INFO: ProcessCDR(1,14119386,1,1,2) [2024-12-28 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119386', 'tblTempUsageDetail_20' ) start [2024-12-28 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119386', 'tblTempUsageDetail_20' ) end [2024-12-28 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:27:20] Production.INFO: ==9827== Releasing lock... [2024-12-28 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:28:04 [end_date_ymd] => 2024-12-28 05:28:04 [RateCDR] => 1 ) [2024-12-28 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-28 02:28:04' and `end` < '2024-12-28 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-28 05:28:17] Production.INFO: count ==97 [2024-12-28 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:28:04 - End Time 2024-12-28 05:28:04 [2024-12-28 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119391', 'tblTempUsageDetail_20' ) start [2024-12-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119391', 'tblTempUsageDetail_20' ) end [2024-12-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119391', 'tblTempVendorCDR_20' ) start [2024-12-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119391', 'tblTempVendorCDR_20' ) end [2024-12-28 05:28:17] Production.INFO: ProcessCDR(1,14119391,1,1,2) [2024-12-28 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119391', 'tblTempUsageDetail_20' ) start [2024-12-28 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119391', 'tblTempUsageDetail_20' ) end [2024-12-28 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:28:20] Production.INFO: ==9938== Releasing lock... [2024-12-28 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:29:05 [end_date_ymd] => 2024-12-28 05:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:29:05' and `end` < '2024-12-28 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-28 05:29:17] Production.INFO: count ==97 [2024-12-28 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:29:05 - End Time 2024-12-28 05:29:05 [2024-12-28 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119396', 'tblTempUsageDetail_20' ) start [2024-12-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119396', 'tblTempUsageDetail_20' ) end [2024-12-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119396', 'tblTempVendorCDR_20' ) start [2024-12-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119396', 'tblTempVendorCDR_20' ) end [2024-12-28 05:29:17] Production.INFO: ProcessCDR(1,14119396,1,1,2) [2024-12-28 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119396', 'tblTempUsageDetail_20' ) start [2024-12-28 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119396', 'tblTempUsageDetail_20' ) end [2024-12-28 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:29:20] Production.INFO: ==10045== Releasing lock... [2024-12-28 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:30:06 [end_date_ymd] => 2024-12-28 05:30:06 [RateCDR] => 1 ) [2024-12-28 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:30:06' and `end` < '2024-12-28 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:30:18] Production.INFO: count ==85 [2024-12-28 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:30:06 - End Time 2024-12-28 05:30:06 [2024-12-28 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119401', 'tblTempUsageDetail_20' ) start [2024-12-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119401', 'tblTempUsageDetail_20' ) end [2024-12-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119401', 'tblTempVendorCDR_20' ) start [2024-12-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119401', 'tblTempVendorCDR_20' ) end [2024-12-28 05:30:18] Production.INFO: ProcessCDR(1,14119401,1,1,2) [2024-12-28 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119401', 'tblTempUsageDetail_20' ) start [2024-12-28 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119401', 'tblTempUsageDetail_20' ) end [2024-12-28 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:30:21] Production.INFO: ==10154== Releasing lock... [2024-12-28 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:31:05 [end_date_ymd] => 2024-12-28 05:31:05 [RateCDR] => 1 ) [2024-12-28 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:31:05' and `end` < '2024-12-28 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:31:19] Production.INFO: count ==85 [2024-12-28 05:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:31:05 - End Time 2024-12-28 05:31:05 [2024-12-28 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119407', 'tblTempUsageDetail_20' ) start [2024-12-28 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119407', 'tblTempUsageDetail_20' ) end [2024-12-28 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119407', 'tblTempVendorCDR_20' ) start [2024-12-28 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119407', 'tblTempVendorCDR_20' ) end [2024-12-28 05:31:19] Production.INFO: ProcessCDR(1,14119407,1,1,2) [2024-12-28 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119407', 'tblTempUsageDetail_20' ) start [2024-12-28 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119407', 'tblTempUsageDetail_20' ) end [2024-12-28 05:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:31:23] Production.INFO: ==10264== Releasing lock... [2024-12-28 05:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:31:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:32:04 [end_date_ymd] => 2024-12-28 05:32:04 [RateCDR] => 1 ) [2024-12-28 05: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-28 02:32:04' and `end` < '2024-12-28 05: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-28 05:32:17] Production.INFO: count ==85 [2024-12-28 05:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:32:04 - End Time 2024-12-28 05:32:04 [2024-12-28 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119412', 'tblTempUsageDetail_20' ) start [2024-12-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119412', 'tblTempUsageDetail_20' ) end [2024-12-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119412', 'tblTempVendorCDR_20' ) start [2024-12-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119412', 'tblTempVendorCDR_20' ) end [2024-12-28 05:32:17] Production.INFO: ProcessCDR(1,14119412,1,1,2) [2024-12-28 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119412', 'tblTempUsageDetail_20' ) start [2024-12-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119412', 'tblTempUsageDetail_20' ) end [2024-12-28 05:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:32:20] Production.INFO: ==10370== Releasing lock... [2024-12-28 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:33:05 [end_date_ymd] => 2024-12-28 05:33:05 [RateCDR] => 1 ) [2024-12-28 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:33:05' and `end` < '2024-12-28 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:33:18] Production.INFO: count ==85 [2024-12-28 05:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:33:05 - End Time 2024-12-28 05:33:05 [2024-12-28 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119417', 'tblTempUsageDetail_20' ) start [2024-12-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119417', 'tblTempUsageDetail_20' ) end [2024-12-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119417', 'tblTempVendorCDR_20' ) start [2024-12-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119417', 'tblTempVendorCDR_20' ) end [2024-12-28 05:33:18] Production.INFO: ProcessCDR(1,14119417,1,1,2) [2024-12-28 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119417', 'tblTempUsageDetail_20' ) start [2024-12-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119417', 'tblTempUsageDetail_20' ) end [2024-12-28 05:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:33:21] Production.INFO: ==10518== Releasing lock... [2024-12-28 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:34:04 [end_date_ymd] => 2024-12-28 05:34:04 [RateCDR] => 1 ) [2024-12-28 05: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-28 02:34:04' and `end` < '2024-12-28 05: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-28 05:34:17] Production.INFO: count ==85 [2024-12-28 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:34:04 - End Time 2024-12-28 05:34:04 [2024-12-28 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119422', 'tblTempUsageDetail_20' ) start [2024-12-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119422', 'tblTempUsageDetail_20' ) end [2024-12-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119422', 'tblTempVendorCDR_20' ) start [2024-12-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119422', 'tblTempVendorCDR_20' ) end [2024-12-28 05:34:17] Production.INFO: ProcessCDR(1,14119422,1,1,2) [2024-12-28 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119422', 'tblTempUsageDetail_20' ) start [2024-12-28 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119422', 'tblTempUsageDetail_20' ) end [2024-12-28 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:34:20] Production.INFO: ==10621== Releasing lock... [2024-12-28 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:35:05 [end_date_ymd] => 2024-12-28 05:35:05 [RateCDR] => 1 ) [2024-12-28 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:35:05' and `end` < '2024-12-28 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:35:19] Production.INFO: count ==85 [2024-12-28 05:35:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:35:05 - End Time 2024-12-28 05:35:05 [2024-12-28 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119427', 'tblTempUsageDetail_20' ) start [2024-12-28 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119427', 'tblTempUsageDetail_20' ) end [2024-12-28 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119427', 'tblTempVendorCDR_20' ) start [2024-12-28 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119427', 'tblTempVendorCDR_20' ) end [2024-12-28 05:35:19] Production.INFO: ProcessCDR(1,14119427,1,1,2) [2024-12-28 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119427', 'tblTempUsageDetail_20' ) start [2024-12-28 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119427', 'tblTempUsageDetail_20' ) end [2024-12-28 05:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:35:22] Production.INFO: ==10738== Releasing lock... [2024-12-28 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:35:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:36:05 [end_date_ymd] => 2024-12-28 05:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:36:05' and `end` < '2024-12-28 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-28 05:36:19] Production.INFO: count ==85 [2024-12-28 05:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:36:05 - End Time 2024-12-28 05:36:05 [2024-12-28 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119432', 'tblTempUsageDetail_20' ) start [2024-12-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119432', 'tblTempUsageDetail_20' ) end [2024-12-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119432', 'tblTempVendorCDR_20' ) start [2024-12-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119432', 'tblTempVendorCDR_20' ) end [2024-12-28 05:36:19] Production.INFO: ProcessCDR(1,14119432,1,1,2) [2024-12-28 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119432', 'tblTempUsageDetail_20' ) start [2024-12-28 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119432', 'tblTempUsageDetail_20' ) end [2024-12-28 05:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:36:22] Production.INFO: ==10851== Releasing lock... [2024-12-28 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:36:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:37:05 [end_date_ymd] => 2024-12-28 05:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:37:05' and `end` < '2024-12-28 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-28 05:37:17] Production.INFO: count ==85 [2024-12-28 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:37:05 - End Time 2024-12-28 05:37:05 [2024-12-28 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119437', 'tblTempUsageDetail_20' ) start [2024-12-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119437', 'tblTempUsageDetail_20' ) end [2024-12-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119437', 'tblTempVendorCDR_20' ) start [2024-12-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119437', 'tblTempVendorCDR_20' ) end [2024-12-28 05:37:17] Production.INFO: ProcessCDR(1,14119437,1,1,2) [2024-12-28 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119437', 'tblTempUsageDetail_20' ) start [2024-12-28 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119437', 'tblTempUsageDetail_20' ) end [2024-12-28 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:37:20] Production.INFO: ==10948== Releasing lock... [2024-12-28 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:38:04 [end_date_ymd] => 2024-12-28 05:38:04 [RateCDR] => 1 ) [2024-12-28 05:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:38:04' and `end` < '2024-12-28 05:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:38:18] Production.INFO: count ==85 [2024-12-28 05:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:38:04 - End Time 2024-12-28 05:38:04 [2024-12-28 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119442', 'tblTempUsageDetail_20' ) start [2024-12-28 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119442', 'tblTempUsageDetail_20' ) end [2024-12-28 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119442', 'tblTempVendorCDR_20' ) start [2024-12-28 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119442', 'tblTempVendorCDR_20' ) end [2024-12-28 05:38:18] Production.INFO: ProcessCDR(1,14119442,1,1,2) [2024-12-28 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119442', 'tblTempUsageDetail_20' ) start [2024-12-28 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119442', 'tblTempUsageDetail_20' ) end [2024-12-28 05:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:38:21] Production.INFO: ==11062== Releasing lock... [2024-12-28 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:39:05 [end_date_ymd] => 2024-12-28 05:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:39:05' and `end` < '2024-12-28 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-28 05:39:17] Production.INFO: count ==82 [2024-12-28 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:39:05 - End Time 2024-12-28 05:39:05 [2024-12-28 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119447', 'tblTempUsageDetail_20' ) start [2024-12-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119447', 'tblTempUsageDetail_20' ) end [2024-12-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119447', 'tblTempVendorCDR_20' ) start [2024-12-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119447', 'tblTempVendorCDR_20' ) end [2024-12-28 05:39:17] Production.INFO: ProcessCDR(1,14119447,1,1,2) [2024-12-28 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119447', 'tblTempUsageDetail_20' ) start [2024-12-28 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119447', 'tblTempUsageDetail_20' ) end [2024-12-28 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:39:20] Production.INFO: ==11186== Releasing lock... [2024-12-28 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:40:06 [end_date_ymd] => 2024-12-28 05:40:06 [RateCDR] => 1 ) [2024-12-28 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:40:06' and `end` < '2024-12-28 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:40:19] Production.INFO: count ==73 [2024-12-28 05:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:40:06 - End Time 2024-12-28 05:40:06 [2024-12-28 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119453', 'tblTempUsageDetail_20' ) start [2024-12-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119453', 'tblTempUsageDetail_20' ) end [2024-12-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119453', 'tblTempVendorCDR_20' ) start [2024-12-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119453', 'tblTempVendorCDR_20' ) end [2024-12-28 05:40:19] Production.INFO: ProcessCDR(1,14119453,1,1,2) [2024-12-28 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119453', 'tblTempUsageDetail_20' ) start [2024-12-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119453', 'tblTempUsageDetail_20' ) end [2024-12-28 05:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:40:22] Production.INFO: ==11328== Releasing lock... [2024-12-28 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:41:05 [end_date_ymd] => 2024-12-28 05:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:41:05' and `end` < '2024-12-28 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-28 05:41:17] Production.INFO: count ==65 [2024-12-28 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:41:05 - End Time 2024-12-28 05:41:05 [2024-12-28 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119458', 'tblTempUsageDetail_20' ) start [2024-12-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119458', 'tblTempUsageDetail_20' ) end [2024-12-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119458', 'tblTempVendorCDR_20' ) start [2024-12-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119458', 'tblTempVendorCDR_20' ) end [2024-12-28 05:41:17] Production.INFO: ProcessCDR(1,14119458,1,1,2) [2024-12-28 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119458', 'tblTempUsageDetail_20' ) start [2024-12-28 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119458', 'tblTempUsageDetail_20' ) end [2024-12-28 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:41:20] Production.INFO: ==11472== Releasing lock... [2024-12-28 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:42:05 [end_date_ymd] => 2024-12-28 05:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:42:05' and `end` < '2024-12-28 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-28 05:42:17] Production.INFO: count ==65 [2024-12-28 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:42:05 - End Time 2024-12-28 05:42:05 [2024-12-28 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119463', 'tblTempUsageDetail_20' ) start [2024-12-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119463', 'tblTempUsageDetail_20' ) end [2024-12-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119463', 'tblTempVendorCDR_20' ) start [2024-12-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119463', 'tblTempVendorCDR_20' ) end [2024-12-28 05:42:17] Production.INFO: ProcessCDR(1,14119463,1,1,2) [2024-12-28 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119463', 'tblTempUsageDetail_20' ) start [2024-12-28 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119463', 'tblTempUsageDetail_20' ) end [2024-12-28 05:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:42:21] Production.INFO: ==11612== Releasing lock... [2024-12-28 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:42:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:43:04 [end_date_ymd] => 2024-12-28 05:43:04 [RateCDR] => 1 ) [2024-12-28 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:43:04' and `end` < '2024-12-28 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:43:18] Production.INFO: count ==65 [2024-12-28 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:43:04 - End Time 2024-12-28 05:43:04 [2024-12-28 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119468', 'tblTempUsageDetail_20' ) start [2024-12-28 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119468', 'tblTempUsageDetail_20' ) end [2024-12-28 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119468', 'tblTempVendorCDR_20' ) start [2024-12-28 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119468', 'tblTempVendorCDR_20' ) end [2024-12-28 05:43:18] Production.INFO: ProcessCDR(1,14119468,1,1,2) [2024-12-28 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119468', 'tblTempUsageDetail_20' ) start [2024-12-28 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119468', 'tblTempUsageDetail_20' ) end [2024-12-28 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:43:21] Production.INFO: ==11743== Releasing lock... [2024-12-28 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:44:05 [end_date_ymd] => 2024-12-28 05:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:44:05' and `end` < '2024-12-28 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-28 05:44:17] Production.INFO: count ==65 [2024-12-28 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:44:05 - End Time 2024-12-28 05:44:05 [2024-12-28 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119473', 'tblTempUsageDetail_20' ) start [2024-12-28 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119473', 'tblTempUsageDetail_20' ) end [2024-12-28 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119473', 'tblTempVendorCDR_20' ) start [2024-12-28 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119473', 'tblTempVendorCDR_20' ) end [2024-12-28 05:44:17] Production.INFO: ProcessCDR(1,14119473,1,1,2) [2024-12-28 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119473', 'tblTempUsageDetail_20' ) start [2024-12-28 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119473', 'tblTempUsageDetail_20' ) end [2024-12-28 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:44:21] Production.INFO: ==11866== Releasing lock... [2024-12-28 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:45:05 [end_date_ymd] => 2024-12-28 05:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:45:05' and `end` < '2024-12-28 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-28 05:45:17] Production.INFO: count ==64 [2024-12-28 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:45:05 - End Time 2024-12-28 05:45:05 [2024-12-28 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119478', 'tblTempUsageDetail_20' ) start [2024-12-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119478', 'tblTempUsageDetail_20' ) end [2024-12-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119478', 'tblTempVendorCDR_20' ) start [2024-12-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119478', 'tblTempVendorCDR_20' ) end [2024-12-28 05:45:17] Production.INFO: ProcessCDR(1,14119478,1,1,2) [2024-12-28 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119478', 'tblTempUsageDetail_20' ) start [2024-12-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119478', 'tblTempUsageDetail_20' ) end [2024-12-28 05:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:45:21] Production.INFO: ==11985== Releasing lock... [2024-12-28 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:45:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:46:05 [end_date_ymd] => 2024-12-28 05:46:05 [RateCDR] => 1 ) [2024-12-28 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:46:05' and `end` < '2024-12-28 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:46:19] Production.INFO: count ==64 [2024-12-28 05:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:46:05 - End Time 2024-12-28 05:46:05 [2024-12-28 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119483', 'tblTempUsageDetail_20' ) start [2024-12-28 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119483', 'tblTempUsageDetail_20' ) end [2024-12-28 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119483', 'tblTempVendorCDR_20' ) start [2024-12-28 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119483', 'tblTempVendorCDR_20' ) end [2024-12-28 05:46:19] Production.INFO: ProcessCDR(1,14119483,1,1,2) [2024-12-28 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119483', 'tblTempUsageDetail_20' ) start [2024-12-28 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119483', 'tblTempUsageDetail_20' ) end [2024-12-28 05:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:46:22] Production.INFO: ==12086== Releasing lock... [2024-12-28 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:46:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:47:05 [end_date_ymd] => 2024-12-28 05:47:05 [RateCDR] => 1 ) [2024-12-28 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:47:05' and `end` < '2024-12-28 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:47:18] Production.INFO: count ==64 [2024-12-28 05:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:47:05 - End Time 2024-12-28 05:47:05 [2024-12-28 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119488', 'tblTempUsageDetail_20' ) start [2024-12-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119488', 'tblTempUsageDetail_20' ) end [2024-12-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119488', 'tblTempVendorCDR_20' ) start [2024-12-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119488', 'tblTempVendorCDR_20' ) end [2024-12-28 05:47:18] Production.INFO: ProcessCDR(1,14119488,1,1,2) [2024-12-28 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119488', 'tblTempUsageDetail_20' ) start [2024-12-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119488', 'tblTempUsageDetail_20' ) end [2024-12-28 05:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:47:21] Production.INFO: ==12196== Releasing lock... [2024-12-28 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:47:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:48:05 [end_date_ymd] => 2024-12-28 05:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:48:05' and `end` < '2024-12-28 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-28 05:48:18] Production.INFO: count ==64 [2024-12-28 05:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:48:05 - End Time 2024-12-28 05:48:05 [2024-12-28 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119493', 'tblTempUsageDetail_20' ) start [2024-12-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119493', 'tblTempUsageDetail_20' ) end [2024-12-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119493', 'tblTempVendorCDR_20' ) start [2024-12-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119493', 'tblTempVendorCDR_20' ) end [2024-12-28 05:48:18] Production.INFO: ProcessCDR(1,14119493,1,1,2) [2024-12-28 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119493', 'tblTempUsageDetail_20' ) start [2024-12-28 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119493', 'tblTempUsageDetail_20' ) end [2024-12-28 05:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:48:22] Production.INFO: ==12324== Releasing lock... [2024-12-28 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:48:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:49:04 [end_date_ymd] => 2024-12-28 05:49:04 [RateCDR] => 1 ) [2024-12-28 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:49:04' and `end` < '2024-12-28 05:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:49:18] Production.INFO: count ==64 [2024-12-28 05:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:49:04 - End Time 2024-12-28 05:49:04 [2024-12-28 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119498', 'tblTempUsageDetail_20' ) start [2024-12-28 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119498', 'tblTempUsageDetail_20' ) end [2024-12-28 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119498', 'tblTempVendorCDR_20' ) start [2024-12-28 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119498', 'tblTempVendorCDR_20' ) end [2024-12-28 05:49:18] Production.INFO: ProcessCDR(1,14119498,1,1,2) [2024-12-28 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119498', 'tblTempUsageDetail_20' ) start [2024-12-28 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119498', 'tblTempUsageDetail_20' ) end [2024-12-28 05:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:49:21] Production.INFO: ==12483== Releasing lock... [2024-12-28 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:49:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:50:06 [end_date_ymd] => 2024-12-28 05:50:06 [RateCDR] => 1 ) [2024-12-28 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:50:06' and `end` < '2024-12-28 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:50:18] Production.INFO: count ==62 [2024-12-28 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:50:06 - End Time 2024-12-28 05:50:06 [2024-12-28 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119504', 'tblTempUsageDetail_20' ) start [2024-12-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119504', 'tblTempUsageDetail_20' ) end [2024-12-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119504', 'tblTempVendorCDR_20' ) start [2024-12-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119504', 'tblTempVendorCDR_20' ) end [2024-12-28 05:50:18] Production.INFO: ProcessCDR(1,14119504,1,1,2) [2024-12-28 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119504', 'tblTempUsageDetail_20' ) start [2024-12-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119504', 'tblTempUsageDetail_20' ) end [2024-12-28 05:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:50:22] Production.INFO: ==12610== Releasing lock... [2024-12-28 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:50:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:51:04 [end_date_ymd] => 2024-12-28 05:51:04 [RateCDR] => 1 ) [2024-12-28 05: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-28 02:51:04' and `end` < '2024-12-28 05: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-28 05:51:18] Production.INFO: count ==62 [2024-12-28 05:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:51:04 - End Time 2024-12-28 05:51:04 [2024-12-28 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119509', 'tblTempUsageDetail_20' ) start [2024-12-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119509', 'tblTempUsageDetail_20' ) end [2024-12-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119509', 'tblTempVendorCDR_20' ) start [2024-12-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119509', 'tblTempVendorCDR_20' ) end [2024-12-28 05:51:18] Production.INFO: ProcessCDR(1,14119509,1,1,2) [2024-12-28 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119509', 'tblTempUsageDetail_20' ) start [2024-12-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119509', 'tblTempUsageDetail_20' ) end [2024-12-28 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:51:21] Production.INFO: ==12690== Releasing lock... [2024-12-28 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:51:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:52:05 [end_date_ymd] => 2024-12-28 05:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:52:05' and `end` < '2024-12-28 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-28 05:52:17] Production.INFO: count ==62 [2024-12-28 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:52:05 - End Time 2024-12-28 05:52:05 [2024-12-28 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119514', 'tblTempUsageDetail_20' ) start [2024-12-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119514', 'tblTempUsageDetail_20' ) end [2024-12-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119514', 'tblTempVendorCDR_20' ) start [2024-12-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119514', 'tblTempVendorCDR_20' ) end [2024-12-28 05:52:17] Production.INFO: ProcessCDR(1,14119514,1,1,2) [2024-12-28 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119514', 'tblTempUsageDetail_20' ) start [2024-12-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119514', 'tblTempUsageDetail_20' ) end [2024-12-28 05:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:52:20] Production.INFO: ==12770== Releasing lock... [2024-12-28 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:53:05 [end_date_ymd] => 2024-12-28 05:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:53:05' and `end` < '2024-12-28 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:53:19] Production.INFO: count ==62 [2024-12-28 05:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:53:05 - End Time 2024-12-28 05:53:05 [2024-12-28 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119519', 'tblTempUsageDetail_20' ) start [2024-12-28 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119519', 'tblTempUsageDetail_20' ) end [2024-12-28 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119519', 'tblTempVendorCDR_20' ) start [2024-12-28 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119519', 'tblTempVendorCDR_20' ) end [2024-12-28 05:53:19] Production.INFO: ProcessCDR(1,14119519,1,1,2) [2024-12-28 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119519', 'tblTempUsageDetail_20' ) start [2024-12-28 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119519', 'tblTempUsageDetail_20' ) end [2024-12-28 05:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:53:22] Production.INFO: ==12849== Releasing lock... [2024-12-28 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:53:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:54:05 [end_date_ymd] => 2024-12-28 05:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:54:05' and `end` < '2024-12-28 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-28 05:54:17] Production.INFO: count ==59 [2024-12-28 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:54:05 - End Time 2024-12-28 05:54:05 [2024-12-28 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119524', 'tblTempUsageDetail_20' ) start [2024-12-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119524', 'tblTempUsageDetail_20' ) end [2024-12-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119524', 'tblTempVendorCDR_20' ) start [2024-12-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119524', 'tblTempVendorCDR_20' ) end [2024-12-28 05:54:17] Production.INFO: ProcessCDR(1,14119524,1,1,2) [2024-12-28 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119524', 'tblTempUsageDetail_20' ) start [2024-12-28 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119524', 'tblTempUsageDetail_20' ) end [2024-12-28 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:54:20] Production.INFO: ==12928== Releasing lock... [2024-12-28 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:55:05 [end_date_ymd] => 2024-12-28 05:55:05 [RateCDR] => 1 ) [2024-12-28 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 02:55:05' and `end` < '2024-12-28 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 05:55:17] Production.INFO: count ==59 [2024-12-28 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:55:05 - End Time 2024-12-28 05:55:05 [2024-12-28 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119529', 'tblTempUsageDetail_20' ) start [2024-12-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119529', 'tblTempUsageDetail_20' ) end [2024-12-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119529', 'tblTempVendorCDR_20' ) start [2024-12-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119529', 'tblTempVendorCDR_20' ) end [2024-12-28 05:55:18] Production.INFO: ProcessCDR(1,14119529,1,1,2) [2024-12-28 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119529', 'tblTempUsageDetail_20' ) start [2024-12-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119529', 'tblTempUsageDetail_20' ) end [2024-12-28 05:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:55:21] Production.INFO: ==13010== Releasing lock... [2024-12-28 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:56:04 [end_date_ymd] => 2024-12-28 05:56:04 [RateCDR] => 1 ) [2024-12-28 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-28 02:56:04' and `end` < '2024-12-28 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-28 05:56:17] Production.INFO: count ==59 [2024-12-28 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 02:56:04 - End Time 2024-12-28 05:56:04 [2024-12-28 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119534', 'tblTempUsageDetail_20' ) start [2024-12-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119534', 'tblTempUsageDetail_20' ) end [2024-12-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119534', 'tblTempVendorCDR_20' ) start [2024-12-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119534', 'tblTempVendorCDR_20' ) end [2024-12-28 05:56:17] Production.INFO: ProcessCDR(1,14119534,1,1,2) [2024-12-28 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119534', 'tblTempUsageDetail_20' ) start [2024-12-28 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119534', 'tblTempUsageDetail_20' ) end [2024-12-28 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:56:20] Production.INFO: ==13085== Releasing lock... [2024-12-28 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:57:05 [end_date_ymd] => 2024-12-28 05:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:57:05' and `end` < '2024-12-28 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-28 05:57:18] Production.INFO: count ==59 [2024-12-28 05:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 02:57:05 - End Time 2024-12-28 05:57:05 [2024-12-28 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119539', 'tblTempUsageDetail_20' ) start [2024-12-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119539', 'tblTempUsageDetail_20' ) end [2024-12-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119539', 'tblTempVendorCDR_20' ) start [2024-12-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119539', 'tblTempVendorCDR_20' ) end [2024-12-28 05:57:18] Production.INFO: ProcessCDR(1,14119539,1,1,2) [2024-12-28 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119539', 'tblTempUsageDetail_20' ) start [2024-12-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119539', 'tblTempUsageDetail_20' ) end [2024-12-28 05:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:57:21] Production.INFO: ==13161== Releasing lock... [2024-12-28 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:58:05 [end_date_ymd] => 2024-12-28 05:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:58:05' and `end` < '2024-12-28 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-28 05:58:19] Production.INFO: count ==59 [2024-12-28 05:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:58:05 - End Time 2024-12-28 05:58:05 [2024-12-28 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119544', 'tblTempUsageDetail_20' ) start [2024-12-28 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119544', 'tblTempUsageDetail_20' ) end [2024-12-28 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119544', 'tblTempVendorCDR_20' ) start [2024-12-28 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119544', 'tblTempVendorCDR_20' ) end [2024-12-28 05:58:19] Production.INFO: ProcessCDR(1,14119544,1,1,2) [2024-12-28 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119544', 'tblTempUsageDetail_20' ) start [2024-12-28 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119544', 'tblTempUsageDetail_20' ) end [2024-12-28 05:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:58:22] Production.INFO: ==13244== Releasing lock... [2024-12-28 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:58:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 02:59:05 [end_date_ymd] => 2024-12-28 05:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 02:59:05' and `end` < '2024-12-28 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-28 05:59:19] Production.INFO: count ==59 [2024-12-28 05:59:19] Production.ERROR: pbx CDR StartTime 2024-12-28 02:59:05 - End Time 2024-12-28 05:59:05 [2024-12-28 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119549', 'tblTempUsageDetail_20' ) start [2024-12-28 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119549', 'tblTempUsageDetail_20' ) end [2024-12-28 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119549', 'tblTempVendorCDR_20' ) start [2024-12-28 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119549', 'tblTempVendorCDR_20' ) end [2024-12-28 05:59:19] Production.INFO: ProcessCDR(1,14119549,1,1,2) [2024-12-28 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119549', 'tblTempUsageDetail_20' ) start [2024-12-28 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119549', 'tblTempUsageDetail_20' ) end [2024-12-28 05:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 05:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 05:59:22] Production.INFO: ==13320== Releasing lock... [2024-12-28 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 05:59:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:00:06 [end_date_ymd] => 2024-12-28 06:00:06 [RateCDR] => 1 ) [2024-12-28 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:00:06' and `end` < '2024-12-28 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:00:18] Production.INFO: count ==55 [2024-12-28 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:00:06 - End Time 2024-12-28 06:00:06 [2024-12-28 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119554', 'tblTempUsageDetail_20' ) start [2024-12-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119554', 'tblTempUsageDetail_20' ) end [2024-12-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119554', 'tblTempVendorCDR_20' ) start [2024-12-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119554', 'tblTempVendorCDR_20' ) end [2024-12-28 06:00:18] Production.INFO: ProcessCDR(1,14119554,1,1,2) [2024-12-28 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119554', 'tblTempUsageDetail_20' ) start [2024-12-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119554', 'tblTempUsageDetail_20' ) end [2024-12-28 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:00:21] Production.INFO: ==13394== Releasing lock... [2024-12-28 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:01:05 [end_date_ymd] => 2024-12-28 06:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:01:05' and `end` < '2024-12-28 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-28 06:01:17] Production.INFO: count ==55 [2024-12-28 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:01:05 - End Time 2024-12-28 06:01:05 [2024-12-28 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119560', 'tblTempUsageDetail_20' ) start [2024-12-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119560', 'tblTempUsageDetail_20' ) end [2024-12-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119560', 'tblTempVendorCDR_20' ) start [2024-12-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119560', 'tblTempVendorCDR_20' ) end [2024-12-28 06:01:17] Production.INFO: ProcessCDR(1,14119560,1,1,2) [2024-12-28 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119560', 'tblTempUsageDetail_20' ) start [2024-12-28 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119560', 'tblTempUsageDetail_20' ) end [2024-12-28 06:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:01:20] Production.INFO: ==13485== Releasing lock... [2024-12-28 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:02:05 [end_date_ymd] => 2024-12-28 06:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:02:05' and `end` < '2024-12-28 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-28 06:02:18] Production.INFO: count ==55 [2024-12-28 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:02:05 - End Time 2024-12-28 06:02:05 [2024-12-28 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119565', 'tblTempUsageDetail_20' ) start [2024-12-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119565', 'tblTempUsageDetail_20' ) end [2024-12-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119565', 'tblTempVendorCDR_20' ) start [2024-12-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119565', 'tblTempVendorCDR_20' ) end [2024-12-28 06:02:18] Production.INFO: ProcessCDR(1,14119565,1,1,2) [2024-12-28 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119565', 'tblTempUsageDetail_20' ) start [2024-12-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119565', 'tblTempUsageDetail_20' ) end [2024-12-28 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:02:21] Production.INFO: ==13558== Releasing lock... [2024-12-28 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:03:04 [end_date_ymd] => 2024-12-28 06:03:04 [RateCDR] => 1 ) [2024-12-28 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-28 03:03:04' and `end` < '2024-12-28 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-28 06:03:17] Production.INFO: count ==55 [2024-12-28 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:03:04 - End Time 2024-12-28 06:03:04 [2024-12-28 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119570', 'tblTempUsageDetail_20' ) start [2024-12-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119570', 'tblTempUsageDetail_20' ) end [2024-12-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119570', 'tblTempVendorCDR_20' ) start [2024-12-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119570', 'tblTempVendorCDR_20' ) end [2024-12-28 06:03:17] Production.INFO: ProcessCDR(1,14119570,1,1,2) [2024-12-28 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119570', 'tblTempUsageDetail_20' ) start [2024-12-28 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119570', 'tblTempUsageDetail_20' ) end [2024-12-28 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:03:20] Production.INFO: ==13629== Releasing lock... [2024-12-28 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:04:05 [end_date_ymd] => 2024-12-28 06:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:04:05' and `end` < '2024-12-28 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-28 06:04:19] Production.INFO: count ==55 [2024-12-28 06:04:19] Production.ERROR: pbx CDR StartTime 2024-12-28 03:04:05 - End Time 2024-12-28 06:04:05 [2024-12-28 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119575', 'tblTempUsageDetail_20' ) start [2024-12-28 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119575', 'tblTempUsageDetail_20' ) end [2024-12-28 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119575', 'tblTempVendorCDR_20' ) start [2024-12-28 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119575', 'tblTempVendorCDR_20' ) end [2024-12-28 06:04:19] Production.INFO: ProcessCDR(1,14119575,1,1,2) [2024-12-28 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119575', 'tblTempUsageDetail_20' ) start [2024-12-28 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119575', 'tblTempUsageDetail_20' ) end [2024-12-28 06:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:04:22] Production.INFO: ==13742== Releasing lock... [2024-12-28 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:04:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:05:05 [end_date_ymd] => 2024-12-28 06:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:05:05' and `end` < '2024-12-28 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-28 06:05:18] Production.INFO: count ==53 [2024-12-28 06:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:05:05 - End Time 2024-12-28 06:05:05 [2024-12-28 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119580', 'tblTempUsageDetail_20' ) start [2024-12-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119580', 'tblTempUsageDetail_20' ) end [2024-12-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119580', 'tblTempVendorCDR_20' ) start [2024-12-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119580', 'tblTempVendorCDR_20' ) end [2024-12-28 06:05:18] Production.INFO: ProcessCDR(1,14119580,1,1,2) [2024-12-28 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119580', 'tblTempUsageDetail_20' ) start [2024-12-28 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119580', 'tblTempUsageDetail_20' ) end [2024-12-28 06:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:05:21] Production.INFO: ==13814== Releasing lock... [2024-12-28 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:05:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:06:05 [end_date_ymd] => 2024-12-28 06:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:06:05' and `end` < '2024-12-28 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-28 06:06:18] Production.INFO: count ==49 [2024-12-28 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:06:05 - End Time 2024-12-28 06:06:05 [2024-12-28 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119585', 'tblTempUsageDetail_20' ) start [2024-12-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119585', 'tblTempUsageDetail_20' ) end [2024-12-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119585', 'tblTempVendorCDR_20' ) start [2024-12-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119585', 'tblTempVendorCDR_20' ) end [2024-12-28 06:06:18] Production.INFO: ProcessCDR(1,14119585,1,1,2) [2024-12-28 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119585', 'tblTempUsageDetail_20' ) start [2024-12-28 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119585', 'tblTempUsageDetail_20' ) end [2024-12-28 06:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:06:22] Production.INFO: ==13885== Releasing lock... [2024-12-28 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:06:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:07:05 [end_date_ymd] => 2024-12-28 06:07:05 [RateCDR] => 1 ) [2024-12-28 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:07:05' and `end` < '2024-12-28 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:07:17] Production.INFO: count ==49 [2024-12-28 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:07:05 - End Time 2024-12-28 06:07:05 [2024-12-28 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119590', 'tblTempUsageDetail_20' ) start [2024-12-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119590', 'tblTempUsageDetail_20' ) end [2024-12-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119590', 'tblTempVendorCDR_20' ) start [2024-12-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119590', 'tblTempVendorCDR_20' ) end [2024-12-28 06:07:17] Production.INFO: ProcessCDR(1,14119590,1,1,2) [2024-12-28 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119590', 'tblTempUsageDetail_20' ) start [2024-12-28 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119590', 'tblTempUsageDetail_20' ) end [2024-12-28 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:07:21] Production.INFO: ==13957== Releasing lock... [2024-12-28 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:08:05 [end_date_ymd] => 2024-12-28 06:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:08:05' and `end` < '2024-12-28 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-28 06:08:18] Production.INFO: count ==47 [2024-12-28 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:08:05 - End Time 2024-12-28 06:08:05 [2024-12-28 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119595', 'tblTempUsageDetail_20' ) start [2024-12-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119595', 'tblTempUsageDetail_20' ) end [2024-12-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119595', 'tblTempVendorCDR_20' ) start [2024-12-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119595', 'tblTempVendorCDR_20' ) end [2024-12-28 06:08:18] Production.INFO: ProcessCDR(1,14119595,1,1,2) [2024-12-28 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119595', 'tblTempUsageDetail_20' ) start [2024-12-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119595', 'tblTempUsageDetail_20' ) end [2024-12-28 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:08:21] Production.INFO: ==14029== Releasing lock... [2024-12-28 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:09:05 [end_date_ymd] => 2024-12-28 06:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:09:05' and `end` < '2024-12-28 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-28 06:09:18] Production.INFO: count ==46 [2024-12-28 06:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:09:05 - End Time 2024-12-28 06:09:05 [2024-12-28 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119600', 'tblTempUsageDetail_20' ) start [2024-12-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119600', 'tblTempUsageDetail_20' ) end [2024-12-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119600', 'tblTempVendorCDR_20' ) start [2024-12-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119600', 'tblTempVendorCDR_20' ) end [2024-12-28 06:09:18] Production.INFO: ProcessCDR(1,14119600,1,1,2) [2024-12-28 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119600', 'tblTempUsageDetail_20' ) start [2024-12-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119600', 'tblTempUsageDetail_20' ) end [2024-12-28 06:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:09:21] Production.INFO: ==14101== Releasing lock... [2024-12-28 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:09:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:10:05 [end_date_ymd] => 2024-12-28 06:10:05 [RateCDR] => 1 ) [2024-12-28 06: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-28 03:10:05' and `end` < '2024-12-28 06: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-28 06:10:18] Production.INFO: count ==38 [2024-12-28 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:10:05 - End Time 2024-12-28 06:10:05 [2024-12-28 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119605', 'tblTempUsageDetail_20' ) start [2024-12-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119605', 'tblTempUsageDetail_20' ) end [2024-12-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119605', 'tblTempVendorCDR_20' ) start [2024-12-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119605', 'tblTempVendorCDR_20' ) end [2024-12-28 06:10:18] Production.INFO: ProcessCDR(1,14119605,1,1,2) [2024-12-28 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119605', 'tblTempUsageDetail_20' ) start [2024-12-28 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119605', 'tblTempUsageDetail_20' ) end [2024-12-28 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:10:21] Production.INFO: ==14174== Releasing lock... [2024-12-28 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:11:04 [end_date_ymd] => 2024-12-28 06:11:04 [RateCDR] => 1 ) [2024-12-28 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:11:04' and `end` < '2024-12-28 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:11:18] Production.INFO: count ==35 [2024-12-28 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:11:04 - End Time 2024-12-28 06:11:04 [2024-12-28 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119609', 'tblTempUsageDetail_20' ) start [2024-12-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119609', 'tblTempUsageDetail_20' ) end [2024-12-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119609', 'tblTempVendorCDR_20' ) start [2024-12-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119609', 'tblTempVendorCDR_20' ) end [2024-12-28 06:11:18] Production.INFO: ProcessCDR(1,14119609,1,1,2) [2024-12-28 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119609', 'tblTempUsageDetail_20' ) start [2024-12-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119609', 'tblTempUsageDetail_20' ) end [2024-12-28 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:11:21] Production.INFO: ==14247== Releasing lock... [2024-12-28 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:12:04 [end_date_ymd] => 2024-12-28 06:12:04 [RateCDR] => 1 ) [2024-12-28 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:12:04' and `end` < '2024-12-28 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:12:18] Production.INFO: count ==35 [2024-12-28 06:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:12:04 - End Time 2024-12-28 06:12:04 [2024-12-28 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119616', 'tblTempUsageDetail_20' ) start [2024-12-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119616', 'tblTempUsageDetail_20' ) end [2024-12-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119616', 'tblTempVendorCDR_20' ) start [2024-12-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119616', 'tblTempVendorCDR_20' ) end [2024-12-28 06:12:18] Production.INFO: ProcessCDR(1,14119616,1,1,2) [2024-12-28 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119616', 'tblTempUsageDetail_20' ) start [2024-12-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119616', 'tblTempUsageDetail_20' ) end [2024-12-28 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:12:21] Production.INFO: ==14319== Releasing lock... [2024-12-28 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:13:04 [end_date_ymd] => 2024-12-28 06:13:04 [RateCDR] => 1 ) [2024-12-28 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-28 03:13:04' and `end` < '2024-12-28 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-28 06:13:17] Production.INFO: count ==35 [2024-12-28 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:13:04 - End Time 2024-12-28 06:13:04 [2024-12-28 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119621', 'tblTempUsageDetail_20' ) start [2024-12-28 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119621', 'tblTempUsageDetail_20' ) end [2024-12-28 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119621', 'tblTempVendorCDR_20' ) start [2024-12-28 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119621', 'tblTempVendorCDR_20' ) end [2024-12-28 06:13:17] Production.INFO: ProcessCDR(1,14119621,1,1,2) [2024-12-28 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119621', 'tblTempUsageDetail_20' ) start [2024-12-28 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119621', 'tblTempUsageDetail_20' ) end [2024-12-28 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:13:20] Production.INFO: ==14396== Releasing lock... [2024-12-28 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:14:06 [end_date_ymd] => 2024-12-28 06:14:06 [RateCDR] => 1 ) [2024-12-28 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:14:06' and `end` < '2024-12-28 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:14:18] Production.INFO: count ==35 [2024-12-28 06:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:14:06 - End Time 2024-12-28 06:14:06 [2024-12-28 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119626', 'tblTempUsageDetail_20' ) start [2024-12-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119626', 'tblTempUsageDetail_20' ) end [2024-12-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119626', 'tblTempVendorCDR_20' ) start [2024-12-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119626', 'tblTempVendorCDR_20' ) end [2024-12-28 06:14:18] Production.INFO: ProcessCDR(1,14119626,1,1,2) [2024-12-28 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119626', 'tblTempUsageDetail_20' ) start [2024-12-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119626', 'tblTempUsageDetail_20' ) end [2024-12-28 06:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:14:21] Production.INFO: ==14473== Releasing lock... [2024-12-28 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:15:05 [end_date_ymd] => 2024-12-28 06:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:15:05' and `end` < '2024-12-28 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-28 06:15:18] Production.INFO: count ==35 [2024-12-28 06:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:15:05 - End Time 2024-12-28 06:15:05 [2024-12-28 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119631', 'tblTempUsageDetail_20' ) start [2024-12-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119631', 'tblTempUsageDetail_20' ) end [2024-12-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119631', 'tblTempVendorCDR_20' ) start [2024-12-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119631', 'tblTempVendorCDR_20' ) end [2024-12-28 06:15:18] Production.INFO: ProcessCDR(1,14119631,1,1,2) [2024-12-28 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119631', 'tblTempUsageDetail_20' ) start [2024-12-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119631', 'tblTempUsageDetail_20' ) end [2024-12-28 06:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:15:21] Production.INFO: ==14544== Releasing lock... [2024-12-28 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:15:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:16:06 [end_date_ymd] => 2024-12-28 06:16:06 [RateCDR] => 1 ) [2024-12-28 06: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-28 03:16:06' and `end` < '2024-12-28 06: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-28 06:16:18] Production.INFO: count ==35 [2024-12-28 06:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:16:06 - End Time 2024-12-28 06:16:06 [2024-12-28 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119636', 'tblTempUsageDetail_20' ) start [2024-12-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119636', 'tblTempUsageDetail_20' ) end [2024-12-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119636', 'tblTempVendorCDR_20' ) start [2024-12-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119636', 'tblTempVendorCDR_20' ) end [2024-12-28 06:16:18] Production.INFO: ProcessCDR(1,14119636,1,1,2) [2024-12-28 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119636', 'tblTempUsageDetail_20' ) start [2024-12-28 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119636', 'tblTempUsageDetail_20' ) end [2024-12-28 06:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:16:22] Production.INFO: ==14619== Releasing lock... [2024-12-28 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:16:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:17:04 [end_date_ymd] => 2024-12-28 06:17:04 [RateCDR] => 1 ) [2024-12-28 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-28 03:17:04' and `end` < '2024-12-28 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-28 06:17:18] Production.INFO: count ==35 [2024-12-28 06:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:17:04 - End Time 2024-12-28 06:17:04 [2024-12-28 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119641', 'tblTempUsageDetail_20' ) start [2024-12-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119641', 'tblTempUsageDetail_20' ) end [2024-12-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119641', 'tblTempVendorCDR_20' ) start [2024-12-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119641', 'tblTempVendorCDR_20' ) end [2024-12-28 06:17:18] Production.INFO: ProcessCDR(1,14119641,1,1,2) [2024-12-28 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119641', 'tblTempUsageDetail_20' ) start [2024-12-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119641', 'tblTempUsageDetail_20' ) end [2024-12-28 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:17:21] Production.INFO: ==14689== Releasing lock... [2024-12-28 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:18:05 [end_date_ymd] => 2024-12-28 06:18:05 [RateCDR] => 1 ) [2024-12-28 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:18:05' and `end` < '2024-12-28 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:18:18] Production.INFO: count ==35 [2024-12-28 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:18:05 - End Time 2024-12-28 06:18:05 [2024-12-28 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119646', 'tblTempUsageDetail_20' ) start [2024-12-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119646', 'tblTempUsageDetail_20' ) end [2024-12-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119646', 'tblTempVendorCDR_20' ) start [2024-12-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119646', 'tblTempVendorCDR_20' ) end [2024-12-28 06:18:18] Production.INFO: ProcessCDR(1,14119646,1,1,2) [2024-12-28 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119646', 'tblTempUsageDetail_20' ) start [2024-12-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119646', 'tblTempUsageDetail_20' ) end [2024-12-28 06:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:18:21] Production.INFO: ==14760== Releasing lock... [2024-12-28 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:18:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:19:04 [end_date_ymd] => 2024-12-28 06:19:04 [RateCDR] => 1 ) [2024-12-28 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-28 03:19:04' and `end` < '2024-12-28 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-28 06:19:18] Production.INFO: count ==35 [2024-12-28 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:19:04 - End Time 2024-12-28 06:19:04 [2024-12-28 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119651', 'tblTempUsageDetail_20' ) start [2024-12-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119651', 'tblTempUsageDetail_20' ) end [2024-12-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119651', 'tblTempVendorCDR_20' ) start [2024-12-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119651', 'tblTempVendorCDR_20' ) end [2024-12-28 06:19:18] Production.INFO: ProcessCDR(1,14119651,1,1,2) [2024-12-28 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119651', 'tblTempUsageDetail_20' ) start [2024-12-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119651', 'tblTempUsageDetail_20' ) end [2024-12-28 06:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:19:21] Production.INFO: ==14830== Releasing lock... [2024-12-28 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:19:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:20:05 [end_date_ymd] => 2024-12-28 06:20:05 [RateCDR] => 1 ) [2024-12-28 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:20:05' and `end` < '2024-12-28 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:20:17] Production.INFO: count ==35 [2024-12-28 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:20:05 - End Time 2024-12-28 06:20:05 [2024-12-28 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119656', 'tblTempUsageDetail_20' ) start [2024-12-28 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119656', 'tblTempUsageDetail_20' ) end [2024-12-28 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119656', 'tblTempVendorCDR_20' ) start [2024-12-28 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119656', 'tblTempVendorCDR_20' ) end [2024-12-28 06:20:17] Production.INFO: ProcessCDR(1,14119656,1,1,2) [2024-12-28 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119656', 'tblTempUsageDetail_20' ) start [2024-12-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119656', 'tblTempUsageDetail_20' ) end [2024-12-28 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:20:21] Production.INFO: ==14943== Releasing lock... [2024-12-28 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:21:04 [end_date_ymd] => 2024-12-28 06:21:04 [RateCDR] => 1 ) [2024-12-28 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:21:04' and `end` < '2024-12-28 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:21:18] Production.INFO: count ==35 [2024-12-28 06:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:21:04 - End Time 2024-12-28 06:21:04 [2024-12-28 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119662', 'tblTempUsageDetail_20' ) start [2024-12-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119662', 'tblTempUsageDetail_20' ) end [2024-12-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119662', 'tblTempVendorCDR_20' ) start [2024-12-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119662', 'tblTempVendorCDR_20' ) end [2024-12-28 06:21:18] Production.INFO: ProcessCDR(1,14119662,1,1,2) [2024-12-28 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119662', 'tblTempUsageDetail_20' ) start [2024-12-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119662', 'tblTempUsageDetail_20' ) end [2024-12-28 06:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:21:21] Production.INFO: ==15018== Releasing lock... [2024-12-28 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:22:05 [end_date_ymd] => 2024-12-28 06:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:22:05' and `end` < '2024-12-28 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-28 06:22:18] Production.INFO: count ==35 [2024-12-28 06:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:22:05 - End Time 2024-12-28 06:22:05 [2024-12-28 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119667', 'tblTempUsageDetail_20' ) start [2024-12-28 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119667', 'tblTempUsageDetail_20' ) end [2024-12-28 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119667', 'tblTempVendorCDR_20' ) start [2024-12-28 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119667', 'tblTempVendorCDR_20' ) end [2024-12-28 06:22:18] Production.INFO: ProcessCDR(1,14119667,1,1,2) [2024-12-28 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119667', 'tblTempUsageDetail_20' ) start [2024-12-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119667', 'tblTempUsageDetail_20' ) end [2024-12-28 06:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:22:21] Production.INFO: ==15093== Releasing lock... [2024-12-28 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:23:05 [end_date_ymd] => 2024-12-28 06:23:05 [RateCDR] => 1 ) [2024-12-28 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:23:05' and `end` < '2024-12-28 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:23:19] Production.INFO: count ==35 [2024-12-28 06:23:19] Production.ERROR: pbx CDR StartTime 2024-12-28 03:23:05 - End Time 2024-12-28 06:23:05 [2024-12-28 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119672', 'tblTempUsageDetail_20' ) start [2024-12-28 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119672', 'tblTempUsageDetail_20' ) end [2024-12-28 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119672', 'tblTempVendorCDR_20' ) start [2024-12-28 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119672', 'tblTempVendorCDR_20' ) end [2024-12-28 06:23:19] Production.INFO: ProcessCDR(1,14119672,1,1,2) [2024-12-28 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119672', 'tblTempUsageDetail_20' ) start [2024-12-28 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119672', 'tblTempUsageDetail_20' ) end [2024-12-28 06:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:23:22] Production.INFO: ==15164== Releasing lock... [2024-12-28 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:23:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:24:05 [end_date_ymd] => 2024-12-28 06:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:24:05' and `end` < '2024-12-28 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-28 06:24:17] Production.INFO: count ==35 [2024-12-28 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:24:05 - End Time 2024-12-28 06:24:05 [2024-12-28 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119677', 'tblTempUsageDetail_20' ) start [2024-12-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119677', 'tblTempUsageDetail_20' ) end [2024-12-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119677', 'tblTempVendorCDR_20' ) start [2024-12-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119677', 'tblTempVendorCDR_20' ) end [2024-12-28 06:24:17] Production.INFO: ProcessCDR(1,14119677,1,1,2) [2024-12-28 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119677', 'tblTempUsageDetail_20' ) start [2024-12-28 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119677', 'tblTempUsageDetail_20' ) end [2024-12-28 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:24:20] Production.INFO: ==15236== Releasing lock... [2024-12-28 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:25:05 [end_date_ymd] => 2024-12-28 06:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:25:05' and `end` < '2024-12-28 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-28 06:25:17] Production.INFO: count ==35 [2024-12-28 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:25:05 - End Time 2024-12-28 06:25:05 [2024-12-28 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119682', 'tblTempUsageDetail_20' ) start [2024-12-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119682', 'tblTempUsageDetail_20' ) end [2024-12-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119682', 'tblTempVendorCDR_20' ) start [2024-12-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119682', 'tblTempVendorCDR_20' ) end [2024-12-28 06:25:17] Production.INFO: ProcessCDR(1,14119682,1,1,2) [2024-12-28 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119682', 'tblTempUsageDetail_20' ) start [2024-12-28 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119682', 'tblTempUsageDetail_20' ) end [2024-12-28 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:25:20] Production.INFO: ==15306== Releasing lock... [2024-12-28 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:26:04 [end_date_ymd] => 2024-12-28 06:26:04 [RateCDR] => 1 ) [2024-12-28 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:26:04' and `end` < '2024-12-28 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:26:17] Production.INFO: count ==35 [2024-12-28 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:26:04 - End Time 2024-12-28 06:26:04 [2024-12-28 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119687', 'tblTempUsageDetail_20' ) start [2024-12-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119687', 'tblTempUsageDetail_20' ) end [2024-12-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119687', 'tblTempVendorCDR_20' ) start [2024-12-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119687', 'tblTempVendorCDR_20' ) end [2024-12-28 06:26:17] Production.INFO: ProcessCDR(1,14119687,1,1,2) [2024-12-28 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119687', 'tblTempUsageDetail_20' ) start [2024-12-28 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119687', 'tblTempUsageDetail_20' ) end [2024-12-28 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:26:20] Production.INFO: ==15376== Releasing lock... [2024-12-28 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:27:04 [end_date_ymd] => 2024-12-28 06:27:04 [RateCDR] => 1 ) [2024-12-28 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:27:04' and `end` < '2024-12-28 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:27:17] Production.INFO: count ==35 [2024-12-28 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:27:04 - End Time 2024-12-28 06:27:04 [2024-12-28 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119692', 'tblTempUsageDetail_20' ) start [2024-12-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119692', 'tblTempUsageDetail_20' ) end [2024-12-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119692', 'tblTempVendorCDR_20' ) start [2024-12-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119692', 'tblTempVendorCDR_20' ) end [2024-12-28 06:27:17] Production.INFO: ProcessCDR(1,14119692,1,1,2) [2024-12-28 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119692', 'tblTempUsageDetail_20' ) start [2024-12-28 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119692', 'tblTempUsageDetail_20' ) end [2024-12-28 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:27:20] Production.INFO: ==15459== Releasing lock... [2024-12-28 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:28:04 [end_date_ymd] => 2024-12-28 06:28:04 [RateCDR] => 1 ) [2024-12-28 06: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-28 03:28:04' and `end` < '2024-12-28 06: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-28 06:28:17] Production.INFO: count ==34 [2024-12-28 06:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:28:04 - End Time 2024-12-28 06:28:04 [2024-12-28 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119697', 'tblTempUsageDetail_20' ) start [2024-12-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119697', 'tblTempUsageDetail_20' ) end [2024-12-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119697', 'tblTempVendorCDR_20' ) start [2024-12-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119697', 'tblTempVendorCDR_20' ) end [2024-12-28 06:28:17] Production.INFO: ProcessCDR(1,14119697,1,1,2) [2024-12-28 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119697', 'tblTempUsageDetail_20' ) start [2024-12-28 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119697', 'tblTempUsageDetail_20' ) end [2024-12-28 06:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:28:20] Production.INFO: ==15529== Releasing lock... [2024-12-28 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:28:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:29:05 [end_date_ymd] => 2024-12-28 06:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:29:05' and `end` < '2024-12-28 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-28 06:29:17] Production.INFO: count ==34 [2024-12-28 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:29:05 - End Time 2024-12-28 06:29:05 [2024-12-28 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119702', 'tblTempUsageDetail_20' ) start [2024-12-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119702', 'tblTempUsageDetail_20' ) end [2024-12-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119702', 'tblTempVendorCDR_20' ) start [2024-12-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119702', 'tblTempVendorCDR_20' ) end [2024-12-28 06:29:17] Production.INFO: ProcessCDR(1,14119702,1,1,2) [2024-12-28 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119702', 'tblTempUsageDetail_20' ) start [2024-12-28 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119702', 'tblTempUsageDetail_20' ) end [2024-12-28 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:29:21] Production.INFO: ==15600== Releasing lock... [2024-12-28 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:30:06 [end_date_ymd] => 2024-12-28 06:30:06 [RateCDR] => 1 ) [2024-12-28 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:30:06' and `end` < '2024-12-28 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:30:18] Production.INFO: count ==33 [2024-12-28 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:30:06 - End Time 2024-12-28 06:30:06 [2024-12-28 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119708', 'tblTempUsageDetail_20' ) start [2024-12-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119708', 'tblTempUsageDetail_20' ) end [2024-12-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119708', 'tblTempVendorCDR_20' ) start [2024-12-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119708', 'tblTempVendorCDR_20' ) end [2024-12-28 06:30:18] Production.INFO: ProcessCDR(1,14119708,1,1,2) [2024-12-28 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119708', 'tblTempUsageDetail_20' ) start [2024-12-28 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119708', 'tblTempUsageDetail_20' ) end [2024-12-28 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:30:21] Production.INFO: ==15676== Releasing lock... [2024-12-28 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:31:04 [end_date_ymd] => 2024-12-28 06:31:04 [RateCDR] => 1 ) [2024-12-28 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:31:04' and `end` < '2024-12-28 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:31:16] Production.INFO: count ==34 [2024-12-28 06:31:16] Production.ERROR: pbx CDR StartTime 2024-12-28 03:31:04 - End Time 2024-12-28 06:31:04 [2024-12-28 06:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119713', 'tblTempUsageDetail_20' ) start [2024-12-28 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119713', 'tblTempUsageDetail_20' ) end [2024-12-28 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119713', 'tblTempVendorCDR_20' ) start [2024-12-28 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119713', 'tblTempVendorCDR_20' ) end [2024-12-28 06:31:16] Production.INFO: ProcessCDR(1,14119713,1,1,2) [2024-12-28 06:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119713', 'tblTempUsageDetail_20' ) start [2024-12-28 06:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119713', 'tblTempUsageDetail_20' ) end [2024-12-28 06:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:31:19] Production.INFO: ==15747== Releasing lock... [2024-12-28 06:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:31:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:32:05 [end_date_ymd] => 2024-12-28 06:32:05 [RateCDR] => 1 ) [2024-12-28 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:32:05' and `end` < '2024-12-28 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:32:18] Production.INFO: count ==34 [2024-12-28 06:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:32:05 - End Time 2024-12-28 06:32:05 [2024-12-28 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119718', 'tblTempUsageDetail_20' ) start [2024-12-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119718', 'tblTempUsageDetail_20' ) end [2024-12-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119718', 'tblTempVendorCDR_20' ) start [2024-12-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119718', 'tblTempVendorCDR_20' ) end [2024-12-28 06:32:18] Production.INFO: ProcessCDR(1,14119718,1,1,2) [2024-12-28 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119718', 'tblTempUsageDetail_20' ) start [2024-12-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119718', 'tblTempUsageDetail_20' ) end [2024-12-28 06:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:32:21] Production.INFO: ==15819== Releasing lock... [2024-12-28 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:33:04 [end_date_ymd] => 2024-12-28 06:33:04 [RateCDR] => 1 ) [2024-12-28 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:33:04' and `end` < '2024-12-28 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:33:17] Production.INFO: count ==34 [2024-12-28 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:33:04 - End Time 2024-12-28 06:33:04 [2024-12-28 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119723', 'tblTempUsageDetail_20' ) start [2024-12-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119723', 'tblTempUsageDetail_20' ) end [2024-12-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119723', 'tblTempVendorCDR_20' ) start [2024-12-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119723', 'tblTempVendorCDR_20' ) end [2024-12-28 06:33:17] Production.INFO: ProcessCDR(1,14119723,1,1,2) [2024-12-28 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119723', 'tblTempUsageDetail_20' ) start [2024-12-28 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119723', 'tblTempUsageDetail_20' ) end [2024-12-28 06:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:33:20] Production.INFO: ==15890== Releasing lock... [2024-12-28 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:34:05 [end_date_ymd] => 2024-12-28 06:34:05 [RateCDR] => 1 ) [2024-12-28 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:34:05' and `end` < '2024-12-28 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:34:17] Production.INFO: count ==34 [2024-12-28 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:34:05 - End Time 2024-12-28 06:34:05 [2024-12-28 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119728', 'tblTempUsageDetail_20' ) start [2024-12-28 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119728', 'tblTempUsageDetail_20' ) end [2024-12-28 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119728', 'tblTempVendorCDR_20' ) start [2024-12-28 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119728', 'tblTempVendorCDR_20' ) end [2024-12-28 06:34:17] Production.INFO: ProcessCDR(1,14119728,1,1,2) [2024-12-28 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119728', 'tblTempUsageDetail_20' ) start [2024-12-28 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119728', 'tblTempUsageDetail_20' ) end [2024-12-28 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:34:20] Production.INFO: ==15964== Releasing lock... [2024-12-28 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:35:04 [end_date_ymd] => 2024-12-28 06:35:04 [RateCDR] => 1 ) [2024-12-28 06:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:35:04' and `end` < '2024-12-28 06:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:35:17] Production.INFO: count ==34 [2024-12-28 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:35:04 - End Time 2024-12-28 06:35:04 [2024-12-28 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119733', 'tblTempUsageDetail_20' ) start [2024-12-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119733', 'tblTempUsageDetail_20' ) end [2024-12-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119733', 'tblTempVendorCDR_20' ) start [2024-12-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119733', 'tblTempVendorCDR_20' ) end [2024-12-28 06:35:17] Production.INFO: ProcessCDR(1,14119733,1,1,2) [2024-12-28 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119733', 'tblTempUsageDetail_20' ) start [2024-12-28 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119733', 'tblTempUsageDetail_20' ) end [2024-12-28 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:35:20] Production.INFO: ==16033== Releasing lock... [2024-12-28 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:36:05 [end_date_ymd] => 2024-12-28 06:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:36:05' and `end` < '2024-12-28 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-28 06:36:18] Production.INFO: count ==34 [2024-12-28 06:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:36:05 - End Time 2024-12-28 06:36:05 [2024-12-28 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119738', 'tblTempUsageDetail_20' ) start [2024-12-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119738', 'tblTempUsageDetail_20' ) end [2024-12-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119738', 'tblTempVendorCDR_20' ) start [2024-12-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119738', 'tblTempVendorCDR_20' ) end [2024-12-28 06:36:18] Production.INFO: ProcessCDR(1,14119738,1,1,2) [2024-12-28 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119738', 'tblTempUsageDetail_20' ) start [2024-12-28 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119738', 'tblTempUsageDetail_20' ) end [2024-12-28 06:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:36:21] Production.INFO: ==16144== Releasing lock... [2024-12-28 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:37:05 [end_date_ymd] => 2024-12-28 06:37:05 [RateCDR] => 1 ) [2024-12-28 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:37:05' and `end` < '2024-12-28 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:37:17] Production.INFO: count ==34 [2024-12-28 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:37:05 - End Time 2024-12-28 06:37:05 [2024-12-28 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119743', 'tblTempUsageDetail_20' ) start [2024-12-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119743', 'tblTempUsageDetail_20' ) end [2024-12-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119743', 'tblTempVendorCDR_20' ) start [2024-12-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119743', 'tblTempVendorCDR_20' ) end [2024-12-28 06:37:17] Production.INFO: ProcessCDR(1,14119743,1,1,2) [2024-12-28 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119743', 'tblTempUsageDetail_20' ) start [2024-12-28 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119743', 'tblTempUsageDetail_20' ) end [2024-12-28 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:37:21] Production.INFO: ==16215== Releasing lock... [2024-12-28 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:38:05 [end_date_ymd] => 2024-12-28 06:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:38:05' and `end` < '2024-12-28 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-28 06:38:18] Production.INFO: count ==34 [2024-12-28 06:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:38:05 - End Time 2024-12-28 06:38:05 [2024-12-28 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119748', 'tblTempUsageDetail_20' ) start [2024-12-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119748', 'tblTempUsageDetail_20' ) end [2024-12-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119748', 'tblTempVendorCDR_20' ) start [2024-12-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119748', 'tblTempVendorCDR_20' ) end [2024-12-28 06:38:18] Production.INFO: ProcessCDR(1,14119748,1,1,2) [2024-12-28 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119748', 'tblTempUsageDetail_20' ) start [2024-12-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119748', 'tblTempUsageDetail_20' ) end [2024-12-28 06:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:38:21] Production.INFO: ==16287== Releasing lock... [2024-12-28 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:39:05 [end_date_ymd] => 2024-12-28 06:39:05 [RateCDR] => 1 ) [2024-12-28 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:39:05' and `end` < '2024-12-28 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:39:17] Production.INFO: count ==34 [2024-12-28 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:39:05 - End Time 2024-12-28 06:39:05 [2024-12-28 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119753', 'tblTempUsageDetail_20' ) start [2024-12-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119753', 'tblTempUsageDetail_20' ) end [2024-12-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119753', 'tblTempVendorCDR_20' ) start [2024-12-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119753', 'tblTempVendorCDR_20' ) end [2024-12-28 06:39:17] Production.INFO: ProcessCDR(1,14119753,1,1,2) [2024-12-28 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119753', 'tblTempUsageDetail_20' ) start [2024-12-28 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119753', 'tblTempUsageDetail_20' ) end [2024-12-28 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:39:20] Production.INFO: ==16358== Releasing lock... [2024-12-28 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:40:06 [end_date_ymd] => 2024-12-28 06:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 03:40:06' and `end` < '2024-12-28 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-28 06:40:18] Production.INFO: count ==34 [2024-12-28 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:40:06 - End Time 2024-12-28 06:40:06 [2024-12-28 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119759', 'tblTempUsageDetail_20' ) start [2024-12-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119759', 'tblTempUsageDetail_20' ) end [2024-12-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119759', 'tblTempVendorCDR_20' ) start [2024-12-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119759', 'tblTempVendorCDR_20' ) end [2024-12-28 06:40:18] Production.INFO: ProcessCDR(1,14119759,1,1,2) [2024-12-28 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119759', 'tblTempUsageDetail_20' ) start [2024-12-28 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119759', 'tblTempUsageDetail_20' ) end [2024-12-28 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:40:22] Production.INFO: ==16434== Releasing lock... [2024-12-28 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:40:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:41:04 [end_date_ymd] => 2024-12-28 06:41:04 [RateCDR] => 1 ) [2024-12-28 06: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-28 03:41:04' and `end` < '2024-12-28 06: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-28 06:41:17] Production.INFO: count ==34 [2024-12-28 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:41:04 - End Time 2024-12-28 06:41:04 [2024-12-28 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119764', 'tblTempUsageDetail_20' ) start [2024-12-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119764', 'tblTempUsageDetail_20' ) end [2024-12-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119764', 'tblTempVendorCDR_20' ) start [2024-12-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119764', 'tblTempVendorCDR_20' ) end [2024-12-28 06:41:17] Production.INFO: ProcessCDR(1,14119764,1,1,2) [2024-12-28 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119764', 'tblTempUsageDetail_20' ) start [2024-12-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119764', 'tblTempUsageDetail_20' ) end [2024-12-28 06:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:41:21] Production.INFO: ==16504== Releasing lock... [2024-12-28 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:42:05 [end_date_ymd] => 2024-12-28 06:42:05 [RateCDR] => 1 ) [2024-12-28 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:42:05' and `end` < '2024-12-28 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:42:18] Production.INFO: count ==34 [2024-12-28 06:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:42:05 - End Time 2024-12-28 06:42:05 [2024-12-28 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119769', 'tblTempUsageDetail_20' ) start [2024-12-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119769', 'tblTempUsageDetail_20' ) end [2024-12-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119769', 'tblTempVendorCDR_20' ) start [2024-12-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119769', 'tblTempVendorCDR_20' ) end [2024-12-28 06:42:18] Production.INFO: ProcessCDR(1,14119769,1,1,2) [2024-12-28 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119769', 'tblTempUsageDetail_20' ) start [2024-12-28 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119769', 'tblTempUsageDetail_20' ) end [2024-12-28 06:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:42:21] Production.INFO: ==16580== Releasing lock... [2024-12-28 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:43:04 [end_date_ymd] => 2024-12-28 06:43:04 [RateCDR] => 1 ) [2024-12-28 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:43:04' and `end` < '2024-12-28 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:43:18] Production.INFO: count ==34 [2024-12-28 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:43:04 - End Time 2024-12-28 06:43:04 [2024-12-28 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119774', 'tblTempUsageDetail_20' ) start [2024-12-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119774', 'tblTempUsageDetail_20' ) end [2024-12-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119774', 'tblTempVendorCDR_20' ) start [2024-12-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119774', 'tblTempVendorCDR_20' ) end [2024-12-28 06:43:18] Production.INFO: ProcessCDR(1,14119774,1,1,2) [2024-12-28 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119774', 'tblTempUsageDetail_20' ) start [2024-12-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119774', 'tblTempUsageDetail_20' ) end [2024-12-28 06:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:43:21] Production.INFO: ==16650== Releasing lock... [2024-12-28 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:44:05 [end_date_ymd] => 2024-12-28 06:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:44:05' and `end` < '2024-12-28 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-28 06:44:18] Production.INFO: count ==34 [2024-12-28 06:44:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:44:05 - End Time 2024-12-28 06:44:05 [2024-12-28 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119779', 'tblTempUsageDetail_20' ) start [2024-12-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119779', 'tblTempUsageDetail_20' ) end [2024-12-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119779', 'tblTempVendorCDR_20' ) start [2024-12-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119779', 'tblTempVendorCDR_20' ) end [2024-12-28 06:44:18] Production.INFO: ProcessCDR(1,14119779,1,1,2) [2024-12-28 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119779', 'tblTempUsageDetail_20' ) start [2024-12-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119779', 'tblTempUsageDetail_20' ) end [2024-12-28 06:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:44:21] Production.INFO: ==16727== Releasing lock... [2024-12-28 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:45:05 [end_date_ymd] => 2024-12-28 06:45:05 [RateCDR] => 1 ) [2024-12-28 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:45:05' and `end` < '2024-12-28 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:45:17] Production.INFO: count ==34 [2024-12-28 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:45:05 - End Time 2024-12-28 06:45:05 [2024-12-28 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119784', 'tblTempUsageDetail_20' ) start [2024-12-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119784', 'tblTempUsageDetail_20' ) end [2024-12-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119784', 'tblTempVendorCDR_20' ) start [2024-12-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119784', 'tblTempVendorCDR_20' ) end [2024-12-28 06:45:17] Production.INFO: ProcessCDR(1,14119784,1,1,2) [2024-12-28 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119784', 'tblTempUsageDetail_20' ) start [2024-12-28 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119784', 'tblTempUsageDetail_20' ) end [2024-12-28 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:45:21] Production.INFO: ==16801== Releasing lock... [2024-12-28 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:46:05 [end_date_ymd] => 2024-12-28 06:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:46:05' and `end` < '2024-12-28 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-28 06:46:18] Production.INFO: count ==34 [2024-12-28 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:46:05 - End Time 2024-12-28 06:46:05 [2024-12-28 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119789', 'tblTempUsageDetail_20' ) start [2024-12-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119789', 'tblTempUsageDetail_20' ) end [2024-12-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119789', 'tblTempVendorCDR_20' ) start [2024-12-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119789', 'tblTempVendorCDR_20' ) end [2024-12-28 06:46:18] Production.INFO: ProcessCDR(1,14119789,1,1,2) [2024-12-28 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119789', 'tblTempUsageDetail_20' ) start [2024-12-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119789', 'tblTempUsageDetail_20' ) end [2024-12-28 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:46:21] Production.INFO: ==16875== Releasing lock... [2024-12-28 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:47:05 [end_date_ymd] => 2024-12-28 06:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:47:05' and `end` < '2024-12-28 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-28 06:47:17] Production.INFO: count ==34 [2024-12-28 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:47:05 - End Time 2024-12-28 06:47:05 [2024-12-28 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119794', 'tblTempUsageDetail_20' ) start [2024-12-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119794', 'tblTempUsageDetail_20' ) end [2024-12-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119794', 'tblTempVendorCDR_20' ) start [2024-12-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119794', 'tblTempVendorCDR_20' ) end [2024-12-28 06:47:17] Production.INFO: ProcessCDR(1,14119794,1,1,2) [2024-12-28 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119794', 'tblTempUsageDetail_20' ) start [2024-12-28 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119794', 'tblTempUsageDetail_20' ) end [2024-12-28 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:47:20] Production.INFO: ==16951== Releasing lock... [2024-12-28 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:48:05 [end_date_ymd] => 2024-12-28 06:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:48:05' and `end` < '2024-12-28 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-28 06:48:18] Production.INFO: count ==34 [2024-12-28 06:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:48:05 - End Time 2024-12-28 06:48:05 [2024-12-28 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119799', 'tblTempUsageDetail_20' ) start [2024-12-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119799', 'tblTempUsageDetail_20' ) end [2024-12-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119799', 'tblTempVendorCDR_20' ) start [2024-12-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119799', 'tblTempVendorCDR_20' ) end [2024-12-28 06:48:18] Production.INFO: ProcessCDR(1,14119799,1,1,2) [2024-12-28 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119799', 'tblTempUsageDetail_20' ) start [2024-12-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119799', 'tblTempUsageDetail_20' ) end [2024-12-28 06:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:48:21] Production.INFO: ==17021== Releasing lock... [2024-12-28 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:48:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:49:05 [end_date_ymd] => 2024-12-28 06:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:49:05' and `end` < '2024-12-28 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-28 06:49:17] Production.INFO: count ==34 [2024-12-28 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:49:05 - End Time 2024-12-28 06:49:05 [2024-12-28 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119804', 'tblTempUsageDetail_20' ) start [2024-12-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119804', 'tblTempUsageDetail_20' ) end [2024-12-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119804', 'tblTempVendorCDR_20' ) start [2024-12-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119804', 'tblTempVendorCDR_20' ) end [2024-12-28 06:49:17] Production.INFO: ProcessCDR(1,14119804,1,1,2) [2024-12-28 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119804', 'tblTempUsageDetail_20' ) start [2024-12-28 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119804', 'tblTempUsageDetail_20' ) end [2024-12-28 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:49:21] Production.INFO: ==17093== Releasing lock... [2024-12-28 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:50:06 [end_date_ymd] => 2024-12-28 06:50:06 [RateCDR] => 1 ) [2024-12-28 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:50:06' and `end` < '2024-12-28 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:50:18] Production.INFO: count ==26 [2024-12-28 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:50:06 - End Time 2024-12-28 06:50:06 [2024-12-28 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119810', 'tblTempUsageDetail_20' ) start [2024-12-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119810', 'tblTempUsageDetail_20' ) end [2024-12-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119810', 'tblTempVendorCDR_20' ) start [2024-12-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119810', 'tblTempVendorCDR_20' ) end [2024-12-28 06:50:18] Production.INFO: ProcessCDR(1,14119810,1,1,2) [2024-12-28 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119810', 'tblTempUsageDetail_20' ) start [2024-12-28 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119810', 'tblTempUsageDetail_20' ) end [2024-12-28 06:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:50:22] Production.INFO: ==17168== Releasing lock... [2024-12-28 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:50:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:51:05 [end_date_ymd] => 2024-12-28 06:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:51:05' and `end` < '2024-12-28 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-28 06:51:17] Production.INFO: count ==26 [2024-12-28 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:51:05 - End Time 2024-12-28 06:51:05 [2024-12-28 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119815', 'tblTempUsageDetail_20' ) start [2024-12-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119815', 'tblTempUsageDetail_20' ) end [2024-12-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119815', 'tblTempVendorCDR_20' ) start [2024-12-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119815', 'tblTempVendorCDR_20' ) end [2024-12-28 06:51:17] Production.INFO: ProcessCDR(1,14119815,1,1,2) [2024-12-28 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119815', 'tblTempUsageDetail_20' ) start [2024-12-28 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119815', 'tblTempUsageDetail_20' ) end [2024-12-28 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:51:20] Production.INFO: ==17245== Releasing lock... [2024-12-28 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:52:05 [end_date_ymd] => 2024-12-28 06:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:52:05' and `end` < '2024-12-28 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-28 06:52:18] Production.INFO: count ==26 [2024-12-28 06:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:52:05 - End Time 2024-12-28 06:52:05 [2024-12-28 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119820', 'tblTempUsageDetail_20' ) start [2024-12-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119820', 'tblTempUsageDetail_20' ) end [2024-12-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119820', 'tblTempVendorCDR_20' ) start [2024-12-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119820', 'tblTempVendorCDR_20' ) end [2024-12-28 06:52:18] Production.INFO: ProcessCDR(1,14119820,1,1,2) [2024-12-28 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119820', 'tblTempUsageDetail_20' ) start [2024-12-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119820', 'tblTempUsageDetail_20' ) end [2024-12-28 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:52:21] Production.INFO: ==17353== Releasing lock... [2024-12-28 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:53:04 [end_date_ymd] => 2024-12-28 06:53:04 [RateCDR] => 1 ) [2024-12-28 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:53:04' and `end` < '2024-12-28 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-28 06:53:18] Production.INFO: count ==26 [2024-12-28 06:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:53:04 - End Time 2024-12-28 06:53:04 [2024-12-28 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119825', 'tblTempUsageDetail_20' ) start [2024-12-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119825', 'tblTempUsageDetail_20' ) end [2024-12-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119825', 'tblTempVendorCDR_20' ) start [2024-12-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119825', 'tblTempVendorCDR_20' ) end [2024-12-28 06:53:18] Production.INFO: ProcessCDR(1,14119825,1,1,2) [2024-12-28 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119825', 'tblTempUsageDetail_20' ) start [2024-12-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119825', 'tblTempUsageDetail_20' ) end [2024-12-28 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:53:21] Production.INFO: ==17428== Releasing lock... [2024-12-28 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:54:05 [end_date_ymd] => 2024-12-28 06:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 03:54:05' and `end` < '2024-12-28 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-28 06:54:17] Production.INFO: count ==26 [2024-12-28 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:54:05 - End Time 2024-12-28 06:54:05 [2024-12-28 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119830', 'tblTempUsageDetail_20' ) start [2024-12-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119830', 'tblTempUsageDetail_20' ) end [2024-12-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119830', 'tblTempVendorCDR_20' ) start [2024-12-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119830', 'tblTempVendorCDR_20' ) end [2024-12-28 06:54:17] Production.INFO: ProcessCDR(1,14119830,1,1,2) [2024-12-28 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119830', 'tblTempUsageDetail_20' ) start [2024-12-28 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119830', 'tblTempUsageDetail_20' ) end [2024-12-28 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:54:20] Production.INFO: ==17502== Releasing lock... [2024-12-28 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:55:04 [end_date_ymd] => 2024-12-28 06:55:04 [RateCDR] => 1 ) [2024-12-28 06: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-28 03:55:04' and `end` < '2024-12-28 06: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-28 06:55:17] Production.INFO: count ==26 [2024-12-28 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:55:04 - End Time 2024-12-28 06:55:04 [2024-12-28 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119835', 'tblTempUsageDetail_20' ) start [2024-12-28 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119835', 'tblTempUsageDetail_20' ) end [2024-12-28 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119835', 'tblTempVendorCDR_20' ) start [2024-12-28 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119835', 'tblTempVendorCDR_20' ) end [2024-12-28 06:55:17] Production.INFO: ProcessCDR(1,14119835,1,1,2) [2024-12-28 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119835', 'tblTempUsageDetail_20' ) start [2024-12-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119835', 'tblTempUsageDetail_20' ) end [2024-12-28 06:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:55:21] Production.INFO: ==17574== Releasing lock... [2024-12-28 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:55:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:56:05 [end_date_ymd] => 2024-12-28 06:56:05 [RateCDR] => 1 ) [2024-12-28 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:56:05' and `end` < '2024-12-28 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:56:19] Production.INFO: count ==26 [2024-12-28 06:56:19] Production.ERROR: pbx CDR StartTime 2024-12-28 03:56:05 - End Time 2024-12-28 06:56:05 [2024-12-28 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119840', 'tblTempUsageDetail_20' ) start [2024-12-28 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119840', 'tblTempUsageDetail_20' ) end [2024-12-28 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119840', 'tblTempVendorCDR_20' ) start [2024-12-28 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119840', 'tblTempVendorCDR_20' ) end [2024-12-28 06:56:19] Production.INFO: ProcessCDR(1,14119840,1,1,2) [2024-12-28 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119840', 'tblTempUsageDetail_20' ) start [2024-12-28 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119840', 'tblTempUsageDetail_20' ) end [2024-12-28 06:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:56:22] Production.INFO: ==17653== Releasing lock... [2024-12-28 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:56:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:57:05 [end_date_ymd] => 2024-12-28 06:57:05 [RateCDR] => 1 ) [2024-12-28 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:57:05' and `end` < '2024-12-28 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:57:17] Production.INFO: count ==26 [2024-12-28 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:57:05 - End Time 2024-12-28 06:57:05 [2024-12-28 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119845', 'tblTempUsageDetail_20' ) start [2024-12-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119845', 'tblTempUsageDetail_20' ) end [2024-12-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119845', 'tblTempVendorCDR_20' ) start [2024-12-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119845', 'tblTempVendorCDR_20' ) end [2024-12-28 06:57:17] Production.INFO: ProcessCDR(1,14119845,1,1,2) [2024-12-28 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119845', 'tblTempUsageDetail_20' ) start [2024-12-28 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119845', 'tblTempUsageDetail_20' ) end [2024-12-28 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:57:20] Production.INFO: ==17724== Releasing lock... [2024-12-28 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:58:05 [end_date_ymd] => 2024-12-28 06:58:05 [RateCDR] => 1 ) [2024-12-28 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:58:05' and `end` < '2024-12-28 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:58:17] Production.INFO: count ==26 [2024-12-28 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-28 03:58:05 - End Time 2024-12-28 06:58:05 [2024-12-28 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119850', 'tblTempUsageDetail_20' ) start [2024-12-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119850', 'tblTempUsageDetail_20' ) end [2024-12-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119850', 'tblTempVendorCDR_20' ) start [2024-12-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119850', 'tblTempVendorCDR_20' ) end [2024-12-28 06:58:17] Production.INFO: ProcessCDR(1,14119850,1,1,2) [2024-12-28 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119850', 'tblTempUsageDetail_20' ) start [2024-12-28 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119850', 'tblTempUsageDetail_20' ) end [2024-12-28 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:58:21] Production.INFO: ==17799== Releasing lock... [2024-12-28 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 03:59:04 [end_date_ymd] => 2024-12-28 06:59:04 [RateCDR] => 1 ) [2024-12-28 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 03:59:04' and `end` < '2024-12-28 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 06:59:18] Production.INFO: count ==26 [2024-12-28 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 03:59:04 - End Time 2024-12-28 06:59:04 [2024-12-28 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119855', 'tblTempUsageDetail_20' ) start [2024-12-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119855', 'tblTempUsageDetail_20' ) end [2024-12-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119855', 'tblTempVendorCDR_20' ) start [2024-12-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119855', 'tblTempVendorCDR_20' ) end [2024-12-28 06:59:18] Production.INFO: ProcessCDR(1,14119855,1,1,2) [2024-12-28 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119855', 'tblTempUsageDetail_20' ) start [2024-12-28 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119855', 'tblTempUsageDetail_20' ) end [2024-12-28 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 06:59:21] Production.INFO: ==17875== Releasing lock... [2024-12-28 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:00:05 [end_date_ymd] => 2024-12-28 07:00:05 [RateCDR] => 1 ) [2024-12-28 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:00:05' and `end` < '2024-12-28 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:00:19] Production.INFO: count ==24 [2024-12-28 07:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:00:05 - End Time 2024-12-28 07:00:05 [2024-12-28 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119861', 'tblTempUsageDetail_20' ) start [2024-12-28 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119861', 'tblTempUsageDetail_20' ) end [2024-12-28 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119861', 'tblTempVendorCDR_20' ) start [2024-12-28 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119861', 'tblTempVendorCDR_20' ) end [2024-12-28 07:00:19] Production.INFO: ProcessCDR(1,14119861,1,1,2) [2024-12-28 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119861', 'tblTempUsageDetail_20' ) start [2024-12-28 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119861', 'tblTempUsageDetail_20' ) end [2024-12-28 07:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:00:22] Production.INFO: ==17949== Releasing lock... [2024-12-28 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:00:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:01:04 [end_date_ymd] => 2024-12-28 07:01:04 [RateCDR] => 1 ) [2024-12-28 07:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:01:04' and `end` < '2024-12-28 07:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:01:23] Production.INFO: count ==24 [2024-12-28 07:01:23] Production.ERROR: pbx CDR StartTime 2024-12-28 04:01:04 - End Time 2024-12-28 07:01:04 [2024-12-28 07:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119866', 'tblTempUsageDetail_20' ) start [2024-12-28 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119866', 'tblTempUsageDetail_20' ) end [2024-12-28 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119866', 'tblTempVendorCDR_20' ) start [2024-12-28 07:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119866', 'tblTempVendorCDR_20' ) end [2024-12-28 07:01:23] Production.INFO: ProcessCDR(1,14119866,1,1,2) [2024-12-28 07:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119866', 'tblTempUsageDetail_20' ) start [2024-12-28 07:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119866', 'tblTempUsageDetail_20' ) end [2024-12-28 07:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:01:26] Production.INFO: ==18033== Releasing lock... [2024-12-28 07:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:01:26] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:02:05 [end_date_ymd] => 2024-12-28 07:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:02:05' and `end` < '2024-12-28 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-28 07:02:19] Production.INFO: count ==24 [2024-12-28 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:02:05 - End Time 2024-12-28 07:02:05 [2024-12-28 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119871', 'tblTempUsageDetail_20' ) start [2024-12-28 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119871', 'tblTempUsageDetail_20' ) end [2024-12-28 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119871', 'tblTempVendorCDR_20' ) start [2024-12-28 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119871', 'tblTempVendorCDR_20' ) end [2024-12-28 07:02:19] Production.INFO: ProcessCDR(1,14119871,1,1,2) [2024-12-28 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119871', 'tblTempUsageDetail_20' ) start [2024-12-28 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119871', 'tblTempUsageDetail_20' ) end [2024-12-28 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:02:22] Production.INFO: ==18184== Releasing lock... [2024-12-28 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:03:05 [end_date_ymd] => 2024-12-28 07:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:03:05' and `end` < '2024-12-28 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-28 07:03:20] Production.INFO: count ==23 [2024-12-28 07:03:20] Production.ERROR: pbx CDR StartTime 2024-12-28 04:03:05 - End Time 2024-12-28 07:03:05 [2024-12-28 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119876', 'tblTempUsageDetail_20' ) start [2024-12-28 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119876', 'tblTempUsageDetail_20' ) end [2024-12-28 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119876', 'tblTempVendorCDR_20' ) start [2024-12-28 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119876', 'tblTempVendorCDR_20' ) end [2024-12-28 07:03:20] Production.INFO: ProcessCDR(1,14119876,1,1,2) [2024-12-28 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119876', 'tblTempUsageDetail_20' ) start [2024-12-28 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119876', 'tblTempUsageDetail_20' ) end [2024-12-28 07:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:03:23] Production.INFO: ==18255== Releasing lock... [2024-12-28 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:03:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:04:05 [end_date_ymd] => 2024-12-28 07:04:05 [RateCDR] => 1 ) [2024-12-28 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:04:05' and `end` < '2024-12-28 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:04:19] Production.INFO: count ==21 [2024-12-28 07:04:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:04:05 - End Time 2024-12-28 07:04:05 [2024-12-28 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119881', 'tblTempUsageDetail_20' ) start [2024-12-28 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119881', 'tblTempUsageDetail_20' ) end [2024-12-28 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119881', 'tblTempVendorCDR_20' ) start [2024-12-28 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119881', 'tblTempVendorCDR_20' ) end [2024-12-28 07:04:19] Production.INFO: ProcessCDR(1,14119881,1,1,2) [2024-12-28 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119881', 'tblTempUsageDetail_20' ) start [2024-12-28 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119881', 'tblTempUsageDetail_20' ) end [2024-12-28 07:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:04:22] Production.INFO: ==18328== Releasing lock... [2024-12-28 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:05:05 [end_date_ymd] => 2024-12-28 07:05:05 [RateCDR] => 1 ) [2024-12-28 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:05:05' and `end` < '2024-12-28 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:05:18] Production.INFO: count ==21 [2024-12-28 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:05:05 - End Time 2024-12-28 07:05:05 [2024-12-28 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119886', 'tblTempUsageDetail_20' ) start [2024-12-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119886', 'tblTempUsageDetail_20' ) end [2024-12-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119886', 'tblTempVendorCDR_20' ) start [2024-12-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119886', 'tblTempVendorCDR_20' ) end [2024-12-28 07:05:18] Production.INFO: ProcessCDR(1,14119886,1,1,2) [2024-12-28 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119886', 'tblTempUsageDetail_20' ) start [2024-12-28 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119886', 'tblTempUsageDetail_20' ) end [2024-12-28 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:05:21] Production.INFO: ==18482== Releasing lock... [2024-12-28 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:06:04 [end_date_ymd] => 2024-12-28 07:06:04 [RateCDR] => 1 ) [2024-12-28 07: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-28 04:06:04' and `end` < '2024-12-28 07: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-28 07:06:18] Production.INFO: count ==21 [2024-12-28 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:06:04 - End Time 2024-12-28 07:06:04 [2024-12-28 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119891', 'tblTempUsageDetail_20' ) start [2024-12-28 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119891', 'tblTempUsageDetail_20' ) end [2024-12-28 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119891', 'tblTempVendorCDR_20' ) start [2024-12-28 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119891', 'tblTempVendorCDR_20' ) end [2024-12-28 07:06:18] Production.INFO: ProcessCDR(1,14119891,1,1,2) [2024-12-28 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119891', 'tblTempUsageDetail_20' ) start [2024-12-28 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119891', 'tblTempUsageDetail_20' ) end [2024-12-28 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:06:21] Production.INFO: ==18559== Releasing lock... [2024-12-28 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:07:05 [end_date_ymd] => 2024-12-28 07:07:05 [RateCDR] => 1 ) [2024-12-28 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:07:05' and `end` < '2024-12-28 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:07:18] Production.INFO: count ==20 [2024-12-28 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:07:05 - End Time 2024-12-28 07:07:05 [2024-12-28 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119896', 'tblTempUsageDetail_20' ) start [2024-12-28 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119896', 'tblTempUsageDetail_20' ) end [2024-12-28 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119896', 'tblTempVendorCDR_20' ) start [2024-12-28 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119896', 'tblTempVendorCDR_20' ) end [2024-12-28 07:07:18] Production.INFO: ProcessCDR(1,14119896,1,1,2) [2024-12-28 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119896', 'tblTempUsageDetail_20' ) start [2024-12-28 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119896', 'tblTempUsageDetail_20' ) end [2024-12-28 07:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:07:21] Production.INFO: ==18669== Releasing lock... [2024-12-28 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:08:04 [end_date_ymd] => 2024-12-28 07:08:04 [RateCDR] => 1 ) [2024-12-28 07: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-28 04:08:04' and `end` < '2024-12-28 07: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-28 07:08:17] Production.INFO: count ==20 [2024-12-28 07:08:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:08:04 - End Time 2024-12-28 07:08:04 [2024-12-28 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119901', 'tblTempUsageDetail_20' ) start [2024-12-28 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119901', 'tblTempUsageDetail_20' ) end [2024-12-28 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119901', 'tblTempVendorCDR_20' ) start [2024-12-28 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119901', 'tblTempVendorCDR_20' ) end [2024-12-28 07:08:17] Production.INFO: ProcessCDR(1,14119901,1,1,2) [2024-12-28 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119901', 'tblTempUsageDetail_20' ) start [2024-12-28 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119901', 'tblTempUsageDetail_20' ) end [2024-12-28 07:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:08:20] Production.INFO: ==18780== Releasing lock... [2024-12-28 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:08:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:09:05 [end_date_ymd] => 2024-12-28 07:09:05 [RateCDR] => 1 ) [2024-12-28 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:09:05' and `end` < '2024-12-28 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:09:19] Production.INFO: count ==20 [2024-12-28 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:09:05 - End Time 2024-12-28 07:09:05 [2024-12-28 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119906', 'tblTempUsageDetail_20' ) start [2024-12-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119906', 'tblTempUsageDetail_20' ) end [2024-12-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119906', 'tblTempVendorCDR_20' ) start [2024-12-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119906', 'tblTempVendorCDR_20' ) end [2024-12-28 07:09:19] Production.INFO: ProcessCDR(1,14119906,1,1,2) [2024-12-28 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119906', 'tblTempUsageDetail_20' ) start [2024-12-28 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119906', 'tblTempUsageDetail_20' ) end [2024-12-28 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:09:22] Production.INFO: ==18891== Releasing lock... [2024-12-28 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:09:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:10:05 [end_date_ymd] => 2024-12-28 07:10:05 [RateCDR] => 1 ) [2024-12-28 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:10:05' and `end` < '2024-12-28 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:10:19] Production.INFO: count ==20 [2024-12-28 07:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:10:05 - End Time 2024-12-28 07:10:05 [2024-12-28 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119911', 'tblTempUsageDetail_20' ) start [2024-12-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119911', 'tblTempUsageDetail_20' ) end [2024-12-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119911', 'tblTempVendorCDR_20' ) start [2024-12-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119911', 'tblTempVendorCDR_20' ) end [2024-12-28 07:10:19] Production.INFO: ProcessCDR(1,14119911,1,1,2) [2024-12-28 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119911', 'tblTempUsageDetail_20' ) start [2024-12-28 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119911', 'tblTempUsageDetail_20' ) end [2024-12-28 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:10:22] Production.INFO: ==18965== Releasing lock... [2024-12-28 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:11:04 [end_date_ymd] => 2024-12-28 07:11:04 [RateCDR] => 1 ) [2024-12-28 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:11:04' and `end` < '2024-12-28 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:11:19] Production.INFO: count ==20 [2024-12-28 07:11:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:11:04 - End Time 2024-12-28 07:11:04 [2024-12-28 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119917', 'tblTempUsageDetail_20' ) start [2024-12-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119917', 'tblTempUsageDetail_20' ) end [2024-12-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119917', 'tblTempVendorCDR_20' ) start [2024-12-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119917', 'tblTempVendorCDR_20' ) end [2024-12-28 07:11:19] Production.INFO: ProcessCDR(1,14119917,1,1,2) [2024-12-28 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119917', 'tblTempUsageDetail_20' ) start [2024-12-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119917', 'tblTempUsageDetail_20' ) end [2024-12-28 07:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:11:22] Production.INFO: ==19043== Releasing lock... [2024-12-28 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:12:05 [end_date_ymd] => 2024-12-28 07:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:12:05' and `end` < '2024-12-28 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-28 07:12:19] Production.INFO: count ==20 [2024-12-28 07:12:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:12:05 - End Time 2024-12-28 07:12:05 [2024-12-28 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119922', 'tblTempUsageDetail_20' ) start [2024-12-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119922', 'tblTempUsageDetail_20' ) end [2024-12-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119922', 'tblTempVendorCDR_20' ) start [2024-12-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119922', 'tblTempVendorCDR_20' ) end [2024-12-28 07:12:19] Production.INFO: ProcessCDR(1,14119922,1,1,2) [2024-12-28 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119922', 'tblTempUsageDetail_20' ) start [2024-12-28 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119922', 'tblTempUsageDetail_20' ) end [2024-12-28 07:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:12:22] Production.INFO: ==19197== Releasing lock... [2024-12-28 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:12:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:13:04 [end_date_ymd] => 2024-12-28 07:13:04 [RateCDR] => 1 ) [2024-12-28 07:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:13:04' and `end` < '2024-12-28 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:13:18] Production.INFO: count ==20 [2024-12-28 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:13:04 - End Time 2024-12-28 07:13:04 [2024-12-28 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119927', 'tblTempUsageDetail_20' ) start [2024-12-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119927', 'tblTempUsageDetail_20' ) end [2024-12-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119927', 'tblTempVendorCDR_20' ) start [2024-12-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119927', 'tblTempVendorCDR_20' ) end [2024-12-28 07:13:18] Production.INFO: ProcessCDR(1,14119927,1,1,2) [2024-12-28 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119927', 'tblTempUsageDetail_20' ) start [2024-12-28 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119927', 'tblTempUsageDetail_20' ) end [2024-12-28 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:13:21] Production.INFO: ==19270== Releasing lock... [2024-12-28 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:14:05 [end_date_ymd] => 2024-12-28 07:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:14:05' and `end` < '2024-12-28 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-28 07:14:19] Production.INFO: count ==20 [2024-12-28 07:14:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:14:05 - End Time 2024-12-28 07:14:05 [2024-12-28 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119932', 'tblTempUsageDetail_20' ) start [2024-12-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119932', 'tblTempUsageDetail_20' ) end [2024-12-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119932', 'tblTempVendorCDR_20' ) start [2024-12-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119932', 'tblTempVendorCDR_20' ) end [2024-12-28 07:14:19] Production.INFO: ProcessCDR(1,14119932,1,1,2) [2024-12-28 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119932', 'tblTempUsageDetail_20' ) start [2024-12-28 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119932', 'tblTempUsageDetail_20' ) end [2024-12-28 07:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:14:22] Production.INFO: ==19340== Releasing lock... [2024-12-28 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:14:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:15:05 [end_date_ymd] => 2024-12-28 07:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:15:05' and `end` < '2024-12-28 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-28 07:15:19] Production.INFO: count ==20 [2024-12-28 07:15:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:15:05 - End Time 2024-12-28 07:15:05 [2024-12-28 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119937', 'tblTempUsageDetail_20' ) start [2024-12-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119937', 'tblTempUsageDetail_20' ) end [2024-12-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119937', 'tblTempVendorCDR_20' ) start [2024-12-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119937', 'tblTempVendorCDR_20' ) end [2024-12-28 07:15:19] Production.INFO: ProcessCDR(1,14119937,1,1,2) [2024-12-28 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119937', 'tblTempUsageDetail_20' ) start [2024-12-28 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119937', 'tblTempUsageDetail_20' ) end [2024-12-28 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:15:21] Production.INFO: ==19490== Releasing lock... [2024-12-28 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:15:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:16:04 [end_date_ymd] => 2024-12-28 07:16:04 [RateCDR] => 1 ) [2024-12-28 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-28 04:16:04' and `end` < '2024-12-28 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-28 07:16:18] Production.INFO: count ==20 [2024-12-28 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:16:04 - End Time 2024-12-28 07:16:04 [2024-12-28 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119942', 'tblTempUsageDetail_20' ) start [2024-12-28 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119942', 'tblTempUsageDetail_20' ) end [2024-12-28 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119942', 'tblTempVendorCDR_20' ) start [2024-12-28 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119942', 'tblTempVendorCDR_20' ) end [2024-12-28 07:16:18] Production.INFO: ProcessCDR(1,14119942,1,1,2) [2024-12-28 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119942', 'tblTempUsageDetail_20' ) start [2024-12-28 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119942', 'tblTempUsageDetail_20' ) end [2024-12-28 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:16:21] Production.INFO: ==19559== Releasing lock... [2024-12-28 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:17:05 [end_date_ymd] => 2024-12-28 07:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:17:05' and `end` < '2024-12-28 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-28 07:17:19] Production.INFO: count ==20 [2024-12-28 07:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:17:05 - End Time 2024-12-28 07:17:05 [2024-12-28 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119947', 'tblTempUsageDetail_20' ) start [2024-12-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119947', 'tblTempUsageDetail_20' ) end [2024-12-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119947', 'tblTempVendorCDR_20' ) start [2024-12-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119947', 'tblTempVendorCDR_20' ) end [2024-12-28 07:17:19] Production.INFO: ProcessCDR(1,14119947,1,1,2) [2024-12-28 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119947', 'tblTempUsageDetail_20' ) start [2024-12-28 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119947', 'tblTempUsageDetail_20' ) end [2024-12-28 07:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:17:22] Production.INFO: ==19633== Releasing lock... [2024-12-28 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:18:05 [end_date_ymd] => 2024-12-28 07:18:05 [RateCDR] => 1 ) [2024-12-28 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:18:05' and `end` < '2024-12-28 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:18:19] Production.INFO: count ==20 [2024-12-28 07:18:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:18:05 - End Time 2024-12-28 07:18:05 [2024-12-28 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119952', 'tblTempUsageDetail_20' ) start [2024-12-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119952', 'tblTempUsageDetail_20' ) end [2024-12-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119952', 'tblTempVendorCDR_20' ) start [2024-12-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119952', 'tblTempVendorCDR_20' ) end [2024-12-28 07:18:19] Production.INFO: ProcessCDR(1,14119952,1,1,2) [2024-12-28 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119952', 'tblTempUsageDetail_20' ) start [2024-12-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119952', 'tblTempUsageDetail_20' ) end [2024-12-28 07:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:18:22] Production.INFO: ==19704== Releasing lock... [2024-12-28 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:18:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:19:05 [end_date_ymd] => 2024-12-28 07:19:05 [RateCDR] => 1 ) [2024-12-28 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:19:05' and `end` < '2024-12-28 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:19:18] Production.INFO: count ==20 [2024-12-28 07:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:19:05 - End Time 2024-12-28 07:19:05 [2024-12-28 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119957', 'tblTempUsageDetail_20' ) start [2024-12-28 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119957', 'tblTempUsageDetail_20' ) end [2024-12-28 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119957', 'tblTempVendorCDR_20' ) start [2024-12-28 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119957', 'tblTempVendorCDR_20' ) end [2024-12-28 07:19:18] Production.INFO: ProcessCDR(1,14119957,1,1,2) [2024-12-28 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119957', 'tblTempUsageDetail_20' ) start [2024-12-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119957', 'tblTempUsageDetail_20' ) end [2024-12-28 07:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:19:22] Production.INFO: ==19801== Releasing lock... [2024-12-28 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:19:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:20:06 [end_date_ymd] => 2024-12-28 07:20:06 [RateCDR] => 1 ) [2024-12-28 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-28 04:20:06' and `end` < '2024-12-28 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-28 07:20:18] Production.INFO: count ==18 [2024-12-28 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:20:06 - End Time 2024-12-28 07:20:06 [2024-12-28 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119963', 'tblTempUsageDetail_20' ) start [2024-12-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119963', 'tblTempUsageDetail_20' ) end [2024-12-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119963', 'tblTempVendorCDR_20' ) start [2024-12-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119963', 'tblTempVendorCDR_20' ) end [2024-12-28 07:20:18] Production.INFO: ProcessCDR(1,14119963,1,1,2) [2024-12-28 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119963', 'tblTempUsageDetail_20' ) start [2024-12-28 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119963', 'tblTempUsageDetail_20' ) end [2024-12-28 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:20:21] Production.INFO: ==19873== Releasing lock... [2024-12-28 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:21:05 [end_date_ymd] => 2024-12-28 07:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:21:05' and `end` < '2024-12-28 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-28 07:22:11] Production.INFO: count ==18 [2024-12-28 07:22:11] Production.ERROR: pbx CDR StartTime 2024-12-28 04:21:05 - End Time 2024-12-28 07:21:05 [2024-12-28 07:22:11] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:22:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119968', 'tblTempUsageDetail_20' ) start [2024-12-28 07:22:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119968', 'tblTempUsageDetail_20' ) end [2024-12-28 07:22:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119968', 'tblTempVendorCDR_20' ) start [2024-12-28 07:22:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119968', 'tblTempVendorCDR_20' ) end [2024-12-28 07:22:11] Production.INFO: ProcessCDR(1,14119968,1,1,2) [2024-12-28 07:22:11] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:22:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:22:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:22:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:22:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119968', 'tblTempUsageDetail_20' ) start [2024-12-28 07:22:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119968', 'tblTempUsageDetail_20' ) end [2024-12-28 07:22:14] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:22:14] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:22:14] Production.INFO: ==19949== Releasing lock... [2024-12-28 07:22:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:22:14] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:23:05 [end_date_ymd] => 2024-12-28 07:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:23:05' and `end` < '2024-12-28 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-28 07:23:17] Production.INFO: count ==18 [2024-12-28 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:23:05 - End Time 2024-12-28 07:23:05 [2024-12-28 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119977', 'tblTempUsageDetail_20' ) start [2024-12-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119977', 'tblTempUsageDetail_20' ) end [2024-12-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119977', 'tblTempVendorCDR_20' ) start [2024-12-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119977', 'tblTempVendorCDR_20' ) end [2024-12-28 07:23:17] Production.INFO: ProcessCDR(1,14119977,1,1,2) [2024-12-28 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119977', 'tblTempUsageDetail_20' ) start [2024-12-28 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119977', 'tblTempUsageDetail_20' ) end [2024-12-28 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:23:20] Production.INFO: ==20127== Releasing lock... [2024-12-28 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:24:04 [end_date_ymd] => 2024-12-28 07:24:04 [RateCDR] => 1 ) [2024-12-28 07:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:24:04' and `end` < '2024-12-28 07:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:24:17] Production.INFO: count ==18 [2024-12-28 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:24:04 - End Time 2024-12-28 07:24:04 [2024-12-28 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119982', 'tblTempUsageDetail_20' ) start [2024-12-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119982', 'tblTempUsageDetail_20' ) end [2024-12-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119982', 'tblTempVendorCDR_20' ) start [2024-12-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119982', 'tblTempVendorCDR_20' ) end [2024-12-28 07:24:17] Production.INFO: ProcessCDR(1,14119982,1,1,2) [2024-12-28 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119982', 'tblTempUsageDetail_20' ) start [2024-12-28 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119982', 'tblTempUsageDetail_20' ) end [2024-12-28 07:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:24:20] Production.INFO: ==20196== Releasing lock... [2024-12-28 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:25:05 [end_date_ymd] => 2024-12-28 07:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:25:05' and `end` < '2024-12-28 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-28 07:25:17] Production.INFO: count ==18 [2024-12-28 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:25:05 - End Time 2024-12-28 07:25:05 [2024-12-28 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119987', 'tblTempUsageDetail_20' ) start [2024-12-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119987', 'tblTempUsageDetail_20' ) end [2024-12-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119987', 'tblTempVendorCDR_20' ) start [2024-12-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119987', 'tblTempVendorCDR_20' ) end [2024-12-28 07:25:17] Production.INFO: ProcessCDR(1,14119987,1,1,2) [2024-12-28 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119987', 'tblTempUsageDetail_20' ) start [2024-12-28 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119987', 'tblTempUsageDetail_20' ) end [2024-12-28 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:25:20] Production.INFO: ==20275== Releasing lock... [2024-12-28 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:26:05 [end_date_ymd] => 2024-12-28 07:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:26:05' and `end` < '2024-12-28 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-28 07:26:18] Production.INFO: count ==18 [2024-12-28 07:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:26:05 - End Time 2024-12-28 07:26:05 [2024-12-28 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119992', 'tblTempUsageDetail_20' ) start [2024-12-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119992', 'tblTempUsageDetail_20' ) end [2024-12-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119992', 'tblTempVendorCDR_20' ) start [2024-12-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119992', 'tblTempVendorCDR_20' ) end [2024-12-28 07:26:18] Production.INFO: ProcessCDR(1,14119992,1,1,2) [2024-12-28 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119992', 'tblTempUsageDetail_20' ) start [2024-12-28 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119992', 'tblTempUsageDetail_20' ) end [2024-12-28 07:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:26:21] Production.INFO: ==20350== Releasing lock... [2024-12-28 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:27:05 [end_date_ymd] => 2024-12-28 07:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:27:05' and `end` < '2024-12-28 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-28 07:27:17] Production.INFO: count ==18 [2024-12-28 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:27:05 - End Time 2024-12-28 07:27:05 [2024-12-28 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119997', 'tblTempUsageDetail_20' ) start [2024-12-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14119997', 'tblTempUsageDetail_20' ) end [2024-12-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119997', 'tblTempVendorCDR_20' ) start [2024-12-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14119997', 'tblTempVendorCDR_20' ) end [2024-12-28 07:27:17] Production.INFO: ProcessCDR(1,14119997,1,1,2) [2024-12-28 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14119997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14119997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14119997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14119997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119997', 'tblTempUsageDetail_20' ) start [2024-12-28 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14119997', 'tblTempUsageDetail_20' ) end [2024-12-28 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:27:20] Production.INFO: ==20424== Releasing lock... [2024-12-28 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:28:05 [end_date_ymd] => 2024-12-28 07:28:05 [RateCDR] => 1 ) [2024-12-28 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:28:05' and `end` < '2024-12-28 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:28:18] Production.INFO: count ==18 [2024-12-28 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:28:05 - End Time 2024-12-28 07:28:05 [2024-12-28 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120002', 'tblTempUsageDetail_20' ) start [2024-12-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120002', 'tblTempUsageDetail_20' ) end [2024-12-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120002', 'tblTempVendorCDR_20' ) start [2024-12-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120002', 'tblTempVendorCDR_20' ) end [2024-12-28 07:28:18] Production.INFO: ProcessCDR(1,14120002,1,1,2) [2024-12-28 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120002', 'tblTempUsageDetail_20' ) start [2024-12-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120002', 'tblTempUsageDetail_20' ) end [2024-12-28 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:28:21] Production.INFO: ==20498== Releasing lock... [2024-12-28 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:29:05 [end_date_ymd] => 2024-12-28 07:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:29:05' and `end` < '2024-12-28 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-28 07:29:18] Production.INFO: count ==18 [2024-12-28 07:29:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:29:05 - End Time 2024-12-28 07:29:05 [2024-12-28 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120007', 'tblTempUsageDetail_20' ) start [2024-12-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120007', 'tblTempUsageDetail_20' ) end [2024-12-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120007', 'tblTempVendorCDR_20' ) start [2024-12-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120007', 'tblTempVendorCDR_20' ) end [2024-12-28 07:29:18] Production.INFO: ProcessCDR(1,14120007,1,1,2) [2024-12-28 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120007', 'tblTempUsageDetail_20' ) start [2024-12-28 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120007', 'tblTempUsageDetail_20' ) end [2024-12-28 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:29:21] Production.INFO: ==20567== Releasing lock... [2024-12-28 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:30:05 [end_date_ymd] => 2024-12-28 07:30:05 [RateCDR] => 1 ) [2024-12-28 07: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-28 04:30:05' and `end` < '2024-12-28 07: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-28 07:30:17] Production.INFO: count ==15 [2024-12-28 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:30:05 - End Time 2024-12-28 07:30:05 [2024-12-28 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120012', 'tblTempUsageDetail_20' ) start [2024-12-28 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120012', 'tblTempUsageDetail_20' ) end [2024-12-28 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120012', 'tblTempVendorCDR_20' ) start [2024-12-28 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120012', 'tblTempVendorCDR_20' ) end [2024-12-28 07:30:17] Production.INFO: ProcessCDR(1,14120012,1,1,2) [2024-12-28 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120012', 'tblTempUsageDetail_20' ) start [2024-12-28 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120012', 'tblTempUsageDetail_20' ) end [2024-12-28 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:30:20] Production.INFO: ==20640== Releasing lock... [2024-12-28 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:31:04 [end_date_ymd] => 2024-12-28 07:31:04 [RateCDR] => 1 ) [2024-12-28 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-28 04:31:04' and `end` < '2024-12-28 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-28 07:31:16] Production.INFO: count ==15 [2024-12-28 07:31:16] Production.ERROR: pbx CDR StartTime 2024-12-28 04:31:04 - End Time 2024-12-28 07:31:04 [2024-12-28 07:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120018', 'tblTempUsageDetail_20' ) start [2024-12-28 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120018', 'tblTempUsageDetail_20' ) end [2024-12-28 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120018', 'tblTempVendorCDR_20' ) start [2024-12-28 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120018', 'tblTempVendorCDR_20' ) end [2024-12-28 07:31:16] Production.INFO: ProcessCDR(1,14120018,1,1,2) [2024-12-28 07:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120018', 'tblTempUsageDetail_20' ) start [2024-12-28 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120018', 'tblTempUsageDetail_20' ) end [2024-12-28 07:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:31:19] Production.INFO: ==20713== Releasing lock... [2024-12-28 07:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:31:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:32:05 [end_date_ymd] => 2024-12-28 07:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:32:05' and `end` < '2024-12-28 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-28 07:32:17] Production.INFO: count ==15 [2024-12-28 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:32:05 - End Time 2024-12-28 07:32:05 [2024-12-28 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120023', 'tblTempUsageDetail_20' ) start [2024-12-28 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120023', 'tblTempUsageDetail_20' ) end [2024-12-28 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120023', 'tblTempVendorCDR_20' ) start [2024-12-28 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120023', 'tblTempVendorCDR_20' ) end [2024-12-28 07:32:17] Production.INFO: ProcessCDR(1,14120023,1,1,2) [2024-12-28 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120023', 'tblTempUsageDetail_20' ) start [2024-12-28 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120023', 'tblTempUsageDetail_20' ) end [2024-12-28 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:32:20] Production.INFO: ==20785== Releasing lock... [2024-12-28 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:33:06 [end_date_ymd] => 2024-12-28 07:33:06 [RateCDR] => 1 ) [2024-12-28 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:33:06' and `end` < '2024-12-28 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:33:18] Production.INFO: count ==15 [2024-12-28 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:33:06 - End Time 2024-12-28 07:33:06 [2024-12-28 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120028', 'tblTempUsageDetail_20' ) start [2024-12-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120028', 'tblTempUsageDetail_20' ) end [2024-12-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120028', 'tblTempVendorCDR_20' ) start [2024-12-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120028', 'tblTempVendorCDR_20' ) end [2024-12-28 07:33:18] Production.INFO: ProcessCDR(1,14120028,1,1,2) [2024-12-28 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120028', 'tblTempUsageDetail_20' ) start [2024-12-28 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120028', 'tblTempUsageDetail_20' ) end [2024-12-28 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:33:21] Production.INFO: ==20860== Releasing lock... [2024-12-28 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:34:05 [end_date_ymd] => 2024-12-28 07:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:34:05' and `end` < '2024-12-28 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-28 07:34:18] Production.INFO: count ==15 [2024-12-28 07:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:34:05 - End Time 2024-12-28 07:34:05 [2024-12-28 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120033', 'tblTempUsageDetail_20' ) start [2024-12-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120033', 'tblTempUsageDetail_20' ) end [2024-12-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120033', 'tblTempVendorCDR_20' ) start [2024-12-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120033', 'tblTempVendorCDR_20' ) end [2024-12-28 07:34:18] Production.INFO: ProcessCDR(1,14120033,1,1,2) [2024-12-28 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120033', 'tblTempUsageDetail_20' ) start [2024-12-28 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120033', 'tblTempUsageDetail_20' ) end [2024-12-28 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:34:21] Production.INFO: ==20931== Releasing lock... [2024-12-28 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:35:05 [end_date_ymd] => 2024-12-28 07:35:05 [RateCDR] => 1 ) [2024-12-28 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:35:05' and `end` < '2024-12-28 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:35:18] Production.INFO: count ==15 [2024-12-28 07:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:35:05 - End Time 2024-12-28 07:35:05 [2024-12-28 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120038', 'tblTempUsageDetail_20' ) start [2024-12-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120038', 'tblTempUsageDetail_20' ) end [2024-12-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120038', 'tblTempVendorCDR_20' ) start [2024-12-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120038', 'tblTempVendorCDR_20' ) end [2024-12-28 07:35:18] Production.INFO: ProcessCDR(1,14120038,1,1,2) [2024-12-28 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120038', 'tblTempUsageDetail_20' ) start [2024-12-28 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120038', 'tblTempUsageDetail_20' ) end [2024-12-28 07:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:35:21] Production.INFO: ==21002== Releasing lock... [2024-12-28 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:36:05 [end_date_ymd] => 2024-12-28 07:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:36:05' and `end` < '2024-12-28 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-28 07:36:17] Production.INFO: count ==15 [2024-12-28 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:36:05 - End Time 2024-12-28 07:36:05 [2024-12-28 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120043', 'tblTempUsageDetail_20' ) start [2024-12-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120043', 'tblTempUsageDetail_20' ) end [2024-12-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120043', 'tblTempVendorCDR_20' ) start [2024-12-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120043', 'tblTempVendorCDR_20' ) end [2024-12-28 07:36:17] Production.INFO: ProcessCDR(1,14120043,1,1,2) [2024-12-28 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120043', 'tblTempUsageDetail_20' ) start [2024-12-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120043', 'tblTempUsageDetail_20' ) end [2024-12-28 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:36:20] Production.INFO: ==21073== Releasing lock... [2024-12-28 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:37:05 [end_date_ymd] => 2024-12-28 07:37:05 [RateCDR] => 1 ) [2024-12-28 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:37:05' and `end` < '2024-12-28 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:37:17] Production.INFO: count ==15 [2024-12-28 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:37:05 - End Time 2024-12-28 07:37:05 [2024-12-28 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120048', 'tblTempUsageDetail_20' ) start [2024-12-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120048', 'tblTempUsageDetail_20' ) end [2024-12-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120048', 'tblTempVendorCDR_20' ) start [2024-12-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120048', 'tblTempVendorCDR_20' ) end [2024-12-28 07:37:17] Production.INFO: ProcessCDR(1,14120048,1,1,2) [2024-12-28 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120048', 'tblTempUsageDetail_20' ) start [2024-12-28 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120048', 'tblTempUsageDetail_20' ) end [2024-12-28 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:37:20] Production.INFO: ==21144== Releasing lock... [2024-12-28 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:38:05 [end_date_ymd] => 2024-12-28 07:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:38:05' and `end` < '2024-12-28 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-28 07:38:19] Production.INFO: count ==15 [2024-12-28 07:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:38:05 - End Time 2024-12-28 07:38:05 [2024-12-28 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120053', 'tblTempUsageDetail_20' ) start [2024-12-28 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120053', 'tblTempUsageDetail_20' ) end [2024-12-28 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120053', 'tblTempVendorCDR_20' ) start [2024-12-28 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120053', 'tblTempVendorCDR_20' ) end [2024-12-28 07:38:19] Production.INFO: ProcessCDR(1,14120053,1,1,2) [2024-12-28 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120053', 'tblTempUsageDetail_20' ) start [2024-12-28 07:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120053', 'tblTempUsageDetail_20' ) end [2024-12-28 07:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:38:25] Production.INFO: ==21217== Releasing lock... [2024-12-28 07:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:38:25] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:39:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:39:07 [end_date_ymd] => 2024-12-28 07:39:07 [RateCDR] => 1 ) [2024-12-28 07:39:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:39:07' and `end` < '2024-12-28 07:39:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:39:19] Production.INFO: count ==15 [2024-12-28 07:39:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:39:07 - End Time 2024-12-28 07:39:07 [2024-12-28 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120058', 'tblTempUsageDetail_20' ) start [2024-12-28 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120058', 'tblTempUsageDetail_20' ) end [2024-12-28 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120058', 'tblTempVendorCDR_20' ) start [2024-12-28 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120058', 'tblTempVendorCDR_20' ) end [2024-12-28 07:39:19] Production.INFO: ProcessCDR(1,14120058,1,1,2) [2024-12-28 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120058', 'tblTempUsageDetail_20' ) start [2024-12-28 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120058', 'tblTempUsageDetail_20' ) end [2024-12-28 07:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:39:22] Production.INFO: ==21338== Releasing lock... [2024-12-28 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:39:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:40:05 [end_date_ymd] => 2024-12-28 07:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:40:05' and `end` < '2024-12-28 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-28 07:40:18] Production.INFO: count ==21 [2024-12-28 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:40:05 - End Time 2024-12-28 07:40:05 [2024-12-28 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120063', 'tblTempUsageDetail_20' ) start [2024-12-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120063', 'tblTempUsageDetail_20' ) end [2024-12-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120063', 'tblTempVendorCDR_20' ) start [2024-12-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120063', 'tblTempVendorCDR_20' ) end [2024-12-28 07:40:18] Production.INFO: ProcessCDR(1,14120063,1,1,2) [2024-12-28 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120063', 'tblTempUsageDetail_20' ) start [2024-12-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120063', 'tblTempUsageDetail_20' ) end [2024-12-28 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:40:21] Production.INFO: ==21415== Releasing lock... [2024-12-28 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:41:05 [end_date_ymd] => 2024-12-28 07:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:41:05' and `end` < '2024-12-28 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-28 07:41:19] Production.INFO: count ==26 [2024-12-28 07:41:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:41:05 - End Time 2024-12-28 07:41:05 [2024-12-28 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120069', 'tblTempUsageDetail_20' ) start [2024-12-28 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120069', 'tblTempUsageDetail_20' ) end [2024-12-28 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120069', 'tblTempVendorCDR_20' ) start [2024-12-28 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120069', 'tblTempVendorCDR_20' ) end [2024-12-28 07:41:19] Production.INFO: ProcessCDR(1,14120069,1,1,2) [2024-12-28 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120069', 'tblTempUsageDetail_20' ) start [2024-12-28 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120069', 'tblTempUsageDetail_20' ) end [2024-12-28 07:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:41:23] Production.INFO: ==21490== Releasing lock... [2024-12-28 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:41:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:42:05 [end_date_ymd] => 2024-12-28 07:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:42:05' and `end` < '2024-12-28 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-28 07:42:18] Production.INFO: count ==26 [2024-12-28 07:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:42:05 - End Time 2024-12-28 07:42:05 [2024-12-28 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120074', 'tblTempUsageDetail_20' ) start [2024-12-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120074', 'tblTempUsageDetail_20' ) end [2024-12-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120074', 'tblTempVendorCDR_20' ) start [2024-12-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120074', 'tblTempVendorCDR_20' ) end [2024-12-28 07:42:18] Production.INFO: ProcessCDR(1,14120074,1,1,2) [2024-12-28 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120074', 'tblTempUsageDetail_20' ) start [2024-12-28 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120074', 'tblTempUsageDetail_20' ) end [2024-12-28 07:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:42:22] Production.INFO: ==21564== Releasing lock... [2024-12-28 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:42:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:43:05 [end_date_ymd] => 2024-12-28 07:43:05 [RateCDR] => 1 ) [2024-12-28 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:43:05' and `end` < '2024-12-28 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:43:18] Production.INFO: count ==26 [2024-12-28 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:43:05 - End Time 2024-12-28 07:43:05 [2024-12-28 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120079', 'tblTempUsageDetail_20' ) start [2024-12-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120079', 'tblTempUsageDetail_20' ) end [2024-12-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120079', 'tblTempVendorCDR_20' ) start [2024-12-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120079', 'tblTempVendorCDR_20' ) end [2024-12-28 07:43:18] Production.INFO: ProcessCDR(1,14120079,1,1,2) [2024-12-28 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120079', 'tblTempUsageDetail_20' ) start [2024-12-28 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120079', 'tblTempUsageDetail_20' ) end [2024-12-28 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:43:21] Production.INFO: ==21641== Releasing lock... [2024-12-28 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:44:05 [end_date_ymd] => 2024-12-28 07:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:44:05' and `end` < '2024-12-28 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-28 07:44:18] Production.INFO: count ==26 [2024-12-28 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:44:05 - End Time 2024-12-28 07:44:05 [2024-12-28 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120084', 'tblTempUsageDetail_20' ) start [2024-12-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120084', 'tblTempUsageDetail_20' ) end [2024-12-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120084', 'tblTempVendorCDR_20' ) start [2024-12-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120084', 'tblTempVendorCDR_20' ) end [2024-12-28 07:44:18] Production.INFO: ProcessCDR(1,14120084,1,1,2) [2024-12-28 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120084', 'tblTempUsageDetail_20' ) start [2024-12-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120084', 'tblTempUsageDetail_20' ) end [2024-12-28 07:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:44:21] Production.INFO: ==21715== Releasing lock... [2024-12-28 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:45:05 [end_date_ymd] => 2024-12-28 07:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:45:05' and `end` < '2024-12-28 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-28 07:45:18] Production.INFO: count ==26 [2024-12-28 07:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:45:05 - End Time 2024-12-28 07:45:05 [2024-12-28 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120089', 'tblTempUsageDetail_20' ) start [2024-12-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120089', 'tblTempUsageDetail_20' ) end [2024-12-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120089', 'tblTempVendorCDR_20' ) start [2024-12-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120089', 'tblTempVendorCDR_20' ) end [2024-12-28 07:45:18] Production.INFO: ProcessCDR(1,14120089,1,1,2) [2024-12-28 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120089', 'tblTempUsageDetail_20' ) start [2024-12-28 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120089', 'tblTempUsageDetail_20' ) end [2024-12-28 07:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:45:21] Production.INFO: ==21791== Releasing lock... [2024-12-28 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:46:05 [end_date_ymd] => 2024-12-28 07:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:46:05' and `end` < '2024-12-28 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-28 07:46:18] Production.INFO: count ==26 [2024-12-28 07:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:46:05 - End Time 2024-12-28 07:46:05 [2024-12-28 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120094', 'tblTempUsageDetail_20' ) start [2024-12-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120094', 'tblTempUsageDetail_20' ) end [2024-12-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120094', 'tblTempVendorCDR_20' ) start [2024-12-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120094', 'tblTempVendorCDR_20' ) end [2024-12-28 07:46:18] Production.INFO: ProcessCDR(1,14120094,1,1,2) [2024-12-28 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120094', 'tblTempUsageDetail_20' ) start [2024-12-28 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120094', 'tblTempUsageDetail_20' ) end [2024-12-28 07:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:46:21] Production.INFO: ==21870== Releasing lock... [2024-12-28 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:47:05 [end_date_ymd] => 2024-12-28 07:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:47:05' and `end` < '2024-12-28 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-28 07:47:18] Production.INFO: count ==26 [2024-12-28 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:47:05 - End Time 2024-12-28 07:47:05 [2024-12-28 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120099', 'tblTempUsageDetail_20' ) start [2024-12-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120099', 'tblTempUsageDetail_20' ) end [2024-12-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120099', 'tblTempVendorCDR_20' ) start [2024-12-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120099', 'tblTempVendorCDR_20' ) end [2024-12-28 07:47:18] Production.INFO: ProcessCDR(1,14120099,1,1,2) [2024-12-28 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120099', 'tblTempUsageDetail_20' ) start [2024-12-28 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120099', 'tblTempUsageDetail_20' ) end [2024-12-28 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:47:21] Production.INFO: ==21945== Releasing lock... [2024-12-28 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:48:04 [end_date_ymd] => 2024-12-28 07:48:04 [RateCDR] => 1 ) [2024-12-28 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-28 04:48:04' and `end` < '2024-12-28 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-28 07:48:16] Production.INFO: count ==26 [2024-12-28 07:48:16] Production.ERROR: pbx CDR StartTime 2024-12-28 04:48:04 - End Time 2024-12-28 07:48:04 [2024-12-28 07:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120104', 'tblTempUsageDetail_20' ) start [2024-12-28 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120104', 'tblTempUsageDetail_20' ) end [2024-12-28 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120104', 'tblTempVendorCDR_20' ) start [2024-12-28 07:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120104', 'tblTempVendorCDR_20' ) end [2024-12-28 07:48:16] Production.INFO: ProcessCDR(1,14120104,1,1,2) [2024-12-28 07:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120104', 'tblTempUsageDetail_20' ) start [2024-12-28 07:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120104', 'tblTempUsageDetail_20' ) end [2024-12-28 07:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:48:19] Production.INFO: ==22024== Releasing lock... [2024-12-28 07:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:48:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:49:05 [end_date_ymd] => 2024-12-28 07:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:49:05' and `end` < '2024-12-28 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-28 07:49:18] Production.INFO: count ==26 [2024-12-28 07:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:49:05 - End Time 2024-12-28 07:49:05 [2024-12-28 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120109', 'tblTempUsageDetail_20' ) start [2024-12-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120109', 'tblTempUsageDetail_20' ) end [2024-12-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120109', 'tblTempVendorCDR_20' ) start [2024-12-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120109', 'tblTempVendorCDR_20' ) end [2024-12-28 07:49:18] Production.INFO: ProcessCDR(1,14120109,1,1,2) [2024-12-28 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120109', 'tblTempUsageDetail_20' ) start [2024-12-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120109', 'tblTempUsageDetail_20' ) end [2024-12-28 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:49:21] Production.INFO: ==22109== Releasing lock... [2024-12-28 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:50:06 [end_date_ymd] => 2024-12-28 07:50:06 [RateCDR] => 1 ) [2024-12-28 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-28 04:50:06' and `end` < '2024-12-28 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-28 07:50:19] Production.INFO: count ==18 [2024-12-28 07:50:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:50:06 - End Time 2024-12-28 07:50:06 [2024-12-28 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120115', 'tblTempUsageDetail_20' ) start [2024-12-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120115', 'tblTempUsageDetail_20' ) end [2024-12-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120115', 'tblTempVendorCDR_20' ) start [2024-12-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120115', 'tblTempVendorCDR_20' ) end [2024-12-28 07:50:19] Production.INFO: ProcessCDR(1,14120115,1,1,2) [2024-12-28 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120115', 'tblTempUsageDetail_20' ) start [2024-12-28 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120115', 'tblTempUsageDetail_20' ) end [2024-12-28 07:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:50:22] Production.INFO: ==22189== Releasing lock... [2024-12-28 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:50:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:51:04 [end_date_ymd] => 2024-12-28 07:51:04 [RateCDR] => 1 ) [2024-12-28 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:51:04' and `end` < '2024-12-28 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-28 07:51:17] Production.INFO: count ==16 [2024-12-28 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:51:04 - End Time 2024-12-28 07:51:04 [2024-12-28 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120120', 'tblTempUsageDetail_20' ) start [2024-12-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120120', 'tblTempUsageDetail_20' ) end [2024-12-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120120', 'tblTempVendorCDR_20' ) start [2024-12-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120120', 'tblTempVendorCDR_20' ) end [2024-12-28 07:51:17] Production.INFO: ProcessCDR(1,14120120,1,1,2) [2024-12-28 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120120', 'tblTempUsageDetail_20' ) start [2024-12-28 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120120', 'tblTempUsageDetail_20' ) end [2024-12-28 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:51:20] Production.INFO: ==22266== Releasing lock... [2024-12-28 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:52:05 [end_date_ymd] => 2024-12-28 07:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:52:05' and `end` < '2024-12-28 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-28 07:52:19] Production.INFO: count ==16 [2024-12-28 07:52:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:52:05 - End Time 2024-12-28 07:52:05 [2024-12-28 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120125', 'tblTempUsageDetail_20' ) start [2024-12-28 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120125', 'tblTempUsageDetail_20' ) end [2024-12-28 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120125', 'tblTempVendorCDR_20' ) start [2024-12-28 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120125', 'tblTempVendorCDR_20' ) end [2024-12-28 07:52:19] Production.INFO: ProcessCDR(1,14120125,1,1,2) [2024-12-28 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120125', 'tblTempUsageDetail_20' ) start [2024-12-28 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120125', 'tblTempUsageDetail_20' ) end [2024-12-28 07:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:52:22] Production.INFO: ==22349== Releasing lock... [2024-12-28 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:52:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:53:04 [end_date_ymd] => 2024-12-28 07:53:04 [RateCDR] => 1 ) [2024-12-28 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-28 04:53:04' and `end` < '2024-12-28 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-28 07:53:17] Production.INFO: count ==16 [2024-12-28 07:53:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:53:04 - End Time 2024-12-28 07:53:04 [2024-12-28 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120130', 'tblTempUsageDetail_20' ) start [2024-12-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120130', 'tblTempUsageDetail_20' ) end [2024-12-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120130', 'tblTempVendorCDR_20' ) start [2024-12-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120130', 'tblTempVendorCDR_20' ) end [2024-12-28 07:53:17] Production.INFO: ProcessCDR(1,14120130,1,1,2) [2024-12-28 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120130', 'tblTempUsageDetail_20' ) start [2024-12-28 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120130', 'tblTempUsageDetail_20' ) end [2024-12-28 07:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:53:20] Production.INFO: ==22428== Releasing lock... [2024-12-28 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:54:05 [end_date_ymd] => 2024-12-28 07:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:54:05' and `end` < '2024-12-28 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-28 07:54:18] Production.INFO: count ==16 [2024-12-28 07:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:54:05 - End Time 2024-12-28 07:54:05 [2024-12-28 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120135', 'tblTempUsageDetail_20' ) start [2024-12-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120135', 'tblTempUsageDetail_20' ) end [2024-12-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120135', 'tblTempVendorCDR_20' ) start [2024-12-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120135', 'tblTempVendorCDR_20' ) end [2024-12-28 07:54:18] Production.INFO: ProcessCDR(1,14120135,1,1,2) [2024-12-28 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120135', 'tblTempUsageDetail_20' ) start [2024-12-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120135', 'tblTempUsageDetail_20' ) end [2024-12-28 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:54:21] Production.INFO: ==22550== Releasing lock... [2024-12-28 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:55:04 [end_date_ymd] => 2024-12-28 07:55:04 [RateCDR] => 1 ) [2024-12-28 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-28 04:55:04' and `end` < '2024-12-28 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-28 07:55:17] Production.INFO: count ==16 [2024-12-28 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 04:55:04 - End Time 2024-12-28 07:55:04 [2024-12-28 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120140', 'tblTempUsageDetail_20' ) start [2024-12-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120140', 'tblTempUsageDetail_20' ) end [2024-12-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120140', 'tblTempVendorCDR_20' ) start [2024-12-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120140', 'tblTempVendorCDR_20' ) end [2024-12-28 07:55:17] Production.INFO: ProcessCDR(1,14120140,1,1,2) [2024-12-28 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120140', 'tblTempUsageDetail_20' ) start [2024-12-28 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120140', 'tblTempUsageDetail_20' ) end [2024-12-28 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:55:20] Production.INFO: ==22632== Releasing lock... [2024-12-28 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:56:05 [end_date_ymd] => 2024-12-28 07:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:56:05' and `end` < '2024-12-28 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-28 07:56:19] Production.INFO: count ==16 [2024-12-28 07:56:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:56:05 - End Time 2024-12-28 07:56:05 [2024-12-28 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120145', 'tblTempUsageDetail_20' ) start [2024-12-28 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120145', 'tblTempUsageDetail_20' ) end [2024-12-28 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120145', 'tblTempVendorCDR_20' ) start [2024-12-28 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120145', 'tblTempVendorCDR_20' ) end [2024-12-28 07:56:19] Production.INFO: ProcessCDR(1,14120145,1,1,2) [2024-12-28 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120145', 'tblTempUsageDetail_20' ) start [2024-12-28 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120145', 'tblTempUsageDetail_20' ) end [2024-12-28 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:56:22] Production.INFO: ==22718== Releasing lock... [2024-12-28 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:56:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:57:05 [end_date_ymd] => 2024-12-28 07:57:05 [RateCDR] => 1 ) [2024-12-28 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:57:05' and `end` < '2024-12-28 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:57:19] Production.INFO: count ==16 [2024-12-28 07:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 04:57:05 - End Time 2024-12-28 07:57:05 [2024-12-28 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120150', 'tblTempUsageDetail_20' ) start [2024-12-28 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120150', 'tblTempUsageDetail_20' ) end [2024-12-28 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120150', 'tblTempVendorCDR_20' ) start [2024-12-28 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120150', 'tblTempVendorCDR_20' ) end [2024-12-28 07:57:19] Production.INFO: ProcessCDR(1,14120150,1,1,2) [2024-12-28 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120150', 'tblTempUsageDetail_20' ) start [2024-12-28 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120150', 'tblTempUsageDetail_20' ) end [2024-12-28 07:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:57:22] Production.INFO: ==22803== Releasing lock... [2024-12-28 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:57:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:58:05 [end_date_ymd] => 2024-12-28 07:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 04:58:05' and `end` < '2024-12-28 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-28 07:58:18] Production.INFO: count ==18 [2024-12-28 07:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:58:05 - End Time 2024-12-28 07:58:05 [2024-12-28 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120155', 'tblTempUsageDetail_20' ) start [2024-12-28 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120155', 'tblTempUsageDetail_20' ) end [2024-12-28 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120155', 'tblTempVendorCDR_20' ) start [2024-12-28 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120155', 'tblTempVendorCDR_20' ) end [2024-12-28 07:58:18] Production.INFO: ProcessCDR(1,14120155,1,1,2) [2024-12-28 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120155', 'tblTempUsageDetail_20' ) start [2024-12-28 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120155', 'tblTempUsageDetail_20' ) end [2024-12-28 07:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:58:23] Production.INFO: ==22885== Releasing lock... [2024-12-28 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:58:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 04:59:05 [end_date_ymd] => 2024-12-28 07:59:05 [RateCDR] => 1 ) [2024-12-28 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 04:59:05' and `end` < '2024-12-28 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 07:59:18] Production.INFO: count ==19 [2024-12-28 07:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 04:59:05 - End Time 2024-12-28 07:59:05 [2024-12-28 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120160', 'tblTempUsageDetail_20' ) start [2024-12-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120160', 'tblTempUsageDetail_20' ) end [2024-12-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120160', 'tblTempVendorCDR_20' ) start [2024-12-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120160', 'tblTempVendorCDR_20' ) end [2024-12-28 07:59:18] Production.INFO: ProcessCDR(1,14120160,1,1,2) [2024-12-28 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120160', 'tblTempUsageDetail_20' ) start [2024-12-28 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120160', 'tblTempUsageDetail_20' ) end [2024-12-28 07:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 07:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 07:59:23] Production.INFO: ==22964== Releasing lock... [2024-12-28 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 07:59:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:00:05 [end_date_ymd] => 2024-12-28 08:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:00:05' and `end` < '2024-12-28 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-28 08:00:18] Production.INFO: count ==23 [2024-12-28 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:00:05 - End Time 2024-12-28 08:00:05 [2024-12-28 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120166', 'tblTempUsageDetail_20' ) start [2024-12-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120166', 'tblTempUsageDetail_20' ) end [2024-12-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120166', 'tblTempVendorCDR_20' ) start [2024-12-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120166', 'tblTempVendorCDR_20' ) end [2024-12-28 08:00:18] Production.INFO: ProcessCDR(1,14120166,1,1,2) [2024-12-28 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120166', 'tblTempUsageDetail_20' ) start [2024-12-28 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120166', 'tblTempUsageDetail_20' ) end [2024-12-28 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:00:21] Production.INFO: ==23051== Releasing lock... [2024-12-28 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:01:05 [end_date_ymd] => 2024-12-28 08:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:01:05' and `end` < '2024-12-28 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-28 08:01:17] Production.INFO: count ==26 [2024-12-28 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:01:05 - End Time 2024-12-28 08:01:05 [2024-12-28 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120171', 'tblTempUsageDetail_20' ) start [2024-12-28 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120171', 'tblTempUsageDetail_20' ) end [2024-12-28 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120171', 'tblTempVendorCDR_20' ) start [2024-12-28 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120171', 'tblTempVendorCDR_20' ) end [2024-12-28 08:01:17] Production.INFO: ProcessCDR(1,14120171,1,1,2) [2024-12-28 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120171', 'tblTempUsageDetail_20' ) start [2024-12-28 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120171', 'tblTempUsageDetail_20' ) end [2024-12-28 08:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:01:22] Production.INFO: ==23145== Releasing lock... [2024-12-28 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:01:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:02:04 [end_date_ymd] => 2024-12-28 08:02:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:02:04' and `end` < '2024-12-28 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-28 08:02:18] Production.INFO: count ==26 [2024-12-28 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:02:04 - End Time 2024-12-28 08:02:04 [2024-12-28 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120176', 'tblTempUsageDetail_20' ) start [2024-12-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120176', 'tblTempUsageDetail_20' ) end [2024-12-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120176', 'tblTempVendorCDR_20' ) start [2024-12-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120176', 'tblTempVendorCDR_20' ) end [2024-12-28 08:02:18] Production.INFO: ProcessCDR(1,14120176,1,1,2) [2024-12-28 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120176', 'tblTempUsageDetail_20' ) start [2024-12-28 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120176', 'tblTempUsageDetail_20' ) end [2024-12-28 08:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:02:21] Production.INFO: ==23225== Releasing lock... [2024-12-28 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:03:05 [end_date_ymd] => 2024-12-28 08:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:03:05' and `end` < '2024-12-28 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-28 08:03:17] Production.INFO: count ==26 [2024-12-28 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:03:05 - End Time 2024-12-28 08:03:05 [2024-12-28 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120181', 'tblTempUsageDetail_20' ) start [2024-12-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120181', 'tblTempUsageDetail_20' ) end [2024-12-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120181', 'tblTempVendorCDR_20' ) start [2024-12-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120181', 'tblTempVendorCDR_20' ) end [2024-12-28 08:03:17] Production.INFO: ProcessCDR(1,14120181,1,1,2) [2024-12-28 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120181', 'tblTempUsageDetail_20' ) start [2024-12-28 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120181', 'tblTempUsageDetail_20' ) end [2024-12-28 08:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:03:20] Production.INFO: ==23310== Releasing lock... [2024-12-28 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:04:05 [end_date_ymd] => 2024-12-28 08:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:04:05' and `end` < '2024-12-28 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-28 08:04:17] Production.INFO: count ==26 [2024-12-28 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:04:05 - End Time 2024-12-28 08:04:05 [2024-12-28 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120186', 'tblTempUsageDetail_20' ) start [2024-12-28 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120186', 'tblTempUsageDetail_20' ) end [2024-12-28 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120186', 'tblTempVendorCDR_20' ) start [2024-12-28 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120186', 'tblTempVendorCDR_20' ) end [2024-12-28 08:04:17] Production.INFO: ProcessCDR(1,14120186,1,1,2) [2024-12-28 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120186', 'tblTempUsageDetail_20' ) start [2024-12-28 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120186', 'tblTempUsageDetail_20' ) end [2024-12-28 08:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:04:20] Production.INFO: ==23389== Releasing lock... [2024-12-28 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:05:04 [end_date_ymd] => 2024-12-28 08:05:04 [RateCDR] => 1 ) [2024-12-28 08: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-28 05:05:04' and `end` < '2024-12-28 08: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-28 08:05:17] Production.INFO: count ==26 [2024-12-28 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:05:04 - End Time 2024-12-28 08:05:04 [2024-12-28 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120191', 'tblTempUsageDetail_20' ) start [2024-12-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120191', 'tblTempUsageDetail_20' ) end [2024-12-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120191', 'tblTempVendorCDR_20' ) start [2024-12-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120191', 'tblTempVendorCDR_20' ) end [2024-12-28 08:05:17] Production.INFO: ProcessCDR(1,14120191,1,1,2) [2024-12-28 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120191', 'tblTempUsageDetail_20' ) start [2024-12-28 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120191', 'tblTempUsageDetail_20' ) end [2024-12-28 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:05:20] Production.INFO: ==23471== Releasing lock... [2024-12-28 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:06:05 [end_date_ymd] => 2024-12-28 08:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:06:05' and `end` < '2024-12-28 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-28 08:06:18] Production.INFO: count ==27 [2024-12-28 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:06:05 - End Time 2024-12-28 08:06:05 [2024-12-28 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120196', 'tblTempUsageDetail_20' ) start [2024-12-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120196', 'tblTempUsageDetail_20' ) end [2024-12-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120196', 'tblTempVendorCDR_20' ) start [2024-12-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120196', 'tblTempVendorCDR_20' ) end [2024-12-28 08:06:18] Production.INFO: ProcessCDR(1,14120196,1,1,2) [2024-12-28 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120196', 'tblTempUsageDetail_20' ) start [2024-12-28 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120196', 'tblTempUsageDetail_20' ) end [2024-12-28 08:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:06:23] Production.INFO: ==23554== Releasing lock... [2024-12-28 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:06:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-28 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:07:04 [end_date_ymd] => 2024-12-28 08:07:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:07:04' and `end` < '2024-12-28 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-28 08:07:19] Production.INFO: count ==28 [2024-12-28 08:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:07:04 - End Time 2024-12-28 08:07:04 [2024-12-28 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120201', 'tblTempUsageDetail_20' ) start [2024-12-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120201', 'tblTempUsageDetail_20' ) end [2024-12-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120201', 'tblTempVendorCDR_20' ) start [2024-12-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120201', 'tblTempVendorCDR_20' ) end [2024-12-28 08:07:19] Production.INFO: ProcessCDR(1,14120201,1,1,2) [2024-12-28 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120201', 'tblTempUsageDetail_20' ) start [2024-12-28 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120201', 'tblTempUsageDetail_20' ) end [2024-12-28 08:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:07:22] Production.INFO: ==23637== Releasing lock... [2024-12-28 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:07:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:08:05 [end_date_ymd] => 2024-12-28 08:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:08:05' and `end` < '2024-12-28 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-28 08:08:20] Production.INFO: count ==33 [2024-12-28 08:08:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:08:05 - End Time 2024-12-28 08:08:05 [2024-12-28 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120206', 'tblTempUsageDetail_20' ) start [2024-12-28 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120206', 'tblTempUsageDetail_20' ) end [2024-12-28 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120206', 'tblTempVendorCDR_20' ) start [2024-12-28 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120206', 'tblTempVendorCDR_20' ) end [2024-12-28 08:08:20] Production.INFO: ProcessCDR(1,14120206,1,1,2) [2024-12-28 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120206', 'tblTempUsageDetail_20' ) start [2024-12-28 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120206', 'tblTempUsageDetail_20' ) end [2024-12-28 08:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:08:23] Production.INFO: ==23717== Releasing lock... [2024-12-28 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:08:23] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:09:05 [end_date_ymd] => 2024-12-28 08:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:09:05' and `end` < '2024-12-28 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-28 08:09:18] Production.INFO: count ==33 [2024-12-28 08:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:09:05 - End Time 2024-12-28 08:09:05 [2024-12-28 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120211', 'tblTempUsageDetail_20' ) start [2024-12-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120211', 'tblTempUsageDetail_20' ) end [2024-12-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120211', 'tblTempVendorCDR_20' ) start [2024-12-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120211', 'tblTempVendorCDR_20' ) end [2024-12-28 08:09:18] Production.INFO: ProcessCDR(1,14120211,1,1,2) [2024-12-28 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120211', 'tblTempUsageDetail_20' ) start [2024-12-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120211', 'tblTempUsageDetail_20' ) end [2024-12-28 08:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:09:21] Production.INFO: ==23794== Releasing lock... [2024-12-28 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:09:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:10:05 [end_date_ymd] => 2024-12-28 08:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:10:05' and `end` < '2024-12-28 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-28 08:10:18] Production.INFO: count ==33 [2024-12-28 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:10:05 - End Time 2024-12-28 08:10:05 [2024-12-28 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120217', 'tblTempUsageDetail_20' ) start [2024-12-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120217', 'tblTempUsageDetail_20' ) end [2024-12-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120217', 'tblTempVendorCDR_20' ) start [2024-12-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120217', 'tblTempVendorCDR_20' ) end [2024-12-28 08:10:18] Production.INFO: ProcessCDR(1,14120217,1,1,2) [2024-12-28 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120217', 'tblTempUsageDetail_20' ) start [2024-12-28 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120217', 'tblTempUsageDetail_20' ) end [2024-12-28 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:10:21] Production.INFO: ==23928== Releasing lock... [2024-12-28 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:11:05 [end_date_ymd] => 2024-12-28 08:11:05 [RateCDR] => 1 ) [2024-12-28 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:11:05' and `end` < '2024-12-28 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:11:17] Production.INFO: count ==33 [2024-12-28 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:11:05 - End Time 2024-12-28 08:11:05 [2024-12-28 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120222', 'tblTempUsageDetail_20' ) start [2024-12-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120222', 'tblTempUsageDetail_20' ) end [2024-12-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120222', 'tblTempVendorCDR_20' ) start [2024-12-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120222', 'tblTempVendorCDR_20' ) end [2024-12-28 08:11:17] Production.INFO: ProcessCDR(1,14120222,1,1,2) [2024-12-28 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120222', 'tblTempUsageDetail_20' ) start [2024-12-28 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120222', 'tblTempUsageDetail_20' ) end [2024-12-28 08:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:11:21] Production.INFO: ==24053== Releasing lock... [2024-12-28 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:12:04 [end_date_ymd] => 2024-12-28 08:12:04 [RateCDR] => 1 ) [2024-12-28 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:12:04' and `end` < '2024-12-28 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:12:18] Production.INFO: count ==34 [2024-12-28 08:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:12:04 - End Time 2024-12-28 08:12:04 [2024-12-28 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120227', 'tblTempUsageDetail_20' ) start [2024-12-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120227', 'tblTempUsageDetail_20' ) end [2024-12-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120227', 'tblTempVendorCDR_20' ) start [2024-12-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120227', 'tblTempVendorCDR_20' ) end [2024-12-28 08:12:18] Production.INFO: ProcessCDR(1,14120227,1,1,2) [2024-12-28 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120227', 'tblTempUsageDetail_20' ) start [2024-12-28 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120227', 'tblTempUsageDetail_20' ) end [2024-12-28 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:12:21] Production.INFO: ==24160== Releasing lock... [2024-12-28 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:13:05 [end_date_ymd] => 2024-12-28 08:13:05 [RateCDR] => 1 ) [2024-12-28 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:13:05' and `end` < '2024-12-28 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:13:18] Production.INFO: count ==34 [2024-12-28 08:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:13:05 - End Time 2024-12-28 08:13:05 [2024-12-28 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120232', 'tblTempUsageDetail_20' ) start [2024-12-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120232', 'tblTempUsageDetail_20' ) end [2024-12-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120232', 'tblTempVendorCDR_20' ) start [2024-12-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120232', 'tblTempVendorCDR_20' ) end [2024-12-28 08:13:18] Production.INFO: ProcessCDR(1,14120232,1,1,2) [2024-12-28 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120232', 'tblTempUsageDetail_20' ) start [2024-12-28 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120232', 'tblTempUsageDetail_20' ) end [2024-12-28 08:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:13:21] Production.INFO: ==24244== Releasing lock... [2024-12-28 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:14:05 [end_date_ymd] => 2024-12-28 08:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:14:05' and `end` < '2024-12-28 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-28 08:14:19] Production.INFO: count ==35 [2024-12-28 08:14:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:14:05 - End Time 2024-12-28 08:14:05 [2024-12-28 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120237', 'tblTempUsageDetail_20' ) start [2024-12-28 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120237', 'tblTempUsageDetail_20' ) end [2024-12-28 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120237', 'tblTempVendorCDR_20' ) start [2024-12-28 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120237', 'tblTempVendorCDR_20' ) end [2024-12-28 08:14:19] Production.INFO: ProcessCDR(1,14120237,1,1,2) [2024-12-28 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120237', 'tblTempUsageDetail_20' ) start [2024-12-28 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120237', 'tblTempUsageDetail_20' ) end [2024-12-28 08:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:14:22] Production.INFO: ==24324== Releasing lock... [2024-12-28 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:14:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:15:04 [end_date_ymd] => 2024-12-28 08:15:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:15:04' and `end` < '2024-12-28 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-28 08:15:17] Production.INFO: count ==35 [2024-12-28 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:15:04 - End Time 2024-12-28 08:15:04 [2024-12-28 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120242', 'tblTempUsageDetail_20' ) start [2024-12-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120242', 'tblTempUsageDetail_20' ) end [2024-12-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120242', 'tblTempVendorCDR_20' ) start [2024-12-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120242', 'tblTempVendorCDR_20' ) end [2024-12-28 08:15:17] Production.INFO: ProcessCDR(1,14120242,1,1,2) [2024-12-28 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120242', 'tblTempUsageDetail_20' ) start [2024-12-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120242', 'tblTempUsageDetail_20' ) end [2024-12-28 08:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:15:20] Production.INFO: ==24400== Releasing lock... [2024-12-28 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:16:05 [end_date_ymd] => 2024-12-28 08:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:16:05' and `end` < '2024-12-28 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-28 08:16:19] Production.INFO: count ==41 [2024-12-28 08:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:16:05 - End Time 2024-12-28 08:16:05 [2024-12-28 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120247', 'tblTempUsageDetail_20' ) start [2024-12-28 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120247', 'tblTempUsageDetail_20' ) end [2024-12-28 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120247', 'tblTempVendorCDR_20' ) start [2024-12-28 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120247', 'tblTempVendorCDR_20' ) end [2024-12-28 08:16:19] Production.INFO: ProcessCDR(1,14120247,1,1,2) [2024-12-28 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120247', 'tblTempUsageDetail_20' ) start [2024-12-28 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120247', 'tblTempUsageDetail_20' ) end [2024-12-28 08:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:16:24] Production.INFO: ==24484== Releasing lock... [2024-12-28 08:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:16:24] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:17:04 [end_date_ymd] => 2024-12-28 08:17:04 [RateCDR] => 1 ) [2024-12-28 08: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-28 05:17:04' and `end` < '2024-12-28 08: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-28 08:17:17] Production.INFO: count ==42 [2024-12-28 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:17:04 - End Time 2024-12-28 08:17:04 [2024-12-28 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120252', 'tblTempUsageDetail_20' ) start [2024-12-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120252', 'tblTempUsageDetail_20' ) end [2024-12-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120252', 'tblTempVendorCDR_20' ) start [2024-12-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120252', 'tblTempVendorCDR_20' ) end [2024-12-28 08:17:17] Production.INFO: ProcessCDR(1,14120252,1,1,2) [2024-12-28 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120252', 'tblTempUsageDetail_20' ) start [2024-12-28 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120252', 'tblTempUsageDetail_20' ) end [2024-12-28 08:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:17:20] Production.INFO: ==24572== Releasing lock... [2024-12-28 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:18:05 [end_date_ymd] => 2024-12-28 08:18:05 [RateCDR] => 1 ) [2024-12-28 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:18:05' and `end` < '2024-12-28 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:18:18] Production.INFO: count ==47 [2024-12-28 08:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:18:05 - End Time 2024-12-28 08:18:05 [2024-12-28 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120257', 'tblTempUsageDetail_20' ) start [2024-12-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120257', 'tblTempUsageDetail_20' ) end [2024-12-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120257', 'tblTempVendorCDR_20' ) start [2024-12-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120257', 'tblTempVendorCDR_20' ) end [2024-12-28 08:18:18] Production.INFO: ProcessCDR(1,14120257,1,1,2) [2024-12-28 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120257', 'tblTempUsageDetail_20' ) start [2024-12-28 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120257', 'tblTempUsageDetail_20' ) end [2024-12-28 08:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:18:21] Production.INFO: ==24651== Releasing lock... [2024-12-28 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:18:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:19:05 [end_date_ymd] => 2024-12-28 08:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:19:05' and `end` < '2024-12-28 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-28 08:19:17] Production.INFO: count ==47 [2024-12-28 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:19:05 - End Time 2024-12-28 08:19:05 [2024-12-28 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120262', 'tblTempUsageDetail_20' ) start [2024-12-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120262', 'tblTempUsageDetail_20' ) end [2024-12-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120262', 'tblTempVendorCDR_20' ) start [2024-12-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120262', 'tblTempVendorCDR_20' ) end [2024-12-28 08:19:17] Production.INFO: ProcessCDR(1,14120262,1,1,2) [2024-12-28 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120262', 'tblTempUsageDetail_20' ) start [2024-12-28 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120262', 'tblTempUsageDetail_20' ) end [2024-12-28 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:19:21] Production.INFO: ==24730== Releasing lock... [2024-12-28 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:20:05 [end_date_ymd] => 2024-12-28 08:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:20:05' and `end` < '2024-12-28 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-28 08:20:19] Production.INFO: count ==53 [2024-12-28 08:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:20:05 - End Time 2024-12-28 08:20:05 [2024-12-28 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120267', 'tblTempUsageDetail_20' ) start [2024-12-28 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120267', 'tblTempUsageDetail_20' ) end [2024-12-28 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120267', 'tblTempVendorCDR_20' ) start [2024-12-28 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120267', 'tblTempVendorCDR_20' ) end [2024-12-28 08:20:19] Production.INFO: ProcessCDR(1,14120267,1,1,2) [2024-12-28 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120267', 'tblTempUsageDetail_20' ) start [2024-12-28 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120267', 'tblTempUsageDetail_20' ) end [2024-12-28 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:20:22] Production.INFO: ==24806== Releasing lock... [2024-12-28 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:20:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:21:06 [end_date_ymd] => 2024-12-28 08:21:06 [RateCDR] => 1 ) [2024-12-28 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:21:06' and `end` < '2024-12-28 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:21:19] Production.INFO: count ==55 [2024-12-28 08:21:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:21:06 - End Time 2024-12-28 08:21:06 [2024-12-28 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120273', 'tblTempUsageDetail_20' ) start [2024-12-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120273', 'tblTempUsageDetail_20' ) end [2024-12-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120273', 'tblTempVendorCDR_20' ) start [2024-12-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120273', 'tblTempVendorCDR_20' ) end [2024-12-28 08:21:19] Production.INFO: ProcessCDR(1,14120273,1,1,2) [2024-12-28 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120273', 'tblTempUsageDetail_20' ) start [2024-12-28 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120273', 'tblTempUsageDetail_20' ) end [2024-12-28 08:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:21:22] Production.INFO: ==24893== Releasing lock... [2024-12-28 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:21:22] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:22:05 [end_date_ymd] => 2024-12-28 08:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:22:05' and `end` < '2024-12-28 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-28 08:22:17] Production.INFO: count ==55 [2024-12-28 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:22:05 - End Time 2024-12-28 08:22:05 [2024-12-28 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120278', 'tblTempUsageDetail_20' ) start [2024-12-28 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120278', 'tblTempUsageDetail_20' ) end [2024-12-28 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120278', 'tblTempVendorCDR_20' ) start [2024-12-28 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120278', 'tblTempVendorCDR_20' ) end [2024-12-28 08:22:17] Production.INFO: ProcessCDR(1,14120278,1,1,2) [2024-12-28 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120278', 'tblTempUsageDetail_20' ) start [2024-12-28 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120278', 'tblTempUsageDetail_20' ) end [2024-12-28 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:22:20] Production.INFO: ==24967== Releasing lock... [2024-12-28 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-28 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:23:05 [end_date_ymd] => 2024-12-28 08:23:05 [RateCDR] => 1 ) [2024-12-28 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:23:05' and `end` < '2024-12-28 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:23:20] Production.INFO: count ==69 [2024-12-28 08:23:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:23:05 - End Time 2024-12-28 08:23:05 [2024-12-28 08:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120283', 'tblTempUsageDetail_20' ) start [2024-12-28 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120283', 'tblTempUsageDetail_20' ) end [2024-12-28 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120283', 'tblTempVendorCDR_20' ) start [2024-12-28 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120283', 'tblTempVendorCDR_20' ) end [2024-12-28 08:23:20] Production.INFO: ProcessCDR(1,14120283,1,1,2) [2024-12-28 08:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120283', 'tblTempUsageDetail_20' ) start [2024-12-28 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120283', 'tblTempUsageDetail_20' ) end [2024-12-28 08:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:23:23] Production.INFO: ==25047== Releasing lock... [2024-12-28 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:23:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:24:04 [end_date_ymd] => 2024-12-28 08:24:04 [RateCDR] => 1 ) [2024-12-28 08:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:24:04' and `end` < '2024-12-28 08:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:24:17] Production.INFO: count ==69 [2024-12-28 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:24:04 - End Time 2024-12-28 08:24:04 [2024-12-28 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120288', 'tblTempUsageDetail_20' ) start [2024-12-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120288', 'tblTempUsageDetail_20' ) end [2024-12-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120288', 'tblTempVendorCDR_20' ) start [2024-12-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120288', 'tblTempVendorCDR_20' ) end [2024-12-28 08:24:17] Production.INFO: ProcessCDR(1,14120288,1,1,2) [2024-12-28 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120288', 'tblTempUsageDetail_20' ) start [2024-12-28 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120288', 'tblTempUsageDetail_20' ) end [2024-12-28 08:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:24:20] Production.INFO: ==25123== Releasing lock... [2024-12-28 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:25:04 [end_date_ymd] => 2024-12-28 08:25:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:25:04' and `end` < '2024-12-28 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-28 08:25:17] Production.INFO: count ==69 [2024-12-28 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:25:04 - End Time 2024-12-28 08:25:04 [2024-12-28 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120293', 'tblTempUsageDetail_20' ) start [2024-12-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120293', 'tblTempUsageDetail_20' ) end [2024-12-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120293', 'tblTempVendorCDR_20' ) start [2024-12-28 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120293', 'tblTempVendorCDR_20' ) end [2024-12-28 08:25:17] Production.INFO: ProcessCDR(1,14120293,1,1,2) [2024-12-28 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120293', 'tblTempUsageDetail_20' ) start [2024-12-28 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120293', 'tblTempUsageDetail_20' ) end [2024-12-28 08:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:25:20] Production.INFO: ==25203== Releasing lock... [2024-12-28 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:25:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:26:04 [end_date_ymd] => 2024-12-28 08:26:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:26:04' and `end` < '2024-12-28 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-28 08:26:17] Production.INFO: count ==75 [2024-12-28 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:26:04 - End Time 2024-12-28 08:26:04 [2024-12-28 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120298', 'tblTempUsageDetail_20' ) start [2024-12-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120298', 'tblTempUsageDetail_20' ) end [2024-12-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120298', 'tblTempVendorCDR_20' ) start [2024-12-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120298', 'tblTempVendorCDR_20' ) end [2024-12-28 08:26:17] Production.INFO: ProcessCDR(1,14120298,1,1,2) [2024-12-28 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120298', 'tblTempUsageDetail_20' ) start [2024-12-28 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120298', 'tblTempUsageDetail_20' ) end [2024-12-28 08:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:26:20] Production.INFO: ==25316== Releasing lock... [2024-12-28 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:27:04 [end_date_ymd] => 2024-12-28 08:27:04 [RateCDR] => 1 ) [2024-12-28 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-28 05:27:04' and `end` < '2024-12-28 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-28 08:27:17] Production.INFO: count ==75 [2024-12-28 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:27:04 - End Time 2024-12-28 08:27:04 [2024-12-28 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120303', 'tblTempUsageDetail_20' ) start [2024-12-28 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120303', 'tblTempUsageDetail_20' ) end [2024-12-28 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120303', 'tblTempVendorCDR_20' ) start [2024-12-28 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120303', 'tblTempVendorCDR_20' ) end [2024-12-28 08:27:17] Production.INFO: ProcessCDR(1,14120303,1,1,2) [2024-12-28 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120303', 'tblTempUsageDetail_20' ) start [2024-12-28 08:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120303', 'tblTempUsageDetail_20' ) end [2024-12-28 08:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:27:20] Production.INFO: ==25390== Releasing lock... [2024-12-28 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:28:05 [end_date_ymd] => 2024-12-28 08:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:28:05' and `end` < '2024-12-28 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-28 08:28:20] Production.INFO: count ==75 [2024-12-28 08:28:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:28:05 - End Time 2024-12-28 08:28:05 [2024-12-28 08:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120308', 'tblTempUsageDetail_20' ) start [2024-12-28 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120308', 'tblTempUsageDetail_20' ) end [2024-12-28 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120308', 'tblTempVendorCDR_20' ) start [2024-12-28 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120308', 'tblTempVendorCDR_20' ) end [2024-12-28 08:28:20] Production.INFO: ProcessCDR(1,14120308,1,1,2) [2024-12-28 08:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120308', 'tblTempUsageDetail_20' ) start [2024-12-28 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120308', 'tblTempUsageDetail_20' ) end [2024-12-28 08:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:28:23] Production.INFO: ==25469== Releasing lock... [2024-12-28 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:28:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-28 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:29:04 [end_date_ymd] => 2024-12-28 08:29:04 [RateCDR] => 1 ) [2024-12-28 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:29:04' and `end` < '2024-12-28 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:29:17] Production.INFO: count ==77 [2024-12-28 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:29:04 - End Time 2024-12-28 08:29:04 [2024-12-28 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120313', 'tblTempUsageDetail_20' ) start [2024-12-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120313', 'tblTempUsageDetail_20' ) end [2024-12-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120313', 'tblTempVendorCDR_20' ) start [2024-12-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120313', 'tblTempVendorCDR_20' ) end [2024-12-28 08:29:17] Production.INFO: ProcessCDR(1,14120313,1,1,2) [2024-12-28 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120313', 'tblTempUsageDetail_20' ) start [2024-12-28 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120313', 'tblTempUsageDetail_20' ) end [2024-12-28 08:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:29:20] Production.INFO: ==25546== Releasing lock... [2024-12-28 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:29:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:30:05 [end_date_ymd] => 2024-12-28 08:30:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:30:05' and `end` < '2024-12-28 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-28 08:30:18] Production.INFO: count ==86 [2024-12-28 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:30:05 - End Time 2024-12-28 08:30:05 [2024-12-28 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120319', 'tblTempUsageDetail_20' ) start [2024-12-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120319', 'tblTempUsageDetail_20' ) end [2024-12-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120319', 'tblTempVendorCDR_20' ) start [2024-12-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120319', 'tblTempVendorCDR_20' ) end [2024-12-28 08:30:18] Production.INFO: ProcessCDR(1,14120319,1,1,2) [2024-12-28 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120319', 'tblTempUsageDetail_20' ) start [2024-12-28 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120319', 'tblTempUsageDetail_20' ) end [2024-12-28 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:30:21] Production.INFO: ==25622== Releasing lock... [2024-12-28 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:30:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:31:04 [end_date_ymd] => 2024-12-28 08:31:04 [RateCDR] => 1 ) [2024-12-28 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:31:04' and `end` < '2024-12-28 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:31:18] Production.INFO: count ==91 [2024-12-28 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:31:04 - End Time 2024-12-28 08:31:04 [2024-12-28 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120324', 'tblTempUsageDetail_20' ) start [2024-12-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120324', 'tblTempUsageDetail_20' ) end [2024-12-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120324', 'tblTempVendorCDR_20' ) start [2024-12-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120324', 'tblTempVendorCDR_20' ) end [2024-12-28 08:31:18] Production.INFO: ProcessCDR(1,14120324,1,1,2) [2024-12-28 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120324', 'tblTempUsageDetail_20' ) start [2024-12-28 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120324', 'tblTempUsageDetail_20' ) end [2024-12-28 08:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:31:21] Production.INFO: ==25695== Releasing lock... [2024-12-28 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:31:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-28 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:32:05 [end_date_ymd] => 2024-12-28 08:32:05 [RateCDR] => 1 ) [2024-12-28 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:32:05' and `end` < '2024-12-28 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:32:17] Production.INFO: count ==113 [2024-12-28 08:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:32:05 - End Time 2024-12-28 08:32:05 [2024-12-28 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120329', 'tblTempUsageDetail_20' ) start [2024-12-28 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120329', 'tblTempUsageDetail_20' ) end [2024-12-28 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120329', 'tblTempVendorCDR_20' ) start [2024-12-28 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120329', 'tblTempVendorCDR_20' ) end [2024-12-28 08:32:17] Production.INFO: ProcessCDR(1,14120329,1,1,2) [2024-12-28 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120329', 'tblTempUsageDetail_20' ) start [2024-12-28 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120329', 'tblTempUsageDetail_20' ) end [2024-12-28 08:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:32:22] Production.INFO: ==25772== Releasing lock... [2024-12-28 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:32:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:33:04 [end_date_ymd] => 2024-12-28 08:33:04 [RateCDR] => 1 ) [2024-12-28 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:33:04' and `end` < '2024-12-28 08:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:33:18] Production.INFO: count ==113 [2024-12-28 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:33:04 - End Time 2024-12-28 08:33:04 [2024-12-28 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120334', 'tblTempUsageDetail_20' ) start [2024-12-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120334', 'tblTempUsageDetail_20' ) end [2024-12-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120334', 'tblTempVendorCDR_20' ) start [2024-12-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120334', 'tblTempVendorCDR_20' ) end [2024-12-28 08:33:18] Production.INFO: ProcessCDR(1,14120334,1,1,2) [2024-12-28 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120334', 'tblTempUsageDetail_20' ) start [2024-12-28 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120334', 'tblTempUsageDetail_20' ) end [2024-12-28 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:33:21] Production.INFO: ==25846== Releasing lock... [2024-12-28 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:33:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:34:05 [end_date_ymd] => 2024-12-28 08:34:05 [RateCDR] => 1 ) [2024-12-28 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:34:05' and `end` < '2024-12-28 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:34:19] Production.INFO: count ==113 [2024-12-28 08:34:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:34:05 - End Time 2024-12-28 08:34:05 [2024-12-28 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120339', 'tblTempUsageDetail_20' ) start [2024-12-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120339', 'tblTempUsageDetail_20' ) end [2024-12-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120339', 'tblTempVendorCDR_20' ) start [2024-12-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120339', 'tblTempVendorCDR_20' ) end [2024-12-28 08:34:19] Production.INFO: ProcessCDR(1,14120339,1,1,2) [2024-12-28 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120339', 'tblTempUsageDetail_20' ) start [2024-12-28 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120339', 'tblTempUsageDetail_20' ) end [2024-12-28 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:34:22] Production.INFO: ==25918== Releasing lock... [2024-12-28 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:34:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:35:05 [end_date_ymd] => 2024-12-28 08:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:35:05' and `end` < '2024-12-28 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-28 08:35:17] Production.INFO: count ==113 [2024-12-28 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:35:05 - End Time 2024-12-28 08:35:05 [2024-12-28 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120344', 'tblTempUsageDetail_20' ) start [2024-12-28 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120344', 'tblTempUsageDetail_20' ) end [2024-12-28 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120344', 'tblTempVendorCDR_20' ) start [2024-12-28 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120344', 'tblTempVendorCDR_20' ) end [2024-12-28 08:35:17] Production.INFO: ProcessCDR(1,14120344,1,1,2) [2024-12-28 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120344', 'tblTempUsageDetail_20' ) start [2024-12-28 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120344', 'tblTempUsageDetail_20' ) end [2024-12-28 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:35:20] Production.INFO: ==26000== Releasing lock... [2024-12-28 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:35:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:36:05 [end_date_ymd] => 2024-12-28 08:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:36:05' and `end` < '2024-12-28 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-28 08:36:19] Production.INFO: count ==113 [2024-12-28 08:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:36:05 - End Time 2024-12-28 08:36:05 [2024-12-28 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120349', 'tblTempUsageDetail_20' ) start [2024-12-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120349', 'tblTempUsageDetail_20' ) end [2024-12-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120349', 'tblTempVendorCDR_20' ) start [2024-12-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120349', 'tblTempVendorCDR_20' ) end [2024-12-28 08:36:19] Production.INFO: ProcessCDR(1,14120349,1,1,2) [2024-12-28 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120349', 'tblTempUsageDetail_20' ) start [2024-12-28 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120349', 'tblTempUsageDetail_20' ) end [2024-12-28 08:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:36:22] Production.INFO: ==26073== Releasing lock... [2024-12-28 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:36:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:37:05 [end_date_ymd] => 2024-12-28 08:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:37:05' and `end` < '2024-12-28 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-28 08:37:18] Production.INFO: count ==113 [2024-12-28 08:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:37:05 - End Time 2024-12-28 08:37:05 [2024-12-28 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120354', 'tblTempUsageDetail_20' ) start [2024-12-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120354', 'tblTempUsageDetail_20' ) end [2024-12-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120354', 'tblTempVendorCDR_20' ) start [2024-12-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120354', 'tblTempVendorCDR_20' ) end [2024-12-28 08:37:18] Production.INFO: ProcessCDR(1,14120354,1,1,2) [2024-12-28 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120354', 'tblTempUsageDetail_20' ) start [2024-12-28 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120354', 'tblTempUsageDetail_20' ) end [2024-12-28 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:37:21] Production.INFO: ==26149== Releasing lock... [2024-12-28 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:37:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:38:05 [end_date_ymd] => 2024-12-28 08:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:38:05' and `end` < '2024-12-28 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-28 08:38:18] Production.INFO: count ==113 [2024-12-28 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:38:05 - End Time 2024-12-28 08:38:05 [2024-12-28 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120359', 'tblTempUsageDetail_20' ) start [2024-12-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120359', 'tblTempUsageDetail_20' ) end [2024-12-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120359', 'tblTempVendorCDR_20' ) start [2024-12-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120359', 'tblTempVendorCDR_20' ) end [2024-12-28 08:38:18] Production.INFO: ProcessCDR(1,14120359,1,1,2) [2024-12-28 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120359', 'tblTempUsageDetail_20' ) start [2024-12-28 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120359', 'tblTempUsageDetail_20' ) end [2024-12-28 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:38:21] Production.INFO: ==26223== Releasing lock... [2024-12-28 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:38:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:39:04 [end_date_ymd] => 2024-12-28 08:39:04 [RateCDR] => 1 ) [2024-12-28 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:39:04' and `end` < '2024-12-28 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:39:19] Production.INFO: count ==113 [2024-12-28 08:39:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:39:04 - End Time 2024-12-28 08:39:04 [2024-12-28 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120364', 'tblTempUsageDetail_20' ) start [2024-12-28 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120364', 'tblTempUsageDetail_20' ) end [2024-12-28 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120364', 'tblTempVendorCDR_20' ) start [2024-12-28 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120364', 'tblTempVendorCDR_20' ) end [2024-12-28 08:39:19] Production.INFO: ProcessCDR(1,14120364,1,1,2) [2024-12-28 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120364', 'tblTempUsageDetail_20' ) start [2024-12-28 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120364', 'tblTempUsageDetail_20' ) end [2024-12-28 08:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:39:22] Production.INFO: ==26300== Releasing lock... [2024-12-28 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:39:22] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:40:05 [end_date_ymd] => 2024-12-28 08:40:05 [RateCDR] => 1 ) [2024-12-28 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:40:05' and `end` < '2024-12-28 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:40:17] Production.INFO: count ==115 [2024-12-28 08:40:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:40:05 - End Time 2024-12-28 08:40:05 [2024-12-28 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120369', 'tblTempUsageDetail_20' ) start [2024-12-28 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120369', 'tblTempUsageDetail_20' ) end [2024-12-28 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120369', 'tblTempVendorCDR_20' ) start [2024-12-28 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120369', 'tblTempVendorCDR_20' ) end [2024-12-28 08:40:17] Production.INFO: ProcessCDR(1,14120369,1,1,2) [2024-12-28 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120369', 'tblTempUsageDetail_20' ) start [2024-12-28 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120369', 'tblTempUsageDetail_20' ) end [2024-12-28 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:40:21] Production.INFO: ==26377== Releasing lock... [2024-12-28 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:40:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:41:05 [end_date_ymd] => 2024-12-28 08:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:41:05' and `end` < '2024-12-28 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-28 08:41:20] Production.INFO: count ==116 [2024-12-28 08:41:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:41:05 - End Time 2024-12-28 08:41:05 [2024-12-28 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120375', 'tblTempUsageDetail_20' ) start [2024-12-28 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120375', 'tblTempUsageDetail_20' ) end [2024-12-28 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120375', 'tblTempVendorCDR_20' ) start [2024-12-28 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120375', 'tblTempVendorCDR_20' ) end [2024-12-28 08:41:20] Production.INFO: ProcessCDR(1,14120375,1,1,2) [2024-12-28 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120375', 'tblTempUsageDetail_20' ) start [2024-12-28 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120375', 'tblTempUsageDetail_20' ) end [2024-12-28 08:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:41:23] Production.INFO: ==26454== Releasing lock... [2024-12-28 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:41:23] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:42:04 [end_date_ymd] => 2024-12-28 08:42:04 [RateCDR] => 1 ) [2024-12-28 08:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:42:04' and `end` < '2024-12-28 08:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:42:17] Production.INFO: count ==116 [2024-12-28 08:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:42:04 - End Time 2024-12-28 08:42:04 [2024-12-28 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120376', 'tblTempUsageDetail_20' ) start [2024-12-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120376', 'tblTempUsageDetail_20' ) end [2024-12-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120376', 'tblTempVendorCDR_20' ) start [2024-12-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120376', 'tblTempVendorCDR_20' ) end [2024-12-28 08:42:17] Production.INFO: ProcessCDR(1,14120376,1,1,2) [2024-12-28 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120376', 'tblTempUsageDetail_20' ) start [2024-12-28 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120376', 'tblTempUsageDetail_20' ) end [2024-12-28 08:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:42:20] Production.INFO: ==26569== Releasing lock... [2024-12-28 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:42:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:43:05 [end_date_ymd] => 2024-12-28 08:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:43:05' and `end` < '2024-12-28 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-28 08:43:18] Production.INFO: count ==116 [2024-12-28 08:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:43:05 - End Time 2024-12-28 08:43:05 [2024-12-28 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120385', 'tblTempUsageDetail_20' ) start [2024-12-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120385', 'tblTempUsageDetail_20' ) end [2024-12-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120385', 'tblTempVendorCDR_20' ) start [2024-12-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120385', 'tblTempVendorCDR_20' ) end [2024-12-28 08:43:18] Production.INFO: ProcessCDR(1,14120385,1,1,2) [2024-12-28 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120385', 'tblTempUsageDetail_20' ) start [2024-12-28 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120385', 'tblTempUsageDetail_20' ) end [2024-12-28 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:43:21] Production.INFO: ==26641== Releasing lock... [2024-12-28 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:43:21] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:44:05 [end_date_ymd] => 2024-12-28 08:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:44:05' and `end` < '2024-12-28 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-28 08:44:20] Production.INFO: count ==117 [2024-12-28 08:44:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:44:05 - End Time 2024-12-28 08:44:05 [2024-12-28 08:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120390', 'tblTempUsageDetail_20' ) start [2024-12-28 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120390', 'tblTempUsageDetail_20' ) end [2024-12-28 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120390', 'tblTempVendorCDR_20' ) start [2024-12-28 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120390', 'tblTempVendorCDR_20' ) end [2024-12-28 08:44:20] Production.INFO: ProcessCDR(1,14120390,1,1,2) [2024-12-28 08:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120390', 'tblTempUsageDetail_20' ) start [2024-12-28 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120390', 'tblTempUsageDetail_20' ) end [2024-12-28 08:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:44:24] Production.INFO: ==26715== Releasing lock... [2024-12-28 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:44:24] Production.INFO: 28.75 MB #Memory Used# [2024-12-28 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:45:05 [end_date_ymd] => 2024-12-28 08:45:05 [RateCDR] => 1 ) [2024-12-28 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:45:05' and `end` < '2024-12-28 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:45:17] Production.INFO: count ==118 [2024-12-28 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:45:05 - End Time 2024-12-28 08:45:05 [2024-12-28 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120395', 'tblTempUsageDetail_20' ) start [2024-12-28 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120395', 'tblTempUsageDetail_20' ) end [2024-12-28 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120395', 'tblTempVendorCDR_20' ) start [2024-12-28 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120395', 'tblTempVendorCDR_20' ) end [2024-12-28 08:45:17] Production.INFO: ProcessCDR(1,14120395,1,1,2) [2024-12-28 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120395', 'tblTempUsageDetail_20' ) start [2024-12-28 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120395', 'tblTempUsageDetail_20' ) end [2024-12-28 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:45:20] Production.INFO: ==26784== Releasing lock... [2024-12-28 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:45:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:46:05 [end_date_ymd] => 2024-12-28 08:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:46:05' and `end` < '2024-12-28 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-28 08:46:17] Production.INFO: count ==119 [2024-12-28 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:46:05 - End Time 2024-12-28 08:46:05 [2024-12-28 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120400', 'tblTempUsageDetail_20' ) start [2024-12-28 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120400', 'tblTempUsageDetail_20' ) end [2024-12-28 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120400', 'tblTempVendorCDR_20' ) start [2024-12-28 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120400', 'tblTempVendorCDR_20' ) end [2024-12-28 08:46:17] Production.INFO: ProcessCDR(1,14120400,1,1,2) [2024-12-28 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120400', 'tblTempUsageDetail_20' ) start [2024-12-28 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120400', 'tblTempUsageDetail_20' ) end [2024-12-28 08:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:46:20] Production.INFO: ==26864== Releasing lock... [2024-12-28 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:46:20] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:47:05 [end_date_ymd] => 2024-12-28 08:47:05 [RateCDR] => 1 ) [2024-12-28 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:47:05' and `end` < '2024-12-28 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:47:19] Production.INFO: count ==130 [2024-12-28 08:47:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:47:05 - End Time 2024-12-28 08:47:05 [2024-12-28 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120405', 'tblTempUsageDetail_20' ) start [2024-12-28 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120405', 'tblTempUsageDetail_20' ) end [2024-12-28 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120405', 'tblTempVendorCDR_20' ) start [2024-12-28 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120405', 'tblTempVendorCDR_20' ) end [2024-12-28 08:47:19] Production.INFO: ProcessCDR(1,14120405,1,1,2) [2024-12-28 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120405', 'tblTempUsageDetail_20' ) start [2024-12-28 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120405', 'tblTempUsageDetail_20' ) end [2024-12-28 08:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:47:23] Production.INFO: ==26938== Releasing lock... [2024-12-28 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:47:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:48:05 [end_date_ymd] => 2024-12-28 08:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:48:05' and `end` < '2024-12-28 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-28 08:48:17] Production.INFO: count ==130 [2024-12-28 08:48:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:48:05 - End Time 2024-12-28 08:48:05 [2024-12-28 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120410', 'tblTempUsageDetail_20' ) start [2024-12-28 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120410', 'tblTempUsageDetail_20' ) end [2024-12-28 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120410', 'tblTempVendorCDR_20' ) start [2024-12-28 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120410', 'tblTempVendorCDR_20' ) end [2024-12-28 08:48:17] Production.INFO: ProcessCDR(1,14120410,1,1,2) [2024-12-28 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120410', 'tblTempUsageDetail_20' ) start [2024-12-28 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120410', 'tblTempUsageDetail_20' ) end [2024-12-28 08:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:48:21] Production.INFO: ==27015== Releasing lock... [2024-12-28 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:48:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:49:05 [end_date_ymd] => 2024-12-28 08:49:05 [RateCDR] => 1 ) [2024-12-28 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:49:05' and `end` < '2024-12-28 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:49:17] Production.INFO: count ==130 [2024-12-28 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:49:05 - End Time 2024-12-28 08:49:05 [2024-12-28 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120415', 'tblTempUsageDetail_20' ) start [2024-12-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120415', 'tblTempUsageDetail_20' ) end [2024-12-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120415', 'tblTempVendorCDR_20' ) start [2024-12-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120415', 'tblTempVendorCDR_20' ) end [2024-12-28 08:49:17] Production.INFO: ProcessCDR(1,14120415,1,1,2) [2024-12-28 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120415', 'tblTempUsageDetail_20' ) start [2024-12-28 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120415', 'tblTempUsageDetail_20' ) end [2024-12-28 08:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:49:20] Production.INFO: ==27091== Releasing lock... [2024-12-28 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:49:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:50:05 [end_date_ymd] => 2024-12-28 08:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:50:05' and `end` < '2024-12-28 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-28 08:50:17] Production.INFO: count ==137 [2024-12-28 08:50:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:50:05 - End Time 2024-12-28 08:50:05 [2024-12-28 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120421', 'tblTempUsageDetail_20' ) start [2024-12-28 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120421', 'tblTempUsageDetail_20' ) end [2024-12-28 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120421', 'tblTempVendorCDR_20' ) start [2024-12-28 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120421', 'tblTempVendorCDR_20' ) end [2024-12-28 08:50:17] Production.INFO: ProcessCDR(1,14120421,1,1,2) [2024-12-28 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120421', 'tblTempUsageDetail_20' ) start [2024-12-28 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120421', 'tblTempUsageDetail_20' ) end [2024-12-28 08:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:50:20] Production.INFO: ==27164== Releasing lock... [2024-12-28 08:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:50:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:51:05 [end_date_ymd] => 2024-12-28 08:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:51:05' and `end` < '2024-12-28 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-28 08:51:17] Production.INFO: count ==139 [2024-12-28 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:51:05 - End Time 2024-12-28 08:51:05 [2024-12-28 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120426', 'tblTempUsageDetail_20' ) start [2024-12-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120426', 'tblTempUsageDetail_20' ) end [2024-12-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120426', 'tblTempVendorCDR_20' ) start [2024-12-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120426', 'tblTempVendorCDR_20' ) end [2024-12-28 08:51:17] Production.INFO: ProcessCDR(1,14120426,1,1,2) [2024-12-28 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120426', 'tblTempUsageDetail_20' ) start [2024-12-28 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120426', 'tblTempUsageDetail_20' ) end [2024-12-28 08:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:51:20] Production.INFO: ==27251== Releasing lock... [2024-12-28 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:52:05 [end_date_ymd] => 2024-12-28 08:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:52:05' and `end` < '2024-12-28 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-28 08:52:18] Production.INFO: count ==139 [2024-12-28 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:52:05 - End Time 2024-12-28 08:52:05 [2024-12-28 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120431', 'tblTempUsageDetail_20' ) start [2024-12-28 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120431', 'tblTempUsageDetail_20' ) end [2024-12-28 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120431', 'tblTempVendorCDR_20' ) start [2024-12-28 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120431', 'tblTempVendorCDR_20' ) end [2024-12-28 08:52:18] Production.INFO: ProcessCDR(1,14120431,1,1,2) [2024-12-28 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120431', 'tblTempUsageDetail_20' ) start [2024-12-28 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120431', 'tblTempUsageDetail_20' ) end [2024-12-28 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:52:21] Production.INFO: ==27328== Releasing lock... [2024-12-28 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:52:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:53:05 [end_date_ymd] => 2024-12-28 08:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:53:05' and `end` < '2024-12-28 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-28 08:53:20] Production.INFO: count ==145 [2024-12-28 08:53:20] Production.ERROR: pbx CDR StartTime 2024-12-28 05:53:05 - End Time 2024-12-28 08:53:05 [2024-12-28 08:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120436', 'tblTempUsageDetail_20' ) start [2024-12-28 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120436', 'tblTempUsageDetail_20' ) end [2024-12-28 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120436', 'tblTempVendorCDR_20' ) start [2024-12-28 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120436', 'tblTempVendorCDR_20' ) end [2024-12-28 08:53:20] Production.INFO: ProcessCDR(1,14120436,1,1,2) [2024-12-28 08:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120436', 'tblTempUsageDetail_20' ) start [2024-12-28 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120436', 'tblTempUsageDetail_20' ) end [2024-12-28 08:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:53:23] Production.INFO: ==27412== Releasing lock... [2024-12-28 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:53:23] Production.INFO: 29 MB #Memory Used# [2024-12-28 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:54:05 [end_date_ymd] => 2024-12-28 08:54:05 [RateCDR] => 1 ) [2024-12-28 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 05:54:05' and `end` < '2024-12-28 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 08:54:19] Production.INFO: count ==152 [2024-12-28 08:54:19] Production.ERROR: pbx CDR StartTime 2024-12-28 05:54:05 - End Time 2024-12-28 08:54:05 [2024-12-28 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120441', 'tblTempUsageDetail_20' ) start [2024-12-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120441', 'tblTempUsageDetail_20' ) end [2024-12-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120441', 'tblTempVendorCDR_20' ) start [2024-12-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120441', 'tblTempVendorCDR_20' ) end [2024-12-28 08:54:19] Production.INFO: ProcessCDR(1,14120441,1,1,2) [2024-12-28 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120441', 'tblTempUsageDetail_20' ) start [2024-12-28 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120441', 'tblTempUsageDetail_20' ) end [2024-12-28 08:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:54:22] Production.INFO: ==27500== Releasing lock... [2024-12-28 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:54:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-28 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:55:05 [end_date_ymd] => 2024-12-28 08:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:55:05' and `end` < '2024-12-28 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-28 08:55:17] Production.INFO: count ==157 [2024-12-28 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:55:05 - End Time 2024-12-28 08:55:05 [2024-12-28 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120446', 'tblTempUsageDetail_20' ) start [2024-12-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120446', 'tblTempUsageDetail_20' ) end [2024-12-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120446', 'tblTempVendorCDR_20' ) start [2024-12-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120446', 'tblTempVendorCDR_20' ) end [2024-12-28 08:55:17] Production.INFO: ProcessCDR(1,14120446,1,1,2) [2024-12-28 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120446', 'tblTempUsageDetail_20' ) start [2024-12-28 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120446', 'tblTempUsageDetail_20' ) end [2024-12-28 08:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:55:20] Production.INFO: ==27579== Releasing lock... [2024-12-28 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:55:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:56:05 [end_date_ymd] => 2024-12-28 08:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:56:05' and `end` < '2024-12-28 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-28 08:56:18] Production.INFO: count ==157 [2024-12-28 08:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:56:05 - End Time 2024-12-28 08:56:05 [2024-12-28 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120451', 'tblTempUsageDetail_20' ) start [2024-12-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120451', 'tblTempUsageDetail_20' ) end [2024-12-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120451', 'tblTempVendorCDR_20' ) start [2024-12-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120451', 'tblTempVendorCDR_20' ) end [2024-12-28 08:56:18] Production.INFO: ProcessCDR(1,14120451,1,1,2) [2024-12-28 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120451', 'tblTempUsageDetail_20' ) start [2024-12-28 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120451', 'tblTempUsageDetail_20' ) end [2024-12-28 08:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:56:21] Production.INFO: ==27661== Releasing lock... [2024-12-28 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:56:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:57:05 [end_date_ymd] => 2024-12-28 08:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:57:05' and `end` < '2024-12-28 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-28 08:57:17] Production.INFO: count ==157 [2024-12-28 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:57:05 - End Time 2024-12-28 08:57:05 [2024-12-28 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120456', 'tblTempUsageDetail_20' ) start [2024-12-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120456', 'tblTempUsageDetail_20' ) end [2024-12-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120456', 'tblTempVendorCDR_20' ) start [2024-12-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120456', 'tblTempVendorCDR_20' ) end [2024-12-28 08:57:17] Production.INFO: ProcessCDR(1,14120456,1,1,2) [2024-12-28 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120456', 'tblTempUsageDetail_20' ) start [2024-12-28 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120456', 'tblTempUsageDetail_20' ) end [2024-12-28 08:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:57:20] Production.INFO: ==27777== Releasing lock... [2024-12-28 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:57:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:58:05 [end_date_ymd] => 2024-12-28 08:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 05:58:05' and `end` < '2024-12-28 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-28 08:58:18] Production.INFO: count ==157 [2024-12-28 08:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 05:58:05 - End Time 2024-12-28 08:58:05 [2024-12-28 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120461', 'tblTempUsageDetail_20' ) start [2024-12-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120461', 'tblTempUsageDetail_20' ) end [2024-12-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120461', 'tblTempVendorCDR_20' ) start [2024-12-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120461', 'tblTempVendorCDR_20' ) end [2024-12-28 08:58:18] Production.INFO: ProcessCDR(1,14120461,1,1,2) [2024-12-28 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120461', 'tblTempUsageDetail_20' ) start [2024-12-28 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120461', 'tblTempUsageDetail_20' ) end [2024-12-28 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:58:21] Production.INFO: ==27861== Releasing lock... [2024-12-28 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:58:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 05:59:04 [end_date_ymd] => 2024-12-28 08:59:04 [RateCDR] => 1 ) [2024-12-28 08: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-28 05:59:04' and `end` < '2024-12-28 08: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-28 08:59:17] Production.INFO: count ==162 [2024-12-28 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-28 05:59:04 - End Time 2024-12-28 08:59:04 [2024-12-28 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120466', 'tblTempUsageDetail_20' ) start [2024-12-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120466', 'tblTempUsageDetail_20' ) end [2024-12-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120466', 'tblTempVendorCDR_20' ) start [2024-12-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120466', 'tblTempVendorCDR_20' ) end [2024-12-28 08:59:17] Production.INFO: ProcessCDR(1,14120466,1,1,2) [2024-12-28 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120466', 'tblTempUsageDetail_20' ) start [2024-12-28 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120466', 'tblTempUsageDetail_20' ) end [2024-12-28 08:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 08:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 08:59:20] Production.INFO: ==27937== Releasing lock... [2024-12-28 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 08:59:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:00:06 [end_date_ymd] => 2024-12-28 09:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 06:00:06' and `end` < '2024-12-28 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-28 09:00:22] Production.INFO: count ==163 [2024-12-28 09:00:22] Production.ERROR: pbx CDR StartTime 2024-12-28 06:00:06 - End Time 2024-12-28 09:00:06 [2024-12-28 09:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120472', 'tblTempUsageDetail_20' ) start [2024-12-28 09:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120472', 'tblTempUsageDetail_20' ) end [2024-12-28 09:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120472', 'tblTempVendorCDR_20' ) start [2024-12-28 09:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120472', 'tblTempVendorCDR_20' ) end [2024-12-28 09:00:22] Production.INFO: ProcessCDR(1,14120472,1,1,2) [2024-12-28 09:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120472', 'tblTempUsageDetail_20' ) start [2024-12-28 09:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120472', 'tblTempUsageDetail_20' ) end [2024-12-28 09:00:27] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:00:27] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:00:27] Production.INFO: ==28020== Releasing lock... [2024-12-28 09:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:00:27] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:01:05 [end_date_ymd] => 2024-12-28 09:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:01:05' and `end` < '2024-12-28 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-28 09:01:18] Production.INFO: count ==164 [2024-12-28 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:01:05 - End Time 2024-12-28 09:01:05 [2024-12-28 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120477', 'tblTempUsageDetail_20' ) start [2024-12-28 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120477', 'tblTempUsageDetail_20' ) end [2024-12-28 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120477', 'tblTempVendorCDR_20' ) start [2024-12-28 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120477', 'tblTempVendorCDR_20' ) end [2024-12-28 09:01:18] Production.INFO: ProcessCDR(1,14120477,1,1,2) [2024-12-28 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120477', 'tblTempUsageDetail_20' ) start [2024-12-28 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120477', 'tblTempUsageDetail_20' ) end [2024-12-28 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:01:22] Production.INFO: ==28117== Releasing lock... [2024-12-28 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:01:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:02:05 [end_date_ymd] => 2024-12-28 09:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:02:05' and `end` < '2024-12-28 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-28 09:02:18] Production.INFO: count ==180 [2024-12-28 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:02:05 - End Time 2024-12-28 09:02:05 [2024-12-28 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120482', 'tblTempUsageDetail_20' ) start [2024-12-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120482', 'tblTempUsageDetail_20' ) end [2024-12-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120482', 'tblTempVendorCDR_20' ) start [2024-12-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120482', 'tblTempVendorCDR_20' ) end [2024-12-28 09:02:18] Production.INFO: ProcessCDR(1,14120482,1,1,2) [2024-12-28 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120482', 'tblTempUsageDetail_20' ) start [2024-12-28 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120482', 'tblTempUsageDetail_20' ) end [2024-12-28 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:02:21] Production.INFO: ==28194== Releasing lock... [2024-12-28 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:02:21] Production.INFO: 30 MB #Memory Used# [2024-12-28 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:03:05 [end_date_ymd] => 2024-12-28 09:03:05 [RateCDR] => 1 ) [2024-12-28 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:03:05' and `end` < '2024-12-28 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:03:17] Production.INFO: count ==181 [2024-12-28 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:03:05 - End Time 2024-12-28 09:03:05 [2024-12-28 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120487', 'tblTempUsageDetail_20' ) start [2024-12-28 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120487', 'tblTempUsageDetail_20' ) end [2024-12-28 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120487', 'tblTempVendorCDR_20' ) start [2024-12-28 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120487', 'tblTempVendorCDR_20' ) end [2024-12-28 09:03:18] Production.INFO: ProcessCDR(1,14120487,1,1,2) [2024-12-28 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120487', 'tblTempUsageDetail_20' ) start [2024-12-28 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120487', 'tblTempUsageDetail_20' ) end [2024-12-28 09:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:03:21] Production.INFO: ==28277== Releasing lock... [2024-12-28 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-28 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:04:04 [end_date_ymd] => 2024-12-28 09:04:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:04:04' and `end` < '2024-12-28 09: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-28 09:04:17] Production.INFO: count ==186 [2024-12-28 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:04:04 - End Time 2024-12-28 09:04:04 [2024-12-28 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120492', 'tblTempUsageDetail_20' ) start [2024-12-28 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120492', 'tblTempUsageDetail_20' ) end [2024-12-28 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120492', 'tblTempVendorCDR_20' ) start [2024-12-28 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120492', 'tblTempVendorCDR_20' ) end [2024-12-28 09:04:17] Production.INFO: ProcessCDR(1,14120492,1,1,2) [2024-12-28 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120492', 'tblTempUsageDetail_20' ) start [2024-12-28 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120492', 'tblTempUsageDetail_20' ) end [2024-12-28 09:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:04:22] Production.INFO: ==28356== Releasing lock... [2024-12-28 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:04:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-28 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:05:04 [end_date_ymd] => 2024-12-28 09:05:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:05:04' and `end` < '2024-12-28 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-28 09:05:17] Production.INFO: count ==207 [2024-12-28 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:05:04 - End Time 2024-12-28 09:05:04 [2024-12-28 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120497', 'tblTempUsageDetail_20' ) start [2024-12-28 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120497', 'tblTempUsageDetail_20' ) end [2024-12-28 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120497', 'tblTempVendorCDR_20' ) start [2024-12-28 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120497', 'tblTempVendorCDR_20' ) end [2024-12-28 09:05:17] Production.INFO: ProcessCDR(1,14120497,1,1,2) [2024-12-28 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120497', 'tblTempUsageDetail_20' ) start [2024-12-28 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120497', 'tblTempUsageDetail_20' ) end [2024-12-28 09:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:05:20] Production.INFO: ==28435== Releasing lock... [2024-12-28 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:05:20] Production.INFO: 30 MB #Memory Used# [2024-12-28 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:06:04 [end_date_ymd] => 2024-12-28 09:06:04 [RateCDR] => 1 ) [2024-12-28 09:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:06:04' and `end` < '2024-12-28 09:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:06:18] Production.INFO: count ==221 [2024-12-28 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:06:04 - End Time 2024-12-28 09:06:04 [2024-12-28 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120502', 'tblTempUsageDetail_20' ) start [2024-12-28 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120502', 'tblTempUsageDetail_20' ) end [2024-12-28 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120502', 'tblTempVendorCDR_20' ) start [2024-12-28 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120502', 'tblTempVendorCDR_20' ) end [2024-12-28 09:06:18] Production.INFO: ProcessCDR(1,14120502,1,1,2) [2024-12-28 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120502', 'tblTempUsageDetail_20' ) start [2024-12-28 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120502', 'tblTempUsageDetail_20' ) end [2024-12-28 09:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:06:21] Production.INFO: ==28517== Releasing lock... [2024-12-28 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:06:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:07:05 [end_date_ymd] => 2024-12-28 09:07:05 [RateCDR] => 1 ) [2024-12-28 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:07:05' and `end` < '2024-12-28 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:07:19] Production.INFO: count ==229 [2024-12-28 09:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:07:05 - End Time 2024-12-28 09:07:05 [2024-12-28 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120507', 'tblTempUsageDetail_20' ) start [2024-12-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120507', 'tblTempUsageDetail_20' ) end [2024-12-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120507', 'tblTempVendorCDR_20' ) start [2024-12-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120507', 'tblTempVendorCDR_20' ) end [2024-12-28 09:07:19] Production.INFO: ProcessCDR(1,14120507,1,1,2) [2024-12-28 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120507', 'tblTempUsageDetail_20' ) start [2024-12-28 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120507', 'tblTempUsageDetail_20' ) end [2024-12-28 09:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:07:22] Production.INFO: ==28598== Releasing lock... [2024-12-28 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:07:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:08:06 [end_date_ymd] => 2024-12-28 09:08:06 [RateCDR] => 1 ) [2024-12-28 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:08:06' and `end` < '2024-12-28 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:08:19] Production.INFO: count ==242 [2024-12-28 09:08:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:08:06 - End Time 2024-12-28 09:08:06 [2024-12-28 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120512', 'tblTempUsageDetail_20' ) start [2024-12-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120512', 'tblTempUsageDetail_20' ) end [2024-12-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120512', 'tblTempVendorCDR_20' ) start [2024-12-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120512', 'tblTempVendorCDR_20' ) end [2024-12-28 09:08:19] Production.INFO: ProcessCDR(1,14120512,1,1,2) [2024-12-28 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120512', 'tblTempUsageDetail_20' ) start [2024-12-28 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120512', 'tblTempUsageDetail_20' ) end [2024-12-28 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:08:22] Production.INFO: ==28681== Releasing lock... [2024-12-28 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:08:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:09:05 [end_date_ymd] => 2024-12-28 09:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:09:05' and `end` < '2024-12-28 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-28 09:09:19] Production.INFO: count ==243 [2024-12-28 09:09:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:09:05 - End Time 2024-12-28 09:09:05 [2024-12-28 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120517', 'tblTempUsageDetail_20' ) start [2024-12-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120517', 'tblTempUsageDetail_20' ) end [2024-12-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120517', 'tblTempVendorCDR_20' ) start [2024-12-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120517', 'tblTempVendorCDR_20' ) end [2024-12-28 09:09:19] Production.INFO: ProcessCDR(1,14120517,1,1,2) [2024-12-28 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120517', 'tblTempUsageDetail_20' ) start [2024-12-28 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120517', 'tblTempUsageDetail_20' ) end [2024-12-28 09:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:09:22] Production.INFO: ==28765== Releasing lock... [2024-12-28 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:09:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:10:06 [end_date_ymd] => 2024-12-28 09:10:06 [RateCDR] => 1 ) [2024-12-28 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-28 06:10:06' and `end` < '2024-12-28 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-28 09:10:18] Production.INFO: count ==260 [2024-12-28 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:10:06 - End Time 2024-12-28 09:10:06 [2024-12-28 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120522', 'tblTempUsageDetail_20' ) start [2024-12-28 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120522', 'tblTempUsageDetail_20' ) end [2024-12-28 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120522', 'tblTempVendorCDR_20' ) start [2024-12-28 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120522', 'tblTempVendorCDR_20' ) end [2024-12-28 09:10:18] Production.INFO: ProcessCDR(1,14120522,1,1,2) [2024-12-28 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120522', 'tblTempUsageDetail_20' ) start [2024-12-28 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120522', 'tblTempUsageDetail_20' ) end [2024-12-28 09:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:10:21] Production.INFO: ==28850== Releasing lock... [2024-12-28 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:10:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:11:05 [end_date_ymd] => 2024-12-28 09:11:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:11:05' and `end` < '2024-12-28 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-28 09:11:18] Production.INFO: count ==280 [2024-12-28 09:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:11:05 - End Time 2024-12-28 09:11:05 [2024-12-28 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120528', 'tblTempUsageDetail_20' ) start [2024-12-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120528', 'tblTempUsageDetail_20' ) end [2024-12-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120528', 'tblTempVendorCDR_20' ) start [2024-12-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120528', 'tblTempVendorCDR_20' ) end [2024-12-28 09:11:18] Production.INFO: ProcessCDR(1,14120528,1,1,2) [2024-12-28 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120528', 'tblTempUsageDetail_20' ) start [2024-12-28 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120528', 'tblTempUsageDetail_20' ) end [2024-12-28 09:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:11:23] Production.INFO: ==28930== Releasing lock... [2024-12-28 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:11:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-28 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:12:05 [end_date_ymd] => 2024-12-28 09:12:05 [RateCDR] => 1 ) [2024-12-28 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:12:05' and `end` < '2024-12-28 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:12:19] Production.INFO: count ==282 [2024-12-28 09:12:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:12:05 - End Time 2024-12-28 09:12:05 [2024-12-28 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120533', 'tblTempUsageDetail_20' ) start [2024-12-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120533', 'tblTempUsageDetail_20' ) end [2024-12-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120533', 'tblTempVendorCDR_20' ) start [2024-12-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120533', 'tblTempVendorCDR_20' ) end [2024-12-28 09:12:19] Production.INFO: ProcessCDR(1,14120533,1,1,2) [2024-12-28 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120533', 'tblTempUsageDetail_20' ) start [2024-12-28 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120533', 'tblTempUsageDetail_20' ) end [2024-12-28 09:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:12:23] Production.INFO: ==29010== Releasing lock... [2024-12-28 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:12:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-28 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:13:05 [end_date_ymd] => 2024-12-28 09:13:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:13:05' and `end` < '2024-12-28 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-28 09:13:20] Production.INFO: count ==283 [2024-12-28 09:13:20] Production.ERROR: pbx CDR StartTime 2024-12-28 06:13:05 - End Time 2024-12-28 09:13:05 [2024-12-28 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120538', 'tblTempUsageDetail_20' ) start [2024-12-28 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120538', 'tblTempUsageDetail_20' ) end [2024-12-28 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120538', 'tblTempVendorCDR_20' ) start [2024-12-28 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120538', 'tblTempVendorCDR_20' ) end [2024-12-28 09:13:20] Production.INFO: ProcessCDR(1,14120538,1,1,2) [2024-12-28 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120538', 'tblTempUsageDetail_20' ) start [2024-12-28 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120538', 'tblTempUsageDetail_20' ) end [2024-12-28 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:13:23] Production.INFO: ==29131== Releasing lock... [2024-12-28 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:13:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-28 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:14:05 [end_date_ymd] => 2024-12-28 09:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:14:05' and `end` < '2024-12-28 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-28 09:14:17] Production.INFO: count ==301 [2024-12-28 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:14:05 - End Time 2024-12-28 09:14:05 [2024-12-28 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120543', 'tblTempUsageDetail_20' ) start [2024-12-28 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120543', 'tblTempUsageDetail_20' ) end [2024-12-28 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120543', 'tblTempVendorCDR_20' ) start [2024-12-28 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120543', 'tblTempVendorCDR_20' ) end [2024-12-28 09:14:17] Production.INFO: ProcessCDR(1,14120543,1,1,2) [2024-12-28 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120543', 'tblTempUsageDetail_20' ) start [2024-12-28 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120543', 'tblTempUsageDetail_20' ) end [2024-12-28 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:14:21] Production.INFO: ==29209== Releasing lock... [2024-12-28 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:14:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:15:04 [end_date_ymd] => 2024-12-28 09:15:04 [RateCDR] => 1 ) [2024-12-28 09:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:15:04' and `end` < '2024-12-28 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:15:17] Production.INFO: count ==317 [2024-12-28 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:15:04 - End Time 2024-12-28 09:15:04 [2024-12-28 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120548', 'tblTempUsageDetail_20' ) start [2024-12-28 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120548', 'tblTempUsageDetail_20' ) end [2024-12-28 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120548', 'tblTempVendorCDR_20' ) start [2024-12-28 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120548', 'tblTempVendorCDR_20' ) end [2024-12-28 09:15:17] Production.INFO: ProcessCDR(1,14120548,1,1,2) [2024-12-28 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120548', 'tblTempUsageDetail_20' ) start [2024-12-28 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120548', 'tblTempUsageDetail_20' ) end [2024-12-28 09:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:15:20] Production.INFO: ==29285== Releasing lock... [2024-12-28 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:15:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:16:05 [end_date_ymd] => 2024-12-28 09:16:05 [RateCDR] => 1 ) [2024-12-28 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:16:05' and `end` < '2024-12-28 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:16:17] Production.INFO: count ==317 [2024-12-28 09:16:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:16:05 - End Time 2024-12-28 09:16:05 [2024-12-28 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120553', 'tblTempUsageDetail_20' ) start [2024-12-28 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120553', 'tblTempUsageDetail_20' ) end [2024-12-28 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120553', 'tblTempVendorCDR_20' ) start [2024-12-28 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120553', 'tblTempVendorCDR_20' ) end [2024-12-28 09:16:17] Production.INFO: ProcessCDR(1,14120553,1,1,2) [2024-12-28 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120553', 'tblTempUsageDetail_20' ) start [2024-12-28 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120553', 'tblTempUsageDetail_20' ) end [2024-12-28 09:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:16:20] Production.INFO: ==29363== Releasing lock... [2024-12-28 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:16:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:17:04 [end_date_ymd] => 2024-12-28 09:17:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:17:04' and `end` < '2024-12-28 09: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-28 09:17:17] Production.INFO: count ==317 [2024-12-28 09:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:17:04 - End Time 2024-12-28 09:17:04 [2024-12-28 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120558', 'tblTempUsageDetail_20' ) start [2024-12-28 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120558', 'tblTempUsageDetail_20' ) end [2024-12-28 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120558', 'tblTempVendorCDR_20' ) start [2024-12-28 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120558', 'tblTempVendorCDR_20' ) end [2024-12-28 09:17:17] Production.INFO: ProcessCDR(1,14120558,1,1,2) [2024-12-28 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120558', 'tblTempUsageDetail_20' ) start [2024-12-28 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120558', 'tblTempUsageDetail_20' ) end [2024-12-28 09:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:17:20] Production.INFO: ==29448== Releasing lock... [2024-12-28 09:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:17:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:18:05 [end_date_ymd] => 2024-12-28 09:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:18:05' and `end` < '2024-12-28 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-28 09:18:19] Production.INFO: count ==323 [2024-12-28 09:18:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:18:05 - End Time 2024-12-28 09:18:05 [2024-12-28 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120563', 'tblTempUsageDetail_20' ) start [2024-12-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120563', 'tblTempUsageDetail_20' ) end [2024-12-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120563', 'tblTempVendorCDR_20' ) start [2024-12-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120563', 'tblTempVendorCDR_20' ) end [2024-12-28 09:18:19] Production.INFO: ProcessCDR(1,14120563,1,1,2) [2024-12-28 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120563', 'tblTempUsageDetail_20' ) start [2024-12-28 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120563', 'tblTempUsageDetail_20' ) end [2024-12-28 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:18:22] Production.INFO: ==29522== Releasing lock... [2024-12-28 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:18:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:19:04 [end_date_ymd] => 2024-12-28 09:19:04 [RateCDR] => 1 ) [2024-12-28 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:19:04' and `end` < '2024-12-28 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:19:17] Production.INFO: count ==329 [2024-12-28 09:19:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:19:04 - End Time 2024-12-28 09:19:04 [2024-12-28 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120568', 'tblTempUsageDetail_20' ) start [2024-12-28 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120568', 'tblTempUsageDetail_20' ) end [2024-12-28 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120568', 'tblTempVendorCDR_20' ) start [2024-12-28 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120568', 'tblTempVendorCDR_20' ) end [2024-12-28 09:19:17] Production.INFO: ProcessCDR(1,14120568,1,1,2) [2024-12-28 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120568', 'tblTempUsageDetail_20' ) start [2024-12-28 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120568', 'tblTempUsageDetail_20' ) end [2024-12-28 09:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:19:20] Production.INFO: ==29607== Releasing lock... [2024-12-28 09:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:19:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:20:05 [end_date_ymd] => 2024-12-28 09:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:20:05' and `end` < '2024-12-28 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-28 09:20:19] Production.INFO: count ==336 [2024-12-28 09:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:20:05 - End Time 2024-12-28 09:20:05 [2024-12-28 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120573', 'tblTempUsageDetail_20' ) start [2024-12-28 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120573', 'tblTempUsageDetail_20' ) end [2024-12-28 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120573', 'tblTempVendorCDR_20' ) start [2024-12-28 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120573', 'tblTempVendorCDR_20' ) end [2024-12-28 09:20:19] Production.INFO: ProcessCDR(1,14120573,1,1,2) [2024-12-28 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120573', 'tblTempUsageDetail_20' ) start [2024-12-28 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120573', 'tblTempUsageDetail_20' ) end [2024-12-28 09:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:20:22] Production.INFO: ==29686== Releasing lock... [2024-12-28 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:20:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:21:04 [end_date_ymd] => 2024-12-28 09:21:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:21:04' and `end` < '2024-12-28 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-28 09:21:17] Production.INFO: count ==339 [2024-12-28 09:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:21:04 - End Time 2024-12-28 09:21:04 [2024-12-28 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120579', 'tblTempUsageDetail_20' ) start [2024-12-28 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120579', 'tblTempUsageDetail_20' ) end [2024-12-28 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120579', 'tblTempVendorCDR_20' ) start [2024-12-28 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120579', 'tblTempVendorCDR_20' ) end [2024-12-28 09:21:17] Production.INFO: ProcessCDR(1,14120579,1,1,2) [2024-12-28 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120579', 'tblTempUsageDetail_20' ) start [2024-12-28 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120579', 'tblTempUsageDetail_20' ) end [2024-12-28 09:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:21:21] Production.INFO: ==29769== Releasing lock... [2024-12-28 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:21:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:22:05 [end_date_ymd] => 2024-12-28 09:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:22:05' and `end` < '2024-12-28 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-28 09:22:19] Production.INFO: count ==350 [2024-12-28 09:22:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:22:05 - End Time 2024-12-28 09:22:05 [2024-12-28 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120584', 'tblTempUsageDetail_20' ) start [2024-12-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120584', 'tblTempUsageDetail_20' ) end [2024-12-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120584', 'tblTempVendorCDR_20' ) start [2024-12-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120584', 'tblTempVendorCDR_20' ) end [2024-12-28 09:22:19] Production.INFO: ProcessCDR(1,14120584,1,1,2) [2024-12-28 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120584', 'tblTempUsageDetail_20' ) start [2024-12-28 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120584', 'tblTempUsageDetail_20' ) end [2024-12-28 09:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:22:22] Production.INFO: ==29850== Releasing lock... [2024-12-28 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:22:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:23:05 [end_date_ymd] => 2024-12-28 09:23:05 [RateCDR] => 1 ) [2024-12-28 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:23:05' and `end` < '2024-12-28 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:23:19] Production.INFO: count ==350 [2024-12-28 09:23:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:23:05 - End Time 2024-12-28 09:23:05 [2024-12-28 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120589', 'tblTempUsageDetail_20' ) start [2024-12-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120589', 'tblTempUsageDetail_20' ) end [2024-12-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120589', 'tblTempVendorCDR_20' ) start [2024-12-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120589', 'tblTempVendorCDR_20' ) end [2024-12-28 09:23:19] Production.INFO: ProcessCDR(1,14120589,1,1,2) [2024-12-28 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120589', 'tblTempUsageDetail_20' ) start [2024-12-28 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120589', 'tblTempUsageDetail_20' ) end [2024-12-28 09:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:23:22] Production.INFO: ==29934== Releasing lock... [2024-12-28 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:23:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:24:05 [end_date_ymd] => 2024-12-28 09:24:05 [RateCDR] => 1 ) [2024-12-28 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:24:05' and `end` < '2024-12-28 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:24:17] Production.INFO: count ==358 [2024-12-28 09:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:24:05 - End Time 2024-12-28 09:24:05 [2024-12-28 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120594', 'tblTempUsageDetail_20' ) start [2024-12-28 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120594', 'tblTempUsageDetail_20' ) end [2024-12-28 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120594', 'tblTempVendorCDR_20' ) start [2024-12-28 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120594', 'tblTempVendorCDR_20' ) end [2024-12-28 09:24:17] Production.INFO: ProcessCDR(1,14120594,1,1,2) [2024-12-28 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120594', 'tblTempUsageDetail_20' ) start [2024-12-28 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120594', 'tblTempUsageDetail_20' ) end [2024-12-28 09:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:24:21] Production.INFO: ==30025== Releasing lock... [2024-12-28 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:24:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:25:05 [end_date_ymd] => 2024-12-28 09:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:25:05' and `end` < '2024-12-28 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-28 09:25:17] Production.INFO: count ==365 [2024-12-28 09:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:25:05 - End Time 2024-12-28 09:25:05 [2024-12-28 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120599', 'tblTempUsageDetail_20' ) start [2024-12-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120599', 'tblTempUsageDetail_20' ) end [2024-12-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120599', 'tblTempVendorCDR_20' ) start [2024-12-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120599', 'tblTempVendorCDR_20' ) end [2024-12-28 09:25:17] Production.INFO: ProcessCDR(1,14120599,1,1,2) [2024-12-28 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120599', 'tblTempUsageDetail_20' ) start [2024-12-28 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120599', 'tblTempUsageDetail_20' ) end [2024-12-28 09:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:25:20] Production.INFO: ==30104== Releasing lock... [2024-12-28 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:25:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:26:04 [end_date_ymd] => 2024-12-28 09:26:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:26:04' and `end` < '2024-12-28 09: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-28 09:26:18] Production.INFO: count ==366 [2024-12-28 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:26:04 - End Time 2024-12-28 09:26:04 [2024-12-28 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120604', 'tblTempUsageDetail_20' ) start [2024-12-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120604', 'tblTempUsageDetail_20' ) end [2024-12-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120604', 'tblTempVendorCDR_20' ) start [2024-12-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120604', 'tblTempVendorCDR_20' ) end [2024-12-28 09:26:18] Production.INFO: ProcessCDR(1,14120604,1,1,2) [2024-12-28 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120604', 'tblTempUsageDetail_20' ) start [2024-12-28 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120604', 'tblTempUsageDetail_20' ) end [2024-12-28 09:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:26:23] Production.INFO: ==30188== Releasing lock... [2024-12-28 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:26:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:27:05 [end_date_ymd] => 2024-12-28 09:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:27:05' and `end` < '2024-12-28 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-28 09:27:18] Production.INFO: count ==373 [2024-12-28 09:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:27:05 - End Time 2024-12-28 09:27:05 [2024-12-28 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120609', 'tblTempUsageDetail_20' ) start [2024-12-28 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120609', 'tblTempUsageDetail_20' ) end [2024-12-28 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120609', 'tblTempVendorCDR_20' ) start [2024-12-28 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120609', 'tblTempVendorCDR_20' ) end [2024-12-28 09:27:18] Production.INFO: ProcessCDR(1,14120609,1,1,2) [2024-12-28 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120609', 'tblTempUsageDetail_20' ) start [2024-12-28 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120609', 'tblTempUsageDetail_20' ) end [2024-12-28 09:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:27:22] Production.INFO: ==30266== Releasing lock... [2024-12-28 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:27:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-28 09:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:28:04 [end_date_ymd] => 2024-12-28 09:28:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:28:04' and `end` < '2024-12-28 09: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-28 09:28:17] Production.INFO: count ==383 [2024-12-28 09:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:28:04 - End Time 2024-12-28 09:28:04 [2024-12-28 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120614', 'tblTempUsageDetail_20' ) start [2024-12-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120614', 'tblTempUsageDetail_20' ) end [2024-12-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120614', 'tblTempVendorCDR_20' ) start [2024-12-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120614', 'tblTempVendorCDR_20' ) end [2024-12-28 09:28:18] Production.INFO: ProcessCDR(1,14120614,1,1,2) [2024-12-28 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120614', 'tblTempUsageDetail_20' ) start [2024-12-28 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120614', 'tblTempUsageDetail_20' ) end [2024-12-28 09:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:28:21] Production.INFO: ==30344== Releasing lock... [2024-12-28 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:28:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:29:05 [end_date_ymd] => 2024-12-28 09:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:29:05' and `end` < '2024-12-28 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-28 09:29:20] Production.INFO: count ==396 [2024-12-28 09:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 06:29:05 - End Time 2024-12-28 09:29:05 [2024-12-28 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120619', 'tblTempUsageDetail_20' ) start [2024-12-28 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120619', 'tblTempUsageDetail_20' ) end [2024-12-28 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120619', 'tblTempVendorCDR_20' ) start [2024-12-28 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120619', 'tblTempVendorCDR_20' ) end [2024-12-28 09:29:20] Production.INFO: ProcessCDR(1,14120619,1,1,2) [2024-12-28 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120619', 'tblTempUsageDetail_20' ) start [2024-12-28 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120619', 'tblTempUsageDetail_20' ) end [2024-12-28 09:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:29:23] Production.INFO: ==30464== Releasing lock... [2024-12-28 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:29:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:30:05 [end_date_ymd] => 2024-12-28 09:30:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:30:05' and `end` < '2024-12-28 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-28 09:30:19] Production.INFO: count ==401 [2024-12-28 09:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:30:05 - End Time 2024-12-28 09:30:05 [2024-12-28 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120623', 'tblTempUsageDetail_20' ) start [2024-12-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120623', 'tblTempUsageDetail_20' ) end [2024-12-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120623', 'tblTempVendorCDR_20' ) start [2024-12-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120623', 'tblTempVendorCDR_20' ) end [2024-12-28 09:30:19] Production.INFO: ProcessCDR(1,14120623,1,1,2) [2024-12-28 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120623', 'tblTempUsageDetail_20' ) start [2024-12-28 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120623', 'tblTempUsageDetail_20' ) end [2024-12-28 09:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:30:24] Production.INFO: ==30549== Releasing lock... [2024-12-28 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:30:24] Production.INFO: 31.25 MB #Memory Used# [2024-12-28 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:31:05 [end_date_ymd] => 2024-12-28 09:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:31:05' and `end` < '2024-12-28 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-28 09:31:17] Production.INFO: count ==414 [2024-12-28 09:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:31:05 - End Time 2024-12-28 09:31:05 [2024-12-28 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120630', 'tblTempUsageDetail_20' ) start [2024-12-28 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120630', 'tblTempUsageDetail_20' ) end [2024-12-28 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120630', 'tblTempVendorCDR_20' ) start [2024-12-28 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120630', 'tblTempVendorCDR_20' ) end [2024-12-28 09:31:18] Production.INFO: ProcessCDR(1,14120630,1,1,2) [2024-12-28 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120630', 'tblTempUsageDetail_20' ) start [2024-12-28 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120630', 'tblTempUsageDetail_20' ) end [2024-12-28 09:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:31:22] Production.INFO: ==30633== Releasing lock... [2024-12-28 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:31:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:32:05 [end_date_ymd] => 2024-12-28 09:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:32:05' and `end` < '2024-12-28 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-28 09:32:17] Production.INFO: count ==414 [2024-12-28 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:32:05 - End Time 2024-12-28 09:32:05 [2024-12-28 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120635', 'tblTempUsageDetail_20' ) start [2024-12-28 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120635', 'tblTempUsageDetail_20' ) end [2024-12-28 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120635', 'tblTempVendorCDR_20' ) start [2024-12-28 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120635', 'tblTempVendorCDR_20' ) end [2024-12-28 09:32:18] Production.INFO: ProcessCDR(1,14120635,1,1,2) [2024-12-28 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120635', 'tblTempUsageDetail_20' ) start [2024-12-28 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120635', 'tblTempUsageDetail_20' ) end [2024-12-28 09:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:32:21] Production.INFO: ==30718== Releasing lock... [2024-12-28 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:32:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:33:05 [end_date_ymd] => 2024-12-28 09:33:05 [RateCDR] => 1 ) [2024-12-28 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:33:05' and `end` < '2024-12-28 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:33:20] Production.INFO: count ==423 [2024-12-28 09:33:20] Production.ERROR: pbx CDR StartTime 2024-12-28 06:33:05 - End Time 2024-12-28 09:33:05 [2024-12-28 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120640', 'tblTempUsageDetail_20' ) start [2024-12-28 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120640', 'tblTempUsageDetail_20' ) end [2024-12-28 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120640', 'tblTempVendorCDR_20' ) start [2024-12-28 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120640', 'tblTempVendorCDR_20' ) end [2024-12-28 09:33:20] Production.INFO: ProcessCDR(1,14120640,1,1,2) [2024-12-28 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120640', 'tblTempUsageDetail_20' ) start [2024-12-28 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120640', 'tblTempUsageDetail_20' ) end [2024-12-28 09:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:33:25] Production.INFO: ==30795== Releasing lock... [2024-12-28 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:33:25] Production.INFO: 32 MB #Memory Used# [2024-12-28 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:34:05 [end_date_ymd] => 2024-12-28 09:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:34:05' and `end` < '2024-12-28 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-28 09:34:18] Production.INFO: count ==424 [2024-12-28 09:34:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:34:05 - End Time 2024-12-28 09:34:05 [2024-12-28 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120645', 'tblTempUsageDetail_20' ) start [2024-12-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120645', 'tblTempUsageDetail_20' ) end [2024-12-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120645', 'tblTempVendorCDR_20' ) start [2024-12-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120645', 'tblTempVendorCDR_20' ) end [2024-12-28 09:34:19] Production.INFO: ProcessCDR(1,14120645,1,1,2) [2024-12-28 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120645', 'tblTempUsageDetail_20' ) start [2024-12-28 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120645', 'tblTempUsageDetail_20' ) end [2024-12-28 09:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:34:22] Production.INFO: ==30876== Releasing lock... [2024-12-28 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:34:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:35:04 [end_date_ymd] => 2024-12-28 09:35:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:35:04' and `end` < '2024-12-28 09:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:35:17] Production.INFO: count ==424 [2024-12-28 09:35:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:35:04 - End Time 2024-12-28 09:35:04 [2024-12-28 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120650', 'tblTempUsageDetail_20' ) start [2024-12-28 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120650', 'tblTempUsageDetail_20' ) end [2024-12-28 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120650', 'tblTempVendorCDR_20' ) start [2024-12-28 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120650', 'tblTempVendorCDR_20' ) end [2024-12-28 09:35:17] Production.INFO: ProcessCDR(1,14120650,1,1,2) [2024-12-28 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120650', 'tblTempUsageDetail_20' ) start [2024-12-28 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120650', 'tblTempUsageDetail_20' ) end [2024-12-28 09:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:35:20] Production.INFO: ==30957== Releasing lock... [2024-12-28 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:35:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:36:05 [end_date_ymd] => 2024-12-28 09:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:36:05' and `end` < '2024-12-28 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-28 09:36:19] Production.INFO: count ==425 [2024-12-28 09:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:36:05 - End Time 2024-12-28 09:36:05 [2024-12-28 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120655', 'tblTempUsageDetail_20' ) start [2024-12-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120655', 'tblTempUsageDetail_20' ) end [2024-12-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120655', 'tblTempVendorCDR_20' ) start [2024-12-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120655', 'tblTempVendorCDR_20' ) end [2024-12-28 09:36:19] Production.INFO: ProcessCDR(1,14120655,1,1,2) [2024-12-28 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120655', 'tblTempUsageDetail_20' ) start [2024-12-28 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120655', 'tblTempUsageDetail_20' ) end [2024-12-28 09:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:36:22] Production.INFO: ==31038== Releasing lock... [2024-12-28 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:36:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:37:05 [end_date_ymd] => 2024-12-28 09:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:37:05' and `end` < '2024-12-28 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-28 09:37:18] Production.INFO: count ==425 [2024-12-28 09:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:37:05 - End Time 2024-12-28 09:37:05 [2024-12-28 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120660', 'tblTempUsageDetail_20' ) start [2024-12-28 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120660', 'tblTempUsageDetail_20' ) end [2024-12-28 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120660', 'tblTempVendorCDR_20' ) start [2024-12-28 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120660', 'tblTempVendorCDR_20' ) end [2024-12-28 09:37:18] Production.INFO: ProcessCDR(1,14120660,1,1,2) [2024-12-28 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120660', 'tblTempUsageDetail_20' ) start [2024-12-28 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120660', 'tblTempUsageDetail_20' ) end [2024-12-28 09:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:37:21] Production.INFO: ==31126== Releasing lock... [2024-12-28 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:37:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:38:05 [end_date_ymd] => 2024-12-28 09:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:38:05' and `end` < '2024-12-28 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-28 09:38:19] Production.INFO: count ==426 [2024-12-28 09:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:38:05 - End Time 2024-12-28 09:38:05 [2024-12-28 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120665', 'tblTempUsageDetail_20' ) start [2024-12-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120665', 'tblTempUsageDetail_20' ) end [2024-12-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120665', 'tblTempVendorCDR_20' ) start [2024-12-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120665', 'tblTempVendorCDR_20' ) end [2024-12-28 09:38:19] Production.INFO: ProcessCDR(1,14120665,1,1,2) [2024-12-28 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120665', 'tblTempUsageDetail_20' ) start [2024-12-28 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120665', 'tblTempUsageDetail_20' ) end [2024-12-28 09:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:38:22] Production.INFO: ==31211== Releasing lock... [2024-12-28 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:38:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:39:05 [end_date_ymd] => 2024-12-28 09:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:39:05' and `end` < '2024-12-28 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-28 09:39:19] Production.INFO: count ==438 [2024-12-28 09:39:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:39:05 - End Time 2024-12-28 09:39:05 [2024-12-28 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120670', 'tblTempUsageDetail_20' ) start [2024-12-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120670', 'tblTempUsageDetail_20' ) end [2024-12-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120670', 'tblTempVendorCDR_20' ) start [2024-12-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120670', 'tblTempVendorCDR_20' ) end [2024-12-28 09:39:19] Production.INFO: ProcessCDR(1,14120670,1,1,2) [2024-12-28 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120670', 'tblTempUsageDetail_20' ) start [2024-12-28 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120670', 'tblTempUsageDetail_20' ) end [2024-12-28 09:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:39:24] Production.INFO: ==31300== Releasing lock... [2024-12-28 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:39:24] Production.INFO: 32 MB #Memory Used# [2024-12-28 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:40:06 [end_date_ymd] => 2024-12-28 09:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 06:40:06' and `end` < '2024-12-28 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-28 09:40:18] Production.INFO: count ==460 [2024-12-28 09:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:40:06 - End Time 2024-12-28 09:40:06 [2024-12-28 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120675', 'tblTempUsageDetail_20' ) start [2024-12-28 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120675', 'tblTempUsageDetail_20' ) end [2024-12-28 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120675', 'tblTempVendorCDR_20' ) start [2024-12-28 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120675', 'tblTempVendorCDR_20' ) end [2024-12-28 09:40:18] Production.INFO: ProcessCDR(1,14120675,1,1,2) [2024-12-28 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120675', 'tblTempUsageDetail_20' ) start [2024-12-28 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120675', 'tblTempUsageDetail_20' ) end [2024-12-28 09:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:40:22] Production.INFO: ==31385== Releasing lock... [2024-12-28 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:40:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-28 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:41:05 [end_date_ymd] => 2024-12-28 09:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:41:05' and `end` < '2024-12-28 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-28 09:41:19] Production.INFO: count ==474 [2024-12-28 09:41:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:41:05 - End Time 2024-12-28 09:41:05 [2024-12-28 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120681', 'tblTempUsageDetail_20' ) start [2024-12-28 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120681', 'tblTempUsageDetail_20' ) end [2024-12-28 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120681', 'tblTempVendorCDR_20' ) start [2024-12-28 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120681', 'tblTempVendorCDR_20' ) end [2024-12-28 09:41:19] Production.INFO: ProcessCDR(1,14120681,1,1,2) [2024-12-28 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120681', 'tblTempUsageDetail_20' ) start [2024-12-28 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120681', 'tblTempUsageDetail_20' ) end [2024-12-28 09:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:41:22] Production.INFO: ==31473== Releasing lock... [2024-12-28 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:41:22] Production.INFO: 32 MB #Memory Used# [2024-12-28 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:42:05 [end_date_ymd] => 2024-12-28 09:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:42:05' and `end` < '2024-12-28 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-28 09:42:17] Production.INFO: count ==476 [2024-12-28 09:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:42:05 - End Time 2024-12-28 09:42:05 [2024-12-28 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120686', 'tblTempUsageDetail_20' ) start [2024-12-28 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120686', 'tblTempUsageDetail_20' ) end [2024-12-28 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120686', 'tblTempVendorCDR_20' ) start [2024-12-28 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120686', 'tblTempVendorCDR_20' ) end [2024-12-28 09:42:17] Production.INFO: ProcessCDR(1,14120686,1,1,2) [2024-12-28 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120686', 'tblTempUsageDetail_20' ) start [2024-12-28 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120686', 'tblTempUsageDetail_20' ) end [2024-12-28 09:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:42:22] Production.INFO: ==31559== Releasing lock... [2024-12-28 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:42:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:43:05 [end_date_ymd] => 2024-12-28 09:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:43:05' and `end` < '2024-12-28 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-28 09:43:18] Production.INFO: count ==497 [2024-12-28 09:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:43:05 - End Time 2024-12-28 09:43:05 [2024-12-28 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120691', 'tblTempUsageDetail_20' ) start [2024-12-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120691', 'tblTempUsageDetail_20' ) end [2024-12-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120691', 'tblTempVendorCDR_20' ) start [2024-12-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120691', 'tblTempVendorCDR_20' ) end [2024-12-28 09:43:18] Production.INFO: ProcessCDR(1,14120691,1,1,2) [2024-12-28 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120691', 'tblTempUsageDetail_20' ) start [2024-12-28 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120691', 'tblTempUsageDetail_20' ) end [2024-12-28 09:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:43:21] Production.INFO: ==31648== Releasing lock... [2024-12-28 09:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:43:21] Production.INFO: 32 MB #Memory Used# [2024-12-28 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:44:05 [end_date_ymd] => 2024-12-28 09:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:44:05' and `end` < '2024-12-28 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-28 09:44:19] Production.INFO: count ==500 [2024-12-28 09:44:20] Production.ERROR: pbx CDR StartTime 2024-12-28 06:44:05 - End Time 2024-12-28 09:44:05 [2024-12-28 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120696', 'tblTempUsageDetail_20' ) start [2024-12-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120696', 'tblTempUsageDetail_20' ) end [2024-12-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120696', 'tblTempVendorCDR_20' ) start [2024-12-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120696', 'tblTempVendorCDR_20' ) end [2024-12-28 09:44:20] Production.INFO: ProcessCDR(1,14120696,1,1,2) [2024-12-28 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120696', 'tblTempUsageDetail_20' ) start [2024-12-28 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120696', 'tblTempUsageDetail_20' ) end [2024-12-28 09:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:44:23] Production.INFO: ==31777== Releasing lock... [2024-12-28 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:44:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:45:05 [end_date_ymd] => 2024-12-28 09:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:45:05' and `end` < '2024-12-28 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-28 09:45:17] Production.INFO: count ==512 [2024-12-28 09:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:45:05 - End Time 2024-12-28 09:45:05 [2024-12-28 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120701', 'tblTempUsageDetail_20' ) start [2024-12-28 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120701', 'tblTempUsageDetail_20' ) end [2024-12-28 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120701', 'tblTempVendorCDR_20' ) start [2024-12-28 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120701', 'tblTempVendorCDR_20' ) end [2024-12-28 09:45:17] Production.INFO: ProcessCDR(1,14120701,1,1,2) [2024-12-28 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120701', 'tblTempUsageDetail_20' ) start [2024-12-28 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120701', 'tblTempUsageDetail_20' ) end [2024-12-28 09:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:45:22] Production.INFO: ==31903== Releasing lock... [2024-12-28 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:45:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:46:05 [end_date_ymd] => 2024-12-28 09:46:05 [RateCDR] => 1 ) [2024-12-28 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:46:05' and `end` < '2024-12-28 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:46:19] Production.INFO: count ==517 [2024-12-28 09:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:46:05 - End Time 2024-12-28 09:46:05 [2024-12-28 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120706', 'tblTempUsageDetail_20' ) start [2024-12-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120706', 'tblTempUsageDetail_20' ) end [2024-12-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120706', 'tblTempVendorCDR_20' ) start [2024-12-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120706', 'tblTempVendorCDR_20' ) end [2024-12-28 09:46:19] Production.INFO: ProcessCDR(1,14120706,1,1,2) [2024-12-28 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120706', 'tblTempUsageDetail_20' ) start [2024-12-28 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120706', 'tblTempUsageDetail_20' ) end [2024-12-28 09:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:46:22] Production.INFO: ==32020== Releasing lock... [2024-12-28 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:46:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:47:04 [end_date_ymd] => 2024-12-28 09:47:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:47:04' and `end` < '2024-12-28 09: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-28 09:47:18] Production.INFO: count ==522 [2024-12-28 09:47:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:47:04 - End Time 2024-12-28 09:47:04 [2024-12-28 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120711', 'tblTempUsageDetail_20' ) start [2024-12-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120711', 'tblTempUsageDetail_20' ) end [2024-12-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120711', 'tblTempVendorCDR_20' ) start [2024-12-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120711', 'tblTempVendorCDR_20' ) end [2024-12-28 09:47:19] Production.INFO: ProcessCDR(1,14120711,1,1,2) [2024-12-28 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120711', 'tblTempUsageDetail_20' ) start [2024-12-28 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120711', 'tblTempUsageDetail_20' ) end [2024-12-28 09:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:47:23] Production.INFO: ==32137== Releasing lock... [2024-12-28 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:47:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:48:05 [end_date_ymd] => 2024-12-28 09:48:05 [RateCDR] => 1 ) [2024-12-28 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:48:05' and `end` < '2024-12-28 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:48:19] Production.INFO: count ==530 [2024-12-28 09:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 06:48:05 - End Time 2024-12-28 09:48:05 [2024-12-28 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120716', 'tblTempUsageDetail_20' ) start [2024-12-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120716', 'tblTempUsageDetail_20' ) end [2024-12-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120716', 'tblTempVendorCDR_20' ) start [2024-12-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120716', 'tblTempVendorCDR_20' ) end [2024-12-28 09:48:19] Production.INFO: ProcessCDR(1,14120716,1,1,2) [2024-12-28 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120716', 'tblTempUsageDetail_20' ) start [2024-12-28 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120716', 'tblTempUsageDetail_20' ) end [2024-12-28 09:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:48:22] Production.INFO: ==32251== Releasing lock... [2024-12-28 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:48:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:49:04 [end_date_ymd] => 2024-12-28 09:49:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:49:04' and `end` < '2024-12-28 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-28 09:49:18] Production.INFO: count ==532 [2024-12-28 09:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:49:04 - End Time 2024-12-28 09:49:04 [2024-12-28 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120721', 'tblTempUsageDetail_20' ) start [2024-12-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120721', 'tblTempUsageDetail_20' ) end [2024-12-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120721', 'tblTempVendorCDR_20' ) start [2024-12-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120721', 'tblTempVendorCDR_20' ) end [2024-12-28 09:49:18] Production.INFO: ProcessCDR(1,14120721,1,1,2) [2024-12-28 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120721', 'tblTempUsageDetail_20' ) start [2024-12-28 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120721', 'tblTempUsageDetail_20' ) end [2024-12-28 09:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:49:23] Production.INFO: ==32367== Releasing lock... [2024-12-28 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:49:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:50:05 [end_date_ymd] => 2024-12-28 09:50:05 [RateCDR] => 1 ) [2024-12-28 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:50:05' and `end` < '2024-12-28 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:50:18] Production.INFO: count ==544 [2024-12-28 09:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:50:05 - End Time 2024-12-28 09:50:05 [2024-12-28 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120727', 'tblTempUsageDetail_20' ) start [2024-12-28 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120727', 'tblTempUsageDetail_20' ) end [2024-12-28 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120727', 'tblTempVendorCDR_20' ) start [2024-12-28 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120727', 'tblTempVendorCDR_20' ) end [2024-12-28 09:50:18] Production.INFO: ProcessCDR(1,14120727,1,1,2) [2024-12-28 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120727', 'tblTempUsageDetail_20' ) start [2024-12-28 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120727', 'tblTempUsageDetail_20' ) end [2024-12-28 09:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:50:22] Production.INFO: ==32485== Releasing lock... [2024-12-28 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:50:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:51:05 [end_date_ymd] => 2024-12-28 09:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:51:05' and `end` < '2024-12-28 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-28 09:51:18] Production.INFO: count ==554 [2024-12-28 09:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:51:05 - End Time 2024-12-28 09:51:05 [2024-12-28 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120732', 'tblTempUsageDetail_20' ) start [2024-12-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120732', 'tblTempUsageDetail_20' ) end [2024-12-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120732', 'tblTempVendorCDR_20' ) start [2024-12-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120732', 'tblTempVendorCDR_20' ) end [2024-12-28 09:51:18] Production.INFO: ProcessCDR(1,14120732,1,1,2) [2024-12-28 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120732', 'tblTempUsageDetail_20' ) start [2024-12-28 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120732', 'tblTempUsageDetail_20' ) end [2024-12-28 09:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:51:21] Production.INFO: ==32600== Releasing lock... [2024-12-28 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:51:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:52:05 [end_date_ymd] => 2024-12-28 09:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:52:05' and `end` < '2024-12-28 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-28 09:52:17] Production.INFO: count ==555 [2024-12-28 09:52:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:52:05 - End Time 2024-12-28 09:52:05 [2024-12-28 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120737', 'tblTempUsageDetail_20' ) start [2024-12-28 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120737', 'tblTempUsageDetail_20' ) end [2024-12-28 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120737', 'tblTempVendorCDR_20' ) start [2024-12-28 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120737', 'tblTempVendorCDR_20' ) end [2024-12-28 09:52:17] Production.INFO: ProcessCDR(1,14120737,1,1,2) [2024-12-28 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120737', 'tblTempUsageDetail_20' ) start [2024-12-28 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120737', 'tblTempUsageDetail_20' ) end [2024-12-28 09:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:52:22] Production.INFO: ==32717== Releasing lock... [2024-12-28 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:52:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:53:04 [end_date_ymd] => 2024-12-28 09:53:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:53:04' and `end` < '2024-12-28 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-28 09:53:17] Production.INFO: count ==555 [2024-12-28 09:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:53:04 - End Time 2024-12-28 09:53:04 [2024-12-28 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120742', 'tblTempUsageDetail_20' ) start [2024-12-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120742', 'tblTempUsageDetail_20' ) end [2024-12-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120742', 'tblTempVendorCDR_20' ) start [2024-12-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120742', 'tblTempVendorCDR_20' ) end [2024-12-28 09:53:18] Production.INFO: ProcessCDR(1,14120742,1,1,2) [2024-12-28 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120742', 'tblTempUsageDetail_20' ) start [2024-12-28 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120742', 'tblTempUsageDetail_20' ) end [2024-12-28 09:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:53:21] Production.INFO: ==380== Releasing lock... [2024-12-28 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:53:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:54:04 [end_date_ymd] => 2024-12-28 09:54:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:54:04' and `end` < '2024-12-28 09: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-28 09:54:17] Production.INFO: count ==567 [2024-12-28 09:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:54:04 - End Time 2024-12-28 09:54:04 [2024-12-28 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120747', 'tblTempUsageDetail_20' ) start [2024-12-28 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120747', 'tblTempUsageDetail_20' ) end [2024-12-28 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120747', 'tblTempVendorCDR_20' ) start [2024-12-28 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120747', 'tblTempVendorCDR_20' ) end [2024-12-28 09:54:17] Production.INFO: ProcessCDR(1,14120747,1,1,2) [2024-12-28 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120747', 'tblTempUsageDetail_20' ) start [2024-12-28 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120747', 'tblTempUsageDetail_20' ) end [2024-12-28 09:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:54:22] Production.INFO: ==498== Releasing lock... [2024-12-28 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:54:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:55:05 [end_date_ymd] => 2024-12-28 09:55:05 [RateCDR] => 1 ) [2024-12-28 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 06:55:05' and `end` < '2024-12-28 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 09:55:17] Production.INFO: count ==567 [2024-12-28 09:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:55:05 - End Time 2024-12-28 09:55:05 [2024-12-28 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120752', 'tblTempUsageDetail_20' ) start [2024-12-28 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120752', 'tblTempUsageDetail_20' ) end [2024-12-28 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120752', 'tblTempVendorCDR_20' ) start [2024-12-28 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120752', 'tblTempVendorCDR_20' ) end [2024-12-28 09:55:17] Production.INFO: ProcessCDR(1,14120752,1,1,2) [2024-12-28 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120752', 'tblTempUsageDetail_20' ) start [2024-12-28 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120752', 'tblTempUsageDetail_20' ) end [2024-12-28 09:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:55:20] Production.INFO: ==622== Releasing lock... [2024-12-28 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:55:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:56:04 [end_date_ymd] => 2024-12-28 09:56:04 [RateCDR] => 1 ) [2024-12-28 09: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-28 06:56:04' and `end` < '2024-12-28 09: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-28 09:56:19] Production.INFO: count ==574 [2024-12-28 09:56:20] Production.ERROR: pbx CDR StartTime 2024-12-28 06:56:04 - End Time 2024-12-28 09:56:04 [2024-12-28 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120757', 'tblTempUsageDetail_20' ) start [2024-12-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120757', 'tblTempUsageDetail_20' ) end [2024-12-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120757', 'tblTempVendorCDR_20' ) start [2024-12-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120757', 'tblTempVendorCDR_20' ) end [2024-12-28 09:56:20] Production.INFO: ProcessCDR(1,14120757,1,1,2) [2024-12-28 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120757', 'tblTempUsageDetail_20' ) start [2024-12-28 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120757', 'tblTempUsageDetail_20' ) end [2024-12-28 09:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:56:24] Production.INFO: ==759== Releasing lock... [2024-12-28 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:56:24] Production.INFO: 33 MB #Memory Used# [2024-12-28 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:57:04 [end_date_ymd] => 2024-12-28 09:57:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:57:04' and `end` < '2024-12-28 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-28 09:57:17] Production.INFO: count ==574 [2024-12-28 09:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:57:04 - End Time 2024-12-28 09:57:04 [2024-12-28 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120762', 'tblTempUsageDetail_20' ) start [2024-12-28 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120762', 'tblTempUsageDetail_20' ) end [2024-12-28 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120762', 'tblTempVendorCDR_20' ) start [2024-12-28 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120762', 'tblTempVendorCDR_20' ) end [2024-12-28 09:57:17] Production.INFO: ProcessCDR(1,14120762,1,1,2) [2024-12-28 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120762', 'tblTempUsageDetail_20' ) start [2024-12-28 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120762', 'tblTempUsageDetail_20' ) end [2024-12-28 09:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:57:20] Production.INFO: ==875== Releasing lock... [2024-12-28 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:57:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:58:05 [end_date_ymd] => 2024-12-28 09:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 06:58:05' and `end` < '2024-12-28 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-28 09:58:17] Production.INFO: count ==584 [2024-12-28 09:58:17] Production.ERROR: pbx CDR StartTime 2024-12-28 06:58:05 - End Time 2024-12-28 09:58:05 [2024-12-28 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120767', 'tblTempUsageDetail_20' ) start [2024-12-28 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120767', 'tblTempUsageDetail_20' ) end [2024-12-28 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120767', 'tblTempVendorCDR_20' ) start [2024-12-28 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120767', 'tblTempVendorCDR_20' ) end [2024-12-28 09:58:17] Production.INFO: ProcessCDR(1,14120767,1,1,2) [2024-12-28 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120767', 'tblTempUsageDetail_20' ) start [2024-12-28 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120767', 'tblTempUsageDetail_20' ) end [2024-12-28 09:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:58:20] Production.INFO: ==986== Releasing lock... [2024-12-28 09:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:58:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 06:59:04 [end_date_ymd] => 2024-12-28 09:59:04 [RateCDR] => 1 ) [2024-12-28 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-28 06:59:04' and `end` < '2024-12-28 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-28 09:59:18] Production.INFO: count ==602 [2024-12-28 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 06:59:04 - End Time 2024-12-28 09:59:04 [2024-12-28 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120772', 'tblTempUsageDetail_20' ) start [2024-12-28 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120772', 'tblTempUsageDetail_20' ) end [2024-12-28 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120772', 'tblTempVendorCDR_20' ) start [2024-12-28 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120772', 'tblTempVendorCDR_20' ) end [2024-12-28 09:59:18] Production.INFO: ProcessCDR(1,14120772,1,1,2) [2024-12-28 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120772', 'tblTempUsageDetail_20' ) start [2024-12-28 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120772', 'tblTempUsageDetail_20' ) end [2024-12-28 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 09:59:23] Production.INFO: ==1061== Releasing lock... [2024-12-28 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 09:59:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:00:06 [end_date_ymd] => 2024-12-28 10:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 07:00:06' and `end` < '2024-12-28 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-28 10:00:18] Production.INFO: count ==622 [2024-12-28 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:00:06 - End Time 2024-12-28 10:00:06 [2024-12-28 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120778', 'tblTempUsageDetail_20' ) start [2024-12-28 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120778', 'tblTempUsageDetail_20' ) end [2024-12-28 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120778', 'tblTempVendorCDR_20' ) start [2024-12-28 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120778', 'tblTempVendorCDR_20' ) end [2024-12-28 10:00:19] Production.INFO: ProcessCDR(1,14120778,1,1,2) [2024-12-28 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120778', 'tblTempUsageDetail_20' ) start [2024-12-28 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120778', 'tblTempUsageDetail_20' ) end [2024-12-28 10:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:00:23] Production.INFO: ==1190== Releasing lock... [2024-12-28 10:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:00:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:01:04 [end_date_ymd] => 2024-12-28 10:01:04 [RateCDR] => 1 ) [2024-12-28 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:01:04' and `end` < '2024-12-28 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:01:16] Production.INFO: count ==652 [2024-12-28 10:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:01:04 - End Time 2024-12-28 10:01:04 [2024-12-28 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120783', 'tblTempUsageDetail_20' ) start [2024-12-28 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120783', 'tblTempUsageDetail_20' ) end [2024-12-28 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120783', 'tblTempVendorCDR_20' ) start [2024-12-28 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120783', 'tblTempVendorCDR_20' ) end [2024-12-28 10:01:17] Production.INFO: ProcessCDR(1,14120783,1,1,2) [2024-12-28 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120783', 'tblTempUsageDetail_20' ) start [2024-12-28 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120783', 'tblTempUsageDetail_20' ) end [2024-12-28 10:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:01:21] Production.INFO: ==1295== Releasing lock... [2024-12-28 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:01:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:02:05 [end_date_ymd] => 2024-12-28 10:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:02:05' and `end` < '2024-12-28 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-28 10:02:17] Production.INFO: count ==659 [2024-12-28 10:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:02:05 - End Time 2024-12-28 10:02:05 [2024-12-28 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120788', 'tblTempUsageDetail_20' ) start [2024-12-28 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120788', 'tblTempUsageDetail_20' ) end [2024-12-28 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120788', 'tblTempVendorCDR_20' ) start [2024-12-28 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120788', 'tblTempVendorCDR_20' ) end [2024-12-28 10:02:17] Production.INFO: ProcessCDR(1,14120788,1,1,2) [2024-12-28 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120788', 'tblTempUsageDetail_20' ) start [2024-12-28 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120788', 'tblTempUsageDetail_20' ) end [2024-12-28 10:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:02:22] Production.INFO: ==1369== Releasing lock... [2024-12-28 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:02:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:03:04 [end_date_ymd] => 2024-12-28 10:03:04 [RateCDR] => 1 ) [2024-12-28 10:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:03:04' and `end` < '2024-12-28 10:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:03:18] Production.INFO: count ==676 [2024-12-28 10:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:03:04 - End Time 2024-12-28 10:03:04 [2024-12-28 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120793', 'tblTempUsageDetail_20' ) start [2024-12-28 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120793', 'tblTempUsageDetail_20' ) end [2024-12-28 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120793', 'tblTempVendorCDR_20' ) start [2024-12-28 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120793', 'tblTempVendorCDR_20' ) end [2024-12-28 10:03:18] Production.INFO: ProcessCDR(1,14120793,1,1,2) [2024-12-28 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120793', 'tblTempUsageDetail_20' ) start [2024-12-28 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120793', 'tblTempUsageDetail_20' ) end [2024-12-28 10:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:03:23] Production.INFO: ==1446== Releasing lock... [2024-12-28 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:03:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:04:05 [end_date_ymd] => 2024-12-28 10:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:04:05' and `end` < '2024-12-28 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-28 10:04:17] Production.INFO: count ==694 [2024-12-28 10:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:04:05 - End Time 2024-12-28 10:04:05 [2024-12-28 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120798', 'tblTempUsageDetail_20' ) start [2024-12-28 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120798', 'tblTempUsageDetail_20' ) end [2024-12-28 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120798', 'tblTempVendorCDR_20' ) start [2024-12-28 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120798', 'tblTempVendorCDR_20' ) end [2024-12-28 10:04:17] Production.INFO: ProcessCDR(1,14120798,1,1,2) [2024-12-28 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120798', 'tblTempUsageDetail_20' ) start [2024-12-28 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120798', 'tblTempUsageDetail_20' ) end [2024-12-28 10:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:04:20] Production.INFO: ==1562== Releasing lock... [2024-12-28 10:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:04:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:05:05 [end_date_ymd] => 2024-12-28 10:05:05 [RateCDR] => 1 ) [2024-12-28 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:05:05' and `end` < '2024-12-28 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:05:18] Production.INFO: count ==704 [2024-12-28 10:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:05:05 - End Time 2024-12-28 10:05:05 [2024-12-28 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120803', 'tblTempUsageDetail_20' ) start [2024-12-28 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120803', 'tblTempUsageDetail_20' ) end [2024-12-28 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120803', 'tblTempVendorCDR_20' ) start [2024-12-28 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120803', 'tblTempVendorCDR_20' ) end [2024-12-28 10:05:18] Production.INFO: ProcessCDR(1,14120803,1,1,2) [2024-12-28 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120803', 'tblTempUsageDetail_20' ) start [2024-12-28 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120803', 'tblTempUsageDetail_20' ) end [2024-12-28 10:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:05:21] Production.INFO: ==1640== Releasing lock... [2024-12-28 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:05:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:06:05 [end_date_ymd] => 2024-12-28 10:06:05 [RateCDR] => 1 ) [2024-12-28 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:06:05' and `end` < '2024-12-28 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:06:17] Production.INFO: count ==713 [2024-12-28 10:06:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:06:05 - End Time 2024-12-28 10:06:05 [2024-12-28 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120808', 'tblTempUsageDetail_20' ) start [2024-12-28 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120808', 'tblTempUsageDetail_20' ) end [2024-12-28 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120808', 'tblTempVendorCDR_20' ) start [2024-12-28 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120808', 'tblTempVendorCDR_20' ) end [2024-12-28 10:06:17] Production.INFO: ProcessCDR(1,14120808,1,1,2) [2024-12-28 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120808', 'tblTempUsageDetail_20' ) start [2024-12-28 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120808', 'tblTempUsageDetail_20' ) end [2024-12-28 10:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:06:22] Production.INFO: ==1716== Releasing lock... [2024-12-28 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:06:22] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:07:05 [end_date_ymd] => 2024-12-28 10:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:07:05' and `end` < '2024-12-28 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-28 10:07:17] Production.INFO: count ==714 [2024-12-28 10:07:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:07:05 - End Time 2024-12-28 10:07:05 [2024-12-28 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120813', 'tblTempUsageDetail_20' ) start [2024-12-28 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120813', 'tblTempUsageDetail_20' ) end [2024-12-28 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120813', 'tblTempVendorCDR_20' ) start [2024-12-28 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120813', 'tblTempVendorCDR_20' ) end [2024-12-28 10:07:18] Production.INFO: ProcessCDR(1,14120813,1,1,2) [2024-12-28 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120813', 'tblTempUsageDetail_20' ) start [2024-12-28 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120813', 'tblTempUsageDetail_20' ) end [2024-12-28 10:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:07:21] Production.INFO: ==1796== Releasing lock... [2024-12-28 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:07:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:08:05 [end_date_ymd] => 2024-12-28 10:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:08:05' and `end` < '2024-12-28 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-28 10:08:17] Production.INFO: count ==714 [2024-12-28 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:08:05 - End Time 2024-12-28 10:08:05 [2024-12-28 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120818', 'tblTempUsageDetail_20' ) start [2024-12-28 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120818', 'tblTempUsageDetail_20' ) end [2024-12-28 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120818', 'tblTempVendorCDR_20' ) start [2024-12-28 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120818', 'tblTempVendorCDR_20' ) end [2024-12-28 10:08:18] Production.INFO: ProcessCDR(1,14120818,1,1,2) [2024-12-28 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120818', 'tblTempUsageDetail_20' ) start [2024-12-28 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120818', 'tblTempUsageDetail_20' ) end [2024-12-28 10:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:08:21] Production.INFO: ==1875== Releasing lock... [2024-12-28 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:08:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:09:04 [end_date_ymd] => 2024-12-28 10:09:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:09:04' and `end` < '2024-12-28 10: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-28 10:09:18] Production.INFO: count ==720 [2024-12-28 10:09:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:09:04 - End Time 2024-12-28 10:09:04 [2024-12-28 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120823', 'tblTempUsageDetail_20' ) start [2024-12-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120823', 'tblTempUsageDetail_20' ) end [2024-12-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120823', 'tblTempVendorCDR_20' ) start [2024-12-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120823', 'tblTempVendorCDR_20' ) end [2024-12-28 10:09:19] Production.INFO: ProcessCDR(1,14120823,1,1,2) [2024-12-28 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120823', 'tblTempUsageDetail_20' ) start [2024-12-28 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120823', 'tblTempUsageDetail_20' ) end [2024-12-28 10:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:09:22] Production.INFO: ==1950== Releasing lock... [2024-12-28 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:09:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:10:06 [end_date_ymd] => 2024-12-28 10:10:06 [RateCDR] => 1 ) [2024-12-28 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:10:06' and `end` < '2024-12-28 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:10:18] Production.INFO: count ==733 [2024-12-28 10:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:10:06 - End Time 2024-12-28 10:10:06 [2024-12-28 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120827', 'tblTempUsageDetail_20' ) start [2024-12-28 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120827', 'tblTempUsageDetail_20' ) end [2024-12-28 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120827', 'tblTempVendorCDR_20' ) start [2024-12-28 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120827', 'tblTempVendorCDR_20' ) end [2024-12-28 10:10:18] Production.INFO: ProcessCDR(1,14120827,1,1,2) [2024-12-28 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120827', 'tblTempUsageDetail_20' ) start [2024-12-28 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120827', 'tblTempUsageDetail_20' ) end [2024-12-28 10:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:10:23] Production.INFO: ==2024== Releasing lock... [2024-12-28 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:10:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:11:04 [end_date_ymd] => 2024-12-28 10:11:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:11:04' and `end` < '2024-12-28 10: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-28 10:11:17] Production.INFO: count ==748 [2024-12-28 10:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:11:04 - End Time 2024-12-28 10:11:04 [2024-12-28 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120834', 'tblTempUsageDetail_20' ) start [2024-12-28 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120834', 'tblTempUsageDetail_20' ) end [2024-12-28 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120834', 'tblTempVendorCDR_20' ) start [2024-12-28 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120834', 'tblTempVendorCDR_20' ) end [2024-12-28 10:11:17] Production.INFO: ProcessCDR(1,14120834,1,1,2) [2024-12-28 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120834', 'tblTempUsageDetail_20' ) start [2024-12-28 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120834', 'tblTempUsageDetail_20' ) end [2024-12-28 10:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:11:20] Production.INFO: ==2104== Releasing lock... [2024-12-28 10:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:11:20] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:12:05 [end_date_ymd] => 2024-12-28 10:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:12:05' and `end` < '2024-12-28 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-28 10:12:18] Production.INFO: count ==749 [2024-12-28 10:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:12:05 - End Time 2024-12-28 10:12:05 [2024-12-28 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120839', 'tblTempUsageDetail_20' ) start [2024-12-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120839', 'tblTempUsageDetail_20' ) end [2024-12-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120839', 'tblTempVendorCDR_20' ) start [2024-12-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120839', 'tblTempVendorCDR_20' ) end [2024-12-28 10:12:18] Production.INFO: ProcessCDR(1,14120839,1,1,2) [2024-12-28 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120839', 'tblTempUsageDetail_20' ) start [2024-12-28 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120839', 'tblTempUsageDetail_20' ) end [2024-12-28 10:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:12:21] Production.INFO: ==2175== Releasing lock... [2024-12-28 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:12:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:13:05 [end_date_ymd] => 2024-12-28 10:13:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:13:05' and `end` < '2024-12-28 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-28 10:13:17] Production.INFO: count ==750 [2024-12-28 10:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:13:05 - End Time 2024-12-28 10:13:05 [2024-12-28 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120844', 'tblTempUsageDetail_20' ) start [2024-12-28 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120844', 'tblTempUsageDetail_20' ) end [2024-12-28 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120844', 'tblTempVendorCDR_20' ) start [2024-12-28 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120844', 'tblTempVendorCDR_20' ) end [2024-12-28 10:13:18] Production.INFO: ProcessCDR(1,14120844,1,1,2) [2024-12-28 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120844', 'tblTempUsageDetail_20' ) start [2024-12-28 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120844', 'tblTempUsageDetail_20' ) end [2024-12-28 10:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:13:22] Production.INFO: ==2247== Releasing lock... [2024-12-28 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:13:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:14:05 [end_date_ymd] => 2024-12-28 10:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:14:05' and `end` < '2024-12-28 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-28 10:14:17] Production.INFO: count ==750 [2024-12-28 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:14:05 - End Time 2024-12-28 10:14:05 [2024-12-28 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120849', 'tblTempUsageDetail_20' ) start [2024-12-28 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120849', 'tblTempUsageDetail_20' ) end [2024-12-28 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120849', 'tblTempVendorCDR_20' ) start [2024-12-28 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120849', 'tblTempVendorCDR_20' ) end [2024-12-28 10:14:18] Production.INFO: ProcessCDR(1,14120849,1,1,2) [2024-12-28 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120849', 'tblTempUsageDetail_20' ) start [2024-12-28 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120849', 'tblTempUsageDetail_20' ) end [2024-12-28 10:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:14:21] Production.INFO: ==2318== Releasing lock... [2024-12-28 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:14:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:15:05 [end_date_ymd] => 2024-12-28 10:15:05 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:15:05' and `end` < '2024-12-28 10: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-28 10:15:18] Production.INFO: count ==763 [2024-12-28 10:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:15:05 - End Time 2024-12-28 10:15:05 [2024-12-28 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120854', 'tblTempUsageDetail_20' ) start [2024-12-28 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120854', 'tblTempUsageDetail_20' ) end [2024-12-28 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120854', 'tblTempVendorCDR_20' ) start [2024-12-28 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120854', 'tblTempVendorCDR_20' ) end [2024-12-28 10:15:18] Production.INFO: ProcessCDR(1,14120854,1,1,2) [2024-12-28 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120854', 'tblTempUsageDetail_20' ) start [2024-12-28 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120854', 'tblTempUsageDetail_20' ) end [2024-12-28 10:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:15:21] Production.INFO: ==2393== Releasing lock... [2024-12-28 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:15:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:16:04 [end_date_ymd] => 2024-12-28 10:16:04 [RateCDR] => 1 ) [2024-12-28 10:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:16:04' and `end` < '2024-12-28 10:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:16:17] Production.INFO: count ==763 [2024-12-28 10:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:16:04 - End Time 2024-12-28 10:16:04 [2024-12-28 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120859', 'tblTempUsageDetail_20' ) start [2024-12-28 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120859', 'tblTempUsageDetail_20' ) end [2024-12-28 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120859', 'tblTempVendorCDR_20' ) start [2024-12-28 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120859', 'tblTempVendorCDR_20' ) end [2024-12-28 10:16:18] Production.INFO: ProcessCDR(1,14120859,1,1,2) [2024-12-28 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120859', 'tblTempUsageDetail_20' ) start [2024-12-28 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120859', 'tblTempUsageDetail_20' ) end [2024-12-28 10:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:16:21] Production.INFO: ==2502== Releasing lock... [2024-12-28 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:16:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:17:05 [end_date_ymd] => 2024-12-28 10:17:05 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:17:05' and `end` < '2024-12-28 10: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-28 10:17:18] Production.INFO: count ==768 [2024-12-28 10:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:17:05 - End Time 2024-12-28 10:17:05 [2024-12-28 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120864', 'tblTempUsageDetail_20' ) start [2024-12-28 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120864', 'tblTempUsageDetail_20' ) end [2024-12-28 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120864', 'tblTempVendorCDR_20' ) start [2024-12-28 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120864', 'tblTempVendorCDR_20' ) end [2024-12-28 10:17:19] Production.INFO: ProcessCDR(1,14120864,1,1,2) [2024-12-28 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120864', 'tblTempUsageDetail_20' ) start [2024-12-28 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120864', 'tblTempUsageDetail_20' ) end [2024-12-28 10:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:17:22] Production.INFO: ==2579== Releasing lock... [2024-12-28 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:17:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:18:05 [end_date_ymd] => 2024-12-28 10:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:18:05' and `end` < '2024-12-28 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-28 10:18:17] Production.INFO: count ==771 [2024-12-28 10:18:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:18:05 - End Time 2024-12-28 10:18:05 [2024-12-28 10:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120869', 'tblTempUsageDetail_20' ) start [2024-12-28 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120869', 'tblTempUsageDetail_20' ) end [2024-12-28 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120869', 'tblTempVendorCDR_20' ) start [2024-12-28 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120869', 'tblTempVendorCDR_20' ) end [2024-12-28 10:18:17] Production.INFO: ProcessCDR(1,14120869,1,1,2) [2024-12-28 10:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120869', 'tblTempUsageDetail_20' ) start [2024-12-28 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120869', 'tblTempUsageDetail_20' ) end [2024-12-28 10:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:18:21] Production.INFO: ==2650== Releasing lock... [2024-12-28 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:18:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:19:05 [end_date_ymd] => 2024-12-28 10:19:05 [RateCDR] => 1 ) [2024-12-28 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:19:05' and `end` < '2024-12-28 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:19:19] Production.INFO: count ==771 [2024-12-28 10:19:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:19:05 - End Time 2024-12-28 10:19:05 [2024-12-28 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120874', 'tblTempUsageDetail_20' ) start [2024-12-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120874', 'tblTempUsageDetail_20' ) end [2024-12-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120874', 'tblTempVendorCDR_20' ) start [2024-12-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120874', 'tblTempVendorCDR_20' ) end [2024-12-28 10:19:19] Production.INFO: ProcessCDR(1,14120874,1,1,2) [2024-12-28 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120874', 'tblTempUsageDetail_20' ) start [2024-12-28 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120874', 'tblTempUsageDetail_20' ) end [2024-12-28 10:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:19:22] Production.INFO: ==2725== Releasing lock... [2024-12-28 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:19:22] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:20:05 [end_date_ymd] => 2024-12-28 10:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:20:05' and `end` < '2024-12-28 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-28 10:20:18] Production.INFO: count ==778 [2024-12-28 10:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:20:05 - End Time 2024-12-28 10:20:05 [2024-12-28 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120880', 'tblTempUsageDetail_20' ) start [2024-12-28 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120880', 'tblTempUsageDetail_20' ) end [2024-12-28 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120880', 'tblTempVendorCDR_20' ) start [2024-12-28 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120880', 'tblTempVendorCDR_20' ) end [2024-12-28 10:20:18] Production.INFO: ProcessCDR(1,14120880,1,1,2) [2024-12-28 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120880', 'tblTempUsageDetail_20' ) start [2024-12-28 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120880', 'tblTempUsageDetail_20' ) end [2024-12-28 10:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:20:21] Production.INFO: ==2814== Releasing lock... [2024-12-28 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:20:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:21:05 [end_date_ymd] => 2024-12-28 10:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:21:05' and `end` < '2024-12-28 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-28 10:21:17] Production.INFO: count ==790 [2024-12-28 10:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:21:05 - End Time 2024-12-28 10:21:05 [2024-12-28 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120885', 'tblTempUsageDetail_20' ) start [2024-12-28 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120885', 'tblTempUsageDetail_20' ) end [2024-12-28 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120885', 'tblTempVendorCDR_20' ) start [2024-12-28 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120885', 'tblTempVendorCDR_20' ) end [2024-12-28 10:21:18] Production.INFO: ProcessCDR(1,14120885,1,1,2) [2024-12-28 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120885', 'tblTempUsageDetail_20' ) start [2024-12-28 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120885', 'tblTempUsageDetail_20' ) end [2024-12-28 10:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:21:21] Production.INFO: ==2911== Releasing lock... [2024-12-28 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:21:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:22:04 [end_date_ymd] => 2024-12-28 10:22:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:22:04' and `end` < '2024-12-28 10: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-28 10:22:19] Production.INFO: count ==791 [2024-12-28 10:22:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:22:04 - End Time 2024-12-28 10:22:04 [2024-12-28 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120890', 'tblTempUsageDetail_20' ) start [2024-12-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120890', 'tblTempUsageDetail_20' ) end [2024-12-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120890', 'tblTempVendorCDR_20' ) start [2024-12-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120890', 'tblTempVendorCDR_20' ) end [2024-12-28 10:22:19] Production.INFO: ProcessCDR(1,14120890,1,1,2) [2024-12-28 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120890', 'tblTempUsageDetail_20' ) start [2024-12-28 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120890', 'tblTempUsageDetail_20' ) end [2024-12-28 10:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:22:23] Production.INFO: ==3012== Releasing lock... [2024-12-28 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:22:23] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:23:05 [end_date_ymd] => 2024-12-28 10:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:23:05' and `end` < '2024-12-28 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-28 10:23:18] Production.INFO: count ==791 [2024-12-28 10:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:23:05 - End Time 2024-12-28 10:23:05 [2024-12-28 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120895', 'tblTempUsageDetail_20' ) start [2024-12-28 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120895', 'tblTempUsageDetail_20' ) end [2024-12-28 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120895', 'tblTempVendorCDR_20' ) start [2024-12-28 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120895', 'tblTempVendorCDR_20' ) end [2024-12-28 10:23:18] Production.INFO: ProcessCDR(1,14120895,1,1,2) [2024-12-28 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120895', 'tblTempUsageDetail_20' ) start [2024-12-28 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120895', 'tblTempUsageDetail_20' ) end [2024-12-28 10:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:23:21] Production.INFO: ==3088== Releasing lock... [2024-12-28 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:23:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:24:06 [end_date_ymd] => 2024-12-28 10:24:06 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:24:06' and `end` < '2024-12-28 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:24:18] Production.INFO: count ==793 [2024-12-28 10:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:24:06 - End Time 2024-12-28 10:24:06 [2024-12-28 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120900', 'tblTempUsageDetail_20' ) start [2024-12-28 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120900', 'tblTempUsageDetail_20' ) end [2024-12-28 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120900', 'tblTempVendorCDR_20' ) start [2024-12-28 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120900', 'tblTempVendorCDR_20' ) end [2024-12-28 10:24:18] Production.INFO: ProcessCDR(1,14120900,1,1,2) [2024-12-28 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120900', 'tblTempUsageDetail_20' ) start [2024-12-28 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120900', 'tblTempUsageDetail_20' ) end [2024-12-28 10:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:24:23] Production.INFO: ==3161== Releasing lock... [2024-12-28 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:24:23] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:25:05 [end_date_ymd] => 2024-12-28 10:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:25:05' and `end` < '2024-12-28 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-28 10:25:17] Production.INFO: count ==793 [2024-12-28 10:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:25:05 - End Time 2024-12-28 10:25:05 [2024-12-28 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120905', 'tblTempUsageDetail_20' ) start [2024-12-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120905', 'tblTempUsageDetail_20' ) end [2024-12-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120905', 'tblTempVendorCDR_20' ) start [2024-12-28 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120905', 'tblTempVendorCDR_20' ) end [2024-12-28 10:25:17] Production.INFO: ProcessCDR(1,14120905,1,1,2) [2024-12-28 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120905', 'tblTempUsageDetail_20' ) start [2024-12-28 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120905', 'tblTempUsageDetail_20' ) end [2024-12-28 10:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:25:21] Production.INFO: ==3232== Releasing lock... [2024-12-28 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:25:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:26:05 [end_date_ymd] => 2024-12-28 10:26:05 [RateCDR] => 1 ) [2024-12-28 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:26:05' and `end` < '2024-12-28 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:26:19] Production.INFO: count ==794 [2024-12-28 10:26:20] Production.ERROR: pbx CDR StartTime 2024-12-28 07:26:05 - End Time 2024-12-28 10:26:05 [2024-12-28 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120910', 'tblTempUsageDetail_20' ) start [2024-12-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120910', 'tblTempUsageDetail_20' ) end [2024-12-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120910', 'tblTempVendorCDR_20' ) start [2024-12-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120910', 'tblTempVendorCDR_20' ) end [2024-12-28 10:26:20] Production.INFO: ProcessCDR(1,14120910,1,1,2) [2024-12-28 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120910', 'tblTempUsageDetail_20' ) start [2024-12-28 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120910', 'tblTempUsageDetail_20' ) end [2024-12-28 10:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:26:24] Production.INFO: ==3306== Releasing lock... [2024-12-28 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:26:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:27:04 [end_date_ymd] => 2024-12-28 10:27:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:27:04' and `end` < '2024-12-28 10: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-28 10:27:16] Production.INFO: count ==807 [2024-12-28 10:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:27:04 - End Time 2024-12-28 10:27:04 [2024-12-28 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120915', 'tblTempUsageDetail_20' ) start [2024-12-28 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120915', 'tblTempUsageDetail_20' ) end [2024-12-28 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120915', 'tblTempVendorCDR_20' ) start [2024-12-28 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120915', 'tblTempVendorCDR_20' ) end [2024-12-28 10:27:17] Production.INFO: ProcessCDR(1,14120915,1,1,2) [2024-12-28 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120915', 'tblTempUsageDetail_20' ) start [2024-12-28 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120915', 'tblTempUsageDetail_20' ) end [2024-12-28 10:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:27:20] Production.INFO: ==3377== Releasing lock... [2024-12-28 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:27:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:28:05 [end_date_ymd] => 2024-12-28 10:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:28:05' and `end` < '2024-12-28 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-28 10:28:17] Production.INFO: count ==810 [2024-12-28 10:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:28:05 - End Time 2024-12-28 10:28:05 [2024-12-28 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120920', 'tblTempUsageDetail_20' ) start [2024-12-28 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120920', 'tblTempUsageDetail_20' ) end [2024-12-28 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120920', 'tblTempVendorCDR_20' ) start [2024-12-28 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120920', 'tblTempVendorCDR_20' ) end [2024-12-28 10:28:17] Production.INFO: ProcessCDR(1,14120920,1,1,2) [2024-12-28 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120920', 'tblTempUsageDetail_20' ) start [2024-12-28 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120920', 'tblTempUsageDetail_20' ) end [2024-12-28 10:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:28:21] Production.INFO: ==3449== Releasing lock... [2024-12-28 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:28:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:29:04 [end_date_ymd] => 2024-12-28 10:29:04 [RateCDR] => 1 ) [2024-12-28 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-28 07:29:04' and `end` < '2024-12-28 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-28 10:29:18] Production.INFO: count ==814 [2024-12-28 10:29:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:29:04 - End Time 2024-12-28 10:29:04 [2024-12-28 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120925', 'tblTempUsageDetail_20' ) start [2024-12-28 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120925', 'tblTempUsageDetail_20' ) end [2024-12-28 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120925', 'tblTempVendorCDR_20' ) start [2024-12-28 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120925', 'tblTempVendorCDR_20' ) end [2024-12-28 10:29:18] Production.INFO: ProcessCDR(1,14120925,1,1,2) [2024-12-28 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120925', 'tblTempUsageDetail_20' ) start [2024-12-28 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120925', 'tblTempUsageDetail_20' ) end [2024-12-28 10:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:29:23] Production.INFO: ==3519== Releasing lock... [2024-12-28 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:29:23] Production.INFO: 34 MB #Memory Used# [2024-12-28 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:30:05 [end_date_ymd] => 2024-12-28 10:30:05 [RateCDR] => 1 ) [2024-12-28 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:30:05' and `end` < '2024-12-28 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:30:18] Production.INFO: count ==829 [2024-12-28 10:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:30:05 - End Time 2024-12-28 10:30:05 [2024-12-28 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120931', 'tblTempUsageDetail_20' ) start [2024-12-28 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120931', 'tblTempUsageDetail_20' ) end [2024-12-28 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120931', 'tblTempVendorCDR_20' ) start [2024-12-28 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120931', 'tblTempVendorCDR_20' ) end [2024-12-28 10:30:18] Production.INFO: ProcessCDR(1,14120931,1,1,2) [2024-12-28 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120931', 'tblTempUsageDetail_20' ) start [2024-12-28 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120931', 'tblTempUsageDetail_20' ) end [2024-12-28 10:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:30:21] Production.INFO: ==3596== Releasing lock... [2024-12-28 10:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:30:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:31:05 [end_date_ymd] => 2024-12-28 10:31:05 [RateCDR] => 1 ) [2024-12-28 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:31:05' and `end` < '2024-12-28 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:31:18] Production.INFO: count ==849 [2024-12-28 10:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:31:05 - End Time 2024-12-28 10:31:05 [2024-12-28 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120936', 'tblTempUsageDetail_20' ) start [2024-12-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120936', 'tblTempUsageDetail_20' ) end [2024-12-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120936', 'tblTempVendorCDR_20' ) start [2024-12-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120936', 'tblTempVendorCDR_20' ) end [2024-12-28 10:31:19] Production.INFO: ProcessCDR(1,14120936,1,1,2) [2024-12-28 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120936', 'tblTempUsageDetail_20' ) start [2024-12-28 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120936', 'tblTempUsageDetail_20' ) end [2024-12-28 10:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:31:22] Production.INFO: ==3708== Releasing lock... [2024-12-28 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:31:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:32:05 [end_date_ymd] => 2024-12-28 10:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:32:05' and `end` < '2024-12-28 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-28 10:32:17] Production.INFO: count ==852 [2024-12-28 10:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:32:05 - End Time 2024-12-28 10:32:05 [2024-12-28 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120941', 'tblTempUsageDetail_20' ) start [2024-12-28 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120941', 'tblTempUsageDetail_20' ) end [2024-12-28 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120941', 'tblTempVendorCDR_20' ) start [2024-12-28 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120941', 'tblTempVendorCDR_20' ) end [2024-12-28 10:32:18] Production.INFO: ProcessCDR(1,14120941,1,1,2) [2024-12-28 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120941', 'tblTempUsageDetail_20' ) start [2024-12-28 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120941', 'tblTempUsageDetail_20' ) end [2024-12-28 10:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:32:22] Production.INFO: ==3779== Releasing lock... [2024-12-28 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:32:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:33:05 [end_date_ymd] => 2024-12-28 10:33:05 [RateCDR] => 1 ) [2024-12-28 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:33:05' and `end` < '2024-12-28 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:33:17] Production.INFO: count ==865 [2024-12-28 10:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:33:05 - End Time 2024-12-28 10:33:05 [2024-12-28 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120946', 'tblTempUsageDetail_20' ) start [2024-12-28 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120946', 'tblTempUsageDetail_20' ) end [2024-12-28 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120946', 'tblTempVendorCDR_20' ) start [2024-12-28 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120946', 'tblTempVendorCDR_20' ) end [2024-12-28 10:33:18] Production.INFO: ProcessCDR(1,14120946,1,1,2) [2024-12-28 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120946', 'tblTempUsageDetail_20' ) start [2024-12-28 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120946', 'tblTempUsageDetail_20' ) end [2024-12-28 10:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:33:21] Production.INFO: ==3850== Releasing lock... [2024-12-28 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:33:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:34:04 [end_date_ymd] => 2024-12-28 10:34:04 [RateCDR] => 1 ) [2024-12-28 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-28 07:34:04' and `end` < '2024-12-28 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-28 10:34:17] Production.INFO: count ==865 [2024-12-28 10:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:34:04 - End Time 2024-12-28 10:34:04 [2024-12-28 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120951', 'tblTempUsageDetail_20' ) start [2024-12-28 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120951', 'tblTempUsageDetail_20' ) end [2024-12-28 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120951', 'tblTempVendorCDR_20' ) start [2024-12-28 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120951', 'tblTempVendorCDR_20' ) end [2024-12-28 10:34:17] Production.INFO: ProcessCDR(1,14120951,1,1,2) [2024-12-28 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120951', 'tblTempUsageDetail_20' ) start [2024-12-28 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120951', 'tblTempUsageDetail_20' ) end [2024-12-28 10:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:34:20] Production.INFO: ==3920== Releasing lock... [2024-12-28 10:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:34:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:35:05 [end_date_ymd] => 2024-12-28 10:35:05 [RateCDR] => 1 ) [2024-12-28 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:35:05' and `end` < '2024-12-28 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:35:18] Production.INFO: count ==865 [2024-12-28 10:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:35:05 - End Time 2024-12-28 10:35:05 [2024-12-28 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120956', 'tblTempUsageDetail_20' ) start [2024-12-28 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120956', 'tblTempUsageDetail_20' ) end [2024-12-28 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120956', 'tblTempVendorCDR_20' ) start [2024-12-28 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120956', 'tblTempVendorCDR_20' ) end [2024-12-28 10:35:18] Production.INFO: ProcessCDR(1,14120956,1,1,2) [2024-12-28 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120956', 'tblTempUsageDetail_20' ) start [2024-12-28 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120956', 'tblTempUsageDetail_20' ) end [2024-12-28 10:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:35:21] Production.INFO: ==3992== Releasing lock... [2024-12-28 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:35:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-28 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:36:04 [end_date_ymd] => 2024-12-28 10:36:04 [RateCDR] => 1 ) [2024-12-28 10:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:36:04' and `end` < '2024-12-28 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:36:18] Production.INFO: count ==874 [2024-12-28 10:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:36:04 - End Time 2024-12-28 10:36:04 [2024-12-28 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120961', 'tblTempUsageDetail_20' ) start [2024-12-28 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120961', 'tblTempUsageDetail_20' ) end [2024-12-28 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120961', 'tblTempVendorCDR_20' ) start [2024-12-28 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120961', 'tblTempVendorCDR_20' ) end [2024-12-28 10:36:18] Production.INFO: ProcessCDR(1,14120961,1,1,2) [2024-12-28 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120961', 'tblTempUsageDetail_20' ) start [2024-12-28 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120961', 'tblTempUsageDetail_20' ) end [2024-12-28 10:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:36:22] Production.INFO: ==4066== Releasing lock... [2024-12-28 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:36:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:37:05 [end_date_ymd] => 2024-12-28 10:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:37:05' and `end` < '2024-12-28 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-28 10:37:20] Production.INFO: count ==875 [2024-12-28 10:37:20] Production.ERROR: pbx CDR StartTime 2024-12-28 07:37:05 - End Time 2024-12-28 10:37:05 [2024-12-28 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120966', 'tblTempUsageDetail_20' ) start [2024-12-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120966', 'tblTempUsageDetail_20' ) end [2024-12-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120966', 'tblTempVendorCDR_20' ) start [2024-12-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120966', 'tblTempVendorCDR_20' ) end [2024-12-28 10:37:20] Production.INFO: ProcessCDR(1,14120966,1,1,2) [2024-12-28 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120966', 'tblTempUsageDetail_20' ) start [2024-12-28 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120966', 'tblTempUsageDetail_20' ) end [2024-12-28 10:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:37:24] Production.INFO: ==4139== Releasing lock... [2024-12-28 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:37:24] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:38:04 [end_date_ymd] => 2024-12-28 10:38:04 [RateCDR] => 1 ) [2024-12-28 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-28 07:38:04' and `end` < '2024-12-28 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-28 10:38:18] Production.INFO: count ==876 [2024-12-28 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:38:04 - End Time 2024-12-28 10:38:04 [2024-12-28 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120971', 'tblTempUsageDetail_20' ) start [2024-12-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120971', 'tblTempUsageDetail_20' ) end [2024-12-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120971', 'tblTempVendorCDR_20' ) start [2024-12-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120971', 'tblTempVendorCDR_20' ) end [2024-12-28 10:38:19] Production.INFO: ProcessCDR(1,14120971,1,1,2) [2024-12-28 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120971', 'tblTempUsageDetail_20' ) start [2024-12-28 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120971', 'tblTempUsageDetail_20' ) end [2024-12-28 10:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:38:23] Production.INFO: ==4211== Releasing lock... [2024-12-28 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:38:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:39:05 [end_date_ymd] => 2024-12-28 10:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:39:05' and `end` < '2024-12-28 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-28 10:39:17] Production.INFO: count ==894 [2024-12-28 10:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:39:05 - End Time 2024-12-28 10:39:05 [2024-12-28 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120976', 'tblTempUsageDetail_20' ) start [2024-12-28 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120976', 'tblTempUsageDetail_20' ) end [2024-12-28 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120976', 'tblTempVendorCDR_20' ) start [2024-12-28 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120976', 'tblTempVendorCDR_20' ) end [2024-12-28 10:39:18] Production.INFO: ProcessCDR(1,14120976,1,1,2) [2024-12-28 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120976', 'tblTempUsageDetail_20' ) start [2024-12-28 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120976', 'tblTempUsageDetail_20' ) end [2024-12-28 10:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:39:21] Production.INFO: ==4283== Releasing lock... [2024-12-28 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:39:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:40:06 [end_date_ymd] => 2024-12-28 10:40:06 [RateCDR] => 1 ) [2024-12-28 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:40:06' and `end` < '2024-12-28 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:40:18] Production.INFO: count ==895 [2024-12-28 10:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:40:06 - End Time 2024-12-28 10:40:06 [2024-12-28 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120981', 'tblTempUsageDetail_20' ) start [2024-12-28 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120981', 'tblTempUsageDetail_20' ) end [2024-12-28 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120981', 'tblTempVendorCDR_20' ) start [2024-12-28 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120981', 'tblTempVendorCDR_20' ) end [2024-12-28 10:40:18] Production.INFO: ProcessCDR(1,14120981,1,1,2) [2024-12-28 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120981', 'tblTempUsageDetail_20' ) start [2024-12-28 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120981', 'tblTempUsageDetail_20' ) end [2024-12-28 10:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:40:23] Production.INFO: ==4356== Releasing lock... [2024-12-28 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:40:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:41:05 [end_date_ymd] => 2024-12-28 10:41:05 [RateCDR] => 1 ) [2024-12-28 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:41:05' and `end` < '2024-12-28 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:41:17] Production.INFO: count ==917 [2024-12-28 10:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:41:05 - End Time 2024-12-28 10:41:05 [2024-12-28 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120987', 'tblTempUsageDetail_20' ) start [2024-12-28 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120987', 'tblTempUsageDetail_20' ) end [2024-12-28 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120987', 'tblTempVendorCDR_20' ) start [2024-12-28 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120987', 'tblTempVendorCDR_20' ) end [2024-12-28 10:41:18] Production.INFO: ProcessCDR(1,14120987,1,1,2) [2024-12-28 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120987', 'tblTempUsageDetail_20' ) start [2024-12-28 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120987', 'tblTempUsageDetail_20' ) end [2024-12-28 10:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:41:21] Production.INFO: ==4430== Releasing lock... [2024-12-28 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:41:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:42:05 [end_date_ymd] => 2024-12-28 10:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:42:05' and `end` < '2024-12-28 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-28 10:42:17] Production.INFO: count ==917 [2024-12-28 10:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:42:05 - End Time 2024-12-28 10:42:05 [2024-12-28 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120992', 'tblTempUsageDetail_20' ) start [2024-12-28 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120992', 'tblTempUsageDetail_20' ) end [2024-12-28 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120992', 'tblTempVendorCDR_20' ) start [2024-12-28 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120992', 'tblTempVendorCDR_20' ) end [2024-12-28 10:42:18] Production.INFO: ProcessCDR(1,14120992,1,1,2) [2024-12-28 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120992', 'tblTempUsageDetail_20' ) start [2024-12-28 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120992', 'tblTempUsageDetail_20' ) end [2024-12-28 10:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:42:21] Production.INFO: ==4500== Releasing lock... [2024-12-28 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:42:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:43:05 [end_date_ymd] => 2024-12-28 10:43:05 [RateCDR] => 1 ) [2024-12-28 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:43:05' and `end` < '2024-12-28 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:43:20] Production.INFO: count ==918 [2024-12-28 10:43:20] Production.ERROR: pbx CDR StartTime 2024-12-28 07:43:05 - End Time 2024-12-28 10:43:05 [2024-12-28 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120997', 'tblTempUsageDetail_20' ) start [2024-12-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14120997', 'tblTempUsageDetail_20' ) end [2024-12-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120997', 'tblTempVendorCDR_20' ) start [2024-12-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14120997', 'tblTempVendorCDR_20' ) end [2024-12-28 10:43:20] Production.INFO: ProcessCDR(1,14120997,1,1,2) [2024-12-28 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14120997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14120997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14120997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14120997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120997', 'tblTempUsageDetail_20' ) start [2024-12-28 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14120997', 'tblTempUsageDetail_20' ) end [2024-12-28 10:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:43:25] Production.INFO: ==4570== Releasing lock... [2024-12-28 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:43:25] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:44:05 [end_date_ymd] => 2024-12-28 10:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:44:05' and `end` < '2024-12-28 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-28 10:44:18] Production.INFO: count ==918 [2024-12-28 10:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:44:05 - End Time 2024-12-28 10:44:05 [2024-12-28 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121002', 'tblTempUsageDetail_20' ) start [2024-12-28 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121002', 'tblTempUsageDetail_20' ) end [2024-12-28 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121002', 'tblTempVendorCDR_20' ) start [2024-12-28 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121002', 'tblTempVendorCDR_20' ) end [2024-12-28 10:44:19] Production.INFO: ProcessCDR(1,14121002,1,1,2) [2024-12-28 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121002', 'tblTempUsageDetail_20' ) start [2024-12-28 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121002', 'tblTempUsageDetail_20' ) end [2024-12-28 10:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:44:22] Production.INFO: ==4649== Releasing lock... [2024-12-28 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:44:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:45:04 [end_date_ymd] => 2024-12-28 10:45:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:45:04' and `end` < '2024-12-28 10: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-28 10:45:17] Production.INFO: count ==918 [2024-12-28 10:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:45:04 - End Time 2024-12-28 10:45:04 [2024-12-28 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121007', 'tblTempUsageDetail_20' ) start [2024-12-28 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121007', 'tblTempUsageDetail_20' ) end [2024-12-28 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121007', 'tblTempVendorCDR_20' ) start [2024-12-28 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121007', 'tblTempVendorCDR_20' ) end [2024-12-28 10:45:17] Production.INFO: ProcessCDR(1,14121007,1,1,2) [2024-12-28 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121007', 'tblTempUsageDetail_20' ) start [2024-12-28 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121007', 'tblTempUsageDetail_20' ) end [2024-12-28 10:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:45:20] Production.INFO: ==4720== Releasing lock... [2024-12-28 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:45:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:46:05 [end_date_ymd] => 2024-12-28 10:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:46:05' and `end` < '2024-12-28 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-28 10:46:19] Production.INFO: count ==919 [2024-12-28 10:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:46:05 - End Time 2024-12-28 10:46:05 [2024-12-28 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121012', 'tblTempUsageDetail_20' ) start [2024-12-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121012', 'tblTempUsageDetail_20' ) end [2024-12-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121012', 'tblTempVendorCDR_20' ) start [2024-12-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121012', 'tblTempVendorCDR_20' ) end [2024-12-28 10:46:19] Production.INFO: ProcessCDR(1,14121012,1,1,2) [2024-12-28 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121012', 'tblTempUsageDetail_20' ) start [2024-12-28 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121012', 'tblTempUsageDetail_20' ) end [2024-12-28 10:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:46:23] Production.INFO: ==4792== Releasing lock... [2024-12-28 10:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:46:23] Production.INFO: 35 MB #Memory Used# [2024-12-28 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:47:05 [end_date_ymd] => 2024-12-28 10:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:47:05' and `end` < '2024-12-28 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-28 10:47:17] Production.INFO: count ==919 [2024-12-28 10:47:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:47:05 - End Time 2024-12-28 10:47:05 [2024-12-28 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121017', 'tblTempUsageDetail_20' ) start [2024-12-28 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121017', 'tblTempUsageDetail_20' ) end [2024-12-28 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121017', 'tblTempVendorCDR_20' ) start [2024-12-28 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121017', 'tblTempVendorCDR_20' ) end [2024-12-28 10:47:17] Production.INFO: ProcessCDR(1,14121017,1,1,2) [2024-12-28 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121017', 'tblTempUsageDetail_20' ) start [2024-12-28 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121017', 'tblTempUsageDetail_20' ) end [2024-12-28 10:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:47:21] Production.INFO: ==4905== Releasing lock... [2024-12-28 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:47:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:48:05 [end_date_ymd] => 2024-12-28 10:48:05 [RateCDR] => 1 ) [2024-12-28 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:48:05' and `end` < '2024-12-28 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:48:17] Production.INFO: count ==923 [2024-12-28 10:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:48:05 - End Time 2024-12-28 10:48:05 [2024-12-28 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121022', 'tblTempUsageDetail_20' ) start [2024-12-28 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121022', 'tblTempUsageDetail_20' ) end [2024-12-28 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121022', 'tblTempVendorCDR_20' ) start [2024-12-28 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121022', 'tblTempVendorCDR_20' ) end [2024-12-28 10:48:18] Production.INFO: ProcessCDR(1,14121022,1,1,2) [2024-12-28 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121022', 'tblTempUsageDetail_20' ) start [2024-12-28 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121022', 'tblTempUsageDetail_20' ) end [2024-12-28 10:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:48:23] Production.INFO: ==4974== Releasing lock... [2024-12-28 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:48:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-28 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:49:05 [end_date_ymd] => 2024-12-28 10:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:49:05' and `end` < '2024-12-28 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-28 10:49:17] Production.INFO: count ==930 [2024-12-28 10:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:49:05 - End Time 2024-12-28 10:49:05 [2024-12-28 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121027', 'tblTempUsageDetail_20' ) start [2024-12-28 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121027', 'tblTempUsageDetail_20' ) end [2024-12-28 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121027', 'tblTempVendorCDR_20' ) start [2024-12-28 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121027', 'tblTempVendorCDR_20' ) end [2024-12-28 10:49:18] Production.INFO: ProcessCDR(1,14121027,1,1,2) [2024-12-28 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121027', 'tblTempUsageDetail_20' ) start [2024-12-28 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121027', 'tblTempUsageDetail_20' ) end [2024-12-28 10:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:49:22] Production.INFO: ==5045== Releasing lock... [2024-12-28 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:49:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:50:05 [end_date_ymd] => 2024-12-28 10:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:50:05' and `end` < '2024-12-28 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-28 10:50:18] Production.INFO: count ==959 [2024-12-28 10:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:50:05 - End Time 2024-12-28 10:50:05 [2024-12-28 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121033', 'tblTempUsageDetail_20' ) start [2024-12-28 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121033', 'tblTempUsageDetail_20' ) end [2024-12-28 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121033', 'tblTempVendorCDR_20' ) start [2024-12-28 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121033', 'tblTempVendorCDR_20' ) end [2024-12-28 10:50:18] Production.INFO: ProcessCDR(1,14121033,1,1,2) [2024-12-28 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121033', 'tblTempUsageDetail_20' ) start [2024-12-28 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121033', 'tblTempUsageDetail_20' ) end [2024-12-28 10:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:50:21] Production.INFO: ==5121== Releasing lock... [2024-12-28 10:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:50:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:51:05 [end_date_ymd] => 2024-12-28 10:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:51:05' and `end` < '2024-12-28 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-28 10:51:17] Production.INFO: count ==1003 [2024-12-28 10:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:51:05 - End Time 2024-12-28 10:51:05 [2024-12-28 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121038', 'tblTempUsageDetail_20' ) start [2024-12-28 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121038', 'tblTempUsageDetail_20' ) end [2024-12-28 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121038', 'tblTempVendorCDR_20' ) start [2024-12-28 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121038', 'tblTempVendorCDR_20' ) end [2024-12-28 10:51:18] Production.INFO: ProcessCDR(1,14121038,1,1,2) [2024-12-28 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121038', 'tblTempUsageDetail_20' ) start [2024-12-28 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121038', 'tblTempUsageDetail_20' ) end [2024-12-28 10:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:51:22] Production.INFO: ==5195== Releasing lock... [2024-12-28 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:51:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:52:05 [end_date_ymd] => 2024-12-28 10:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:52:05' and `end` < '2024-12-28 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-28 10:52:18] Production.INFO: count ==1012 [2024-12-28 10:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:52:05 - End Time 2024-12-28 10:52:05 [2024-12-28 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121043', 'tblTempUsageDetail_20' ) start [2024-12-28 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121043', 'tblTempUsageDetail_20' ) end [2024-12-28 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121043', 'tblTempVendorCDR_20' ) start [2024-12-28 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121043', 'tblTempVendorCDR_20' ) end [2024-12-28 10:52:18] Production.INFO: ProcessCDR(1,14121043,1,1,2) [2024-12-28 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121043', 'tblTempUsageDetail_20' ) start [2024-12-28 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121043', 'tblTempUsageDetail_20' ) end [2024-12-28 10:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:52:23] Production.INFO: ==5265== Releasing lock... [2024-12-28 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:52:23] Production.INFO: 36 MB #Memory Used# [2024-12-28 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:53:04 [end_date_ymd] => 2024-12-28 10:53:04 [RateCDR] => 1 ) [2024-12-28 10:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:53:04' and `end` < '2024-12-28 10:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:53:19] Production.INFO: count ==1018 [2024-12-28 10:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:53:04 - End Time 2024-12-28 10:53:04 [2024-12-28 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121048', 'tblTempUsageDetail_20' ) start [2024-12-28 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121048', 'tblTempUsageDetail_20' ) end [2024-12-28 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121048', 'tblTempVendorCDR_20' ) start [2024-12-28 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121048', 'tblTempVendorCDR_20' ) end [2024-12-28 10:53:19] Production.INFO: ProcessCDR(1,14121048,1,1,2) [2024-12-28 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121048', 'tblTempUsageDetail_20' ) start [2024-12-28 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121048', 'tblTempUsageDetail_20' ) end [2024-12-28 10:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:53:22] Production.INFO: ==5337== Releasing lock... [2024-12-28 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:53:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:54:05 [end_date_ymd] => 2024-12-28 10:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 07:54:05' and `end` < '2024-12-28 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-28 10:54:19] Production.INFO: count ==1021 [2024-12-28 10:54:19] Production.ERROR: pbx CDR StartTime 2024-12-28 07:54:05 - End Time 2024-12-28 10:54:05 [2024-12-28 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121053', 'tblTempUsageDetail_20' ) start [2024-12-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121053', 'tblTempUsageDetail_20' ) end [2024-12-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121053', 'tblTempVendorCDR_20' ) start [2024-12-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121053', 'tblTempVendorCDR_20' ) end [2024-12-28 10:54:19] Production.INFO: ProcessCDR(1,14121053,1,1,2) [2024-12-28 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121053', 'tblTempUsageDetail_20' ) start [2024-12-28 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121053', 'tblTempUsageDetail_20' ) end [2024-12-28 10:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:54:23] Production.INFO: ==5409== Releasing lock... [2024-12-28 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:54:23] Production.INFO: 36 MB #Memory Used# [2024-12-28 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:55:04 [end_date_ymd] => 2024-12-28 10:55:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:55:04' and `end` < '2024-12-28 10: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-28 10:55:17] Production.INFO: count ==1027 [2024-12-28 10:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:55:04 - End Time 2024-12-28 10:55:04 [2024-12-28 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121058', 'tblTempUsageDetail_20' ) start [2024-12-28 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121058', 'tblTempUsageDetail_20' ) end [2024-12-28 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121058', 'tblTempVendorCDR_20' ) start [2024-12-28 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121058', 'tblTempVendorCDR_20' ) end [2024-12-28 10:55:17] Production.INFO: ProcessCDR(1,14121058,1,1,2) [2024-12-28 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121058', 'tblTempUsageDetail_20' ) start [2024-12-28 10:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121058', 'tblTempUsageDetail_20' ) end [2024-12-28 10:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:55:20] Production.INFO: ==5480== Releasing lock... [2024-12-28 10:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:55:20] Production.INFO: 36 MB #Memory Used# [2024-12-28 10:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:56:04 [end_date_ymd] => 2024-12-28 10:56:04 [RateCDR] => 1 ) [2024-12-28 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-28 07:56:04' and `end` < '2024-12-28 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-28 10:56:17] Production.INFO: count ==1029 [2024-12-28 10:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:56:04 - End Time 2024-12-28 10:56:04 [2024-12-28 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121063', 'tblTempUsageDetail_20' ) start [2024-12-28 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121063', 'tblTempUsageDetail_20' ) end [2024-12-28 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121063', 'tblTempVendorCDR_20' ) start [2024-12-28 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121063', 'tblTempVendorCDR_20' ) end [2024-12-28 10:56:17] Production.INFO: ProcessCDR(1,14121063,1,1,2) [2024-12-28 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121063', 'tblTempUsageDetail_20' ) start [2024-12-28 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121063', 'tblTempUsageDetail_20' ) end [2024-12-28 10:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:56:20] Production.INFO: ==5552== Releasing lock... [2024-12-28 10:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:56:20] Production.INFO: 36 MB #Memory Used# [2024-12-28 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:57:05 [end_date_ymd] => 2024-12-28 10:57:05 [RateCDR] => 1 ) [2024-12-28 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:57:05' and `end` < '2024-12-28 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:57:17] Production.INFO: count ==1042 [2024-12-28 10:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 07:57:05 - End Time 2024-12-28 10:57:05 [2024-12-28 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121068', 'tblTempUsageDetail_20' ) start [2024-12-28 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121068', 'tblTempUsageDetail_20' ) end [2024-12-28 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121068', 'tblTempVendorCDR_20' ) start [2024-12-28 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121068', 'tblTempVendorCDR_20' ) end [2024-12-28 10:57:18] Production.INFO: ProcessCDR(1,14121068,1,1,2) [2024-12-28 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121068', 'tblTempUsageDetail_20' ) start [2024-12-28 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121068', 'tblTempUsageDetail_20' ) end [2024-12-28 10:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:57:22] Production.INFO: ==5623== Releasing lock... [2024-12-28 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:57:22] Production.INFO: 36 MB #Memory Used# [2024-12-28 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:58:04 [end_date_ymd] => 2024-12-28 10:58:04 [RateCDR] => 1 ) [2024-12-28 10: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-28 07:58:04' and `end` < '2024-12-28 10: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-28 10:58:17] Production.INFO: count ==1062 [2024-12-28 10:58:17] Production.ERROR: pbx CDR StartTime 2024-12-28 07:58:04 - End Time 2024-12-28 10:58:04 [2024-12-28 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121073', 'tblTempUsageDetail_20' ) start [2024-12-28 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121073', 'tblTempUsageDetail_20' ) end [2024-12-28 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121073', 'tblTempVendorCDR_20' ) start [2024-12-28 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121073', 'tblTempVendorCDR_20' ) end [2024-12-28 10:58:17] Production.INFO: ProcessCDR(1,14121073,1,1,2) [2024-12-28 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121073', 'tblTempUsageDetail_20' ) start [2024-12-28 10:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121073', 'tblTempUsageDetail_20' ) end [2024-12-28 10:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:58:20] Production.INFO: ==5695== Releasing lock... [2024-12-28 10:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:58:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 07:59:05 [end_date_ymd] => 2024-12-28 10:59:05 [RateCDR] => 1 ) [2024-12-28 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 07:59:05' and `end` < '2024-12-28 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 10:59:21] Production.INFO: count ==1063 [2024-12-28 10:59:21] Production.ERROR: pbx CDR StartTime 2024-12-28 07:59:05 - End Time 2024-12-28 10:59:05 [2024-12-28 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121078', 'tblTempUsageDetail_20' ) start [2024-12-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121078', 'tblTempUsageDetail_20' ) end [2024-12-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121078', 'tblTempVendorCDR_20' ) start [2024-12-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121078', 'tblTempVendorCDR_20' ) end [2024-12-28 10:59:21] Production.INFO: ProcessCDR(1,14121078,1,1,2) [2024-12-28 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121078', 'tblTempUsageDetail_20' ) start [2024-12-28 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121078', 'tblTempUsageDetail_20' ) end [2024-12-28 10:59:26] Production.ERROR: pbx prc_insertCDR start [2024-12-28 10:59:26] Production.ERROR: pbx prc_insertCDR end [2024-12-28 10:59:26] Production.INFO: ==5769== Releasing lock... [2024-12-28 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 10:59:26] Production.INFO: 36.5 MB #Memory Used# [2024-12-28 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:00:05 [end_date_ymd] => 2024-12-28 11:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:00:05' and `end` < '2024-12-28 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-28 11:00:18] Production.INFO: count ==1069 [2024-12-28 11:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:00:05 - End Time 2024-12-28 11:00:05 [2024-12-28 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121084', 'tblTempUsageDetail_20' ) start [2024-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121084', 'tblTempUsageDetail_20' ) end [2024-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121084', 'tblTempVendorCDR_20' ) start [2024-12-28 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121084', 'tblTempVendorCDR_20' ) end [2024-12-28 11:00:18] Production.INFO: ProcessCDR(1,14121084,1,1,2) [2024-12-28 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121084', 'tblTempUsageDetail_20' ) start [2024-12-28 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121084', 'tblTempUsageDetail_20' ) end [2024-12-28 11:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:00:21] Production.INFO: ==5841== Releasing lock... [2024-12-28 11:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:00:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:01:05 [end_date_ymd] => 2024-12-28 11:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:01:05' and `end` < '2024-12-28 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-28 11:01:17] Production.INFO: count ==1096 [2024-12-28 11:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:01:05 - End Time 2024-12-28 11:01:05 [2024-12-28 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121089', 'tblTempUsageDetail_20' ) start [2024-12-28 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121089', 'tblTempUsageDetail_20' ) end [2024-12-28 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121089', 'tblTempVendorCDR_20' ) start [2024-12-28 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121089', 'tblTempVendorCDR_20' ) end [2024-12-28 11:01:18] Production.INFO: ProcessCDR(1,14121089,1,1,2) [2024-12-28 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121089', 'tblTempUsageDetail_20' ) start [2024-12-28 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121089', 'tblTempUsageDetail_20' ) end [2024-12-28 11:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:01:21] Production.INFO: ==6007== Releasing lock... [2024-12-28 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:01:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:02:04 [end_date_ymd] => 2024-12-28 11:02:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:02:04' and `end` < '2024-12-28 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-28 11:02:17] Production.INFO: count ==1104 [2024-12-28 11:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:02:04 - End Time 2024-12-28 11:02:04 [2024-12-28 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121094', 'tblTempUsageDetail_20' ) start [2024-12-28 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121094', 'tblTempUsageDetail_20' ) end [2024-12-28 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121094', 'tblTempVendorCDR_20' ) start [2024-12-28 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121094', 'tblTempVendorCDR_20' ) end [2024-12-28 11:02:17] Production.INFO: ProcessCDR(1,14121094,1,1,2) [2024-12-28 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121094', 'tblTempUsageDetail_20' ) start [2024-12-28 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121094', 'tblTempUsageDetail_20' ) end [2024-12-28 11:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:02:20] Production.INFO: ==6076== Releasing lock... [2024-12-28 11:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:02:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:03:05 [end_date_ymd] => 2024-12-28 11:03:05 [RateCDR] => 1 ) [2024-12-28 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:03:05' and `end` < '2024-12-28 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:03:17] Production.INFO: count ==1124 [2024-12-28 11:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:03:05 - End Time 2024-12-28 11:03:05 [2024-12-28 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121099', 'tblTempUsageDetail_20' ) start [2024-12-28 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121099', 'tblTempUsageDetail_20' ) end [2024-12-28 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121099', 'tblTempVendorCDR_20' ) start [2024-12-28 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121099', 'tblTempVendorCDR_20' ) end [2024-12-28 11:03:18] Production.INFO: ProcessCDR(1,14121099,1,1,2) [2024-12-28 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121099', 'tblTempUsageDetail_20' ) start [2024-12-28 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121099', 'tblTempUsageDetail_20' ) end [2024-12-28 11:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:03:22] Production.INFO: ==6187== Releasing lock... [2024-12-28 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:03:22] Production.INFO: 37 MB #Memory Used# [2024-12-28 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:04:04 [end_date_ymd] => 2024-12-28 11:04:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:04:04' and `end` < '2024-12-28 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-28 11:04:17] Production.INFO: count ==1131 [2024-12-28 11:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:04:04 - End Time 2024-12-28 11:04:04 [2024-12-28 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121104', 'tblTempUsageDetail_20' ) start [2024-12-28 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121104', 'tblTempUsageDetail_20' ) end [2024-12-28 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121104', 'tblTempVendorCDR_20' ) start [2024-12-28 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121104', 'tblTempVendorCDR_20' ) end [2024-12-28 11:04:18] Production.INFO: ProcessCDR(1,14121104,1,1,2) [2024-12-28 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121104', 'tblTempUsageDetail_20' ) start [2024-12-28 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121104', 'tblTempUsageDetail_20' ) end [2024-12-28 11:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:04:21] Production.INFO: ==6256== Releasing lock... [2024-12-28 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:04:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:05:05 [end_date_ymd] => 2024-12-28 11:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:05:05' and `end` < '2024-12-28 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-28 11:05:17] Production.INFO: count ==1133 [2024-12-28 11:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:05:05 - End Time 2024-12-28 11:05:05 [2024-12-28 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121109', 'tblTempUsageDetail_20' ) start [2024-12-28 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121109', 'tblTempUsageDetail_20' ) end [2024-12-28 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121109', 'tblTempVendorCDR_20' ) start [2024-12-28 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121109', 'tblTempVendorCDR_20' ) end [2024-12-28 11:05:18] Production.INFO: ProcessCDR(1,14121109,1,1,2) [2024-12-28 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121109', 'tblTempUsageDetail_20' ) start [2024-12-28 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121109', 'tblTempUsageDetail_20' ) end [2024-12-28 11:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:05:22] Production.INFO: ==6406== Releasing lock... [2024-12-28 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:05:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:06:05 [end_date_ymd] => 2024-12-28 11:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:06:05' and `end` < '2024-12-28 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-28 11:06:18] Production.INFO: count ==1132 [2024-12-28 11:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:06:05 - End Time 2024-12-28 11:06:05 [2024-12-28 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121114', 'tblTempUsageDetail_20' ) start [2024-12-28 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121114', 'tblTempUsageDetail_20' ) end [2024-12-28 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121114', 'tblTempVendorCDR_20' ) start [2024-12-28 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121114', 'tblTempVendorCDR_20' ) end [2024-12-28 11:06:18] Production.INFO: ProcessCDR(1,14121114,1,1,2) [2024-12-28 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121114', 'tblTempUsageDetail_20' ) start [2024-12-28 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121114', 'tblTempUsageDetail_20' ) end [2024-12-28 11:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:06:21] Production.INFO: ==6478== Releasing lock... [2024-12-28 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:06:21] Production.INFO: 37 MB #Memory Used# [2024-12-28 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:07:05 [end_date_ymd] => 2024-12-28 11:07:05 [RateCDR] => 1 ) [2024-12-28 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:07:05' and `end` < '2024-12-28 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:07:19] Production.INFO: count ==1131 [2024-12-28 11:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:07:05 - End Time 2024-12-28 11:07:05 [2024-12-28 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121119', 'tblTempUsageDetail_20' ) start [2024-12-28 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121119', 'tblTempUsageDetail_20' ) end [2024-12-28 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121119', 'tblTempVendorCDR_20' ) start [2024-12-28 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121119', 'tblTempVendorCDR_20' ) end [2024-12-28 11:07:19] Production.INFO: ProcessCDR(1,14121119,1,1,2) [2024-12-28 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121119', 'tblTempUsageDetail_20' ) start [2024-12-28 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121119', 'tblTempUsageDetail_20' ) end [2024-12-28 11:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:07:24] Production.INFO: ==6549== Releasing lock... [2024-12-28 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:07:24] Production.INFO: 37 MB #Memory Used# [2024-12-28 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:08:05 [end_date_ymd] => 2024-12-28 11:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:08:05' and `end` < '2024-12-28 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-28 11:08:19] Production.INFO: count ==1130 [2024-12-28 11:08:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:08:05 - End Time 2024-12-28 11:08:05 [2024-12-28 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121124', 'tblTempUsageDetail_20' ) start [2024-12-28 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121124', 'tblTempUsageDetail_20' ) end [2024-12-28 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121124', 'tblTempVendorCDR_20' ) start [2024-12-28 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121124', 'tblTempVendorCDR_20' ) end [2024-12-28 11:08:19] Production.INFO: ProcessCDR(1,14121124,1,1,2) [2024-12-28 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121124', 'tblTempUsageDetail_20' ) start [2024-12-28 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121124', 'tblTempUsageDetail_20' ) end [2024-12-28 11:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:08:22] Production.INFO: ==6698== Releasing lock... [2024-12-28 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:08:22] Production.INFO: 37 MB #Memory Used# [2024-12-28 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:09:04 [end_date_ymd] => 2024-12-28 11:09:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:09:04' and `end` < '2024-12-28 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-28 11:09:18] Production.INFO: count ==1138 [2024-12-28 11:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:09:04 - End Time 2024-12-28 11:09:04 [2024-12-28 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121129', 'tblTempUsageDetail_20' ) start [2024-12-28 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121129', 'tblTempUsageDetail_20' ) end [2024-12-28 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121129', 'tblTempVendorCDR_20' ) start [2024-12-28 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121129', 'tblTempVendorCDR_20' ) end [2024-12-28 11:09:18] Production.INFO: ProcessCDR(1,14121129,1,1,2) [2024-12-28 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121129', 'tblTempUsageDetail_20' ) start [2024-12-28 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121129', 'tblTempUsageDetail_20' ) end [2024-12-28 11:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:09:23] Production.INFO: ==6774== Releasing lock... [2024-12-28 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:09:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:10:05 [end_date_ymd] => 2024-12-28 11:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:10:05' and `end` < '2024-12-28 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-28 11:10:18] Production.INFO: count ==1145 [2024-12-28 11:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:10:05 - End Time 2024-12-28 11:10:05 [2024-12-28 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121135', 'tblTempUsageDetail_20' ) start [2024-12-28 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121135', 'tblTempUsageDetail_20' ) end [2024-12-28 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121135', 'tblTempVendorCDR_20' ) start [2024-12-28 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121135', 'tblTempVendorCDR_20' ) end [2024-12-28 11:10:19] Production.INFO: ProcessCDR(1,14121135,1,1,2) [2024-12-28 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121135', 'tblTempUsageDetail_20' ) start [2024-12-28 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121135', 'tblTempUsageDetail_20' ) end [2024-12-28 11:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:10:23] Production.INFO: ==6849== Releasing lock... [2024-12-28 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:10:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:11:04 [end_date_ymd] => 2024-12-28 11:11:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:11:04' and `end` < '2024-12-28 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-28 11:11:19] Production.INFO: count ==1176 [2024-12-28 11:11:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:11:04 - End Time 2024-12-28 11:11:04 [2024-12-28 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121140', 'tblTempUsageDetail_20' ) start [2024-12-28 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121140', 'tblTempUsageDetail_20' ) end [2024-12-28 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121140', 'tblTempVendorCDR_20' ) start [2024-12-28 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121140', 'tblTempVendorCDR_20' ) end [2024-12-28 11:11:19] Production.INFO: ProcessCDR(1,14121140,1,1,2) [2024-12-28 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121140', 'tblTempUsageDetail_20' ) start [2024-12-28 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121140', 'tblTempUsageDetail_20' ) end [2024-12-28 11:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:11:22] Production.INFO: ==6922== Releasing lock... [2024-12-28 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:11:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:12:05 [end_date_ymd] => 2024-12-28 11:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:12:05' and `end` < '2024-12-28 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-28 11:12:17] Production.INFO: count ==1174 [2024-12-28 11:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:12:05 - End Time 2024-12-28 11:12:05 [2024-12-28 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121145', 'tblTempUsageDetail_20' ) start [2024-12-28 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121145', 'tblTempUsageDetail_20' ) end [2024-12-28 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121145', 'tblTempVendorCDR_20' ) start [2024-12-28 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121145', 'tblTempVendorCDR_20' ) end [2024-12-28 11:12:18] Production.INFO: ProcessCDR(1,14121145,1,1,2) [2024-12-28 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121145', 'tblTempUsageDetail_20' ) start [2024-12-28 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121145', 'tblTempUsageDetail_20' ) end [2024-12-28 11:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:12:22] Production.INFO: ==7070== Releasing lock... [2024-12-28 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:12:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:13:04 [end_date_ymd] => 2024-12-28 11:13:04 [RateCDR] => 1 ) [2024-12-28 11:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:13:04' and `end` < '2024-12-28 11:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:13:17] Production.INFO: count ==1176 [2024-12-28 11:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:13:04 - End Time 2024-12-28 11:13:04 [2024-12-28 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121150', 'tblTempUsageDetail_20' ) start [2024-12-28 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121150', 'tblTempUsageDetail_20' ) end [2024-12-28 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121150', 'tblTempVendorCDR_20' ) start [2024-12-28 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121150', 'tblTempVendorCDR_20' ) end [2024-12-28 11:13:18] Production.INFO: ProcessCDR(1,14121150,1,1,2) [2024-12-28 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121150', 'tblTempUsageDetail_20' ) start [2024-12-28 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121150', 'tblTempUsageDetail_20' ) end [2024-12-28 11:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:13:22] Production.INFO: ==7139== Releasing lock... [2024-12-28 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:13:22] Production.INFO: 37 MB #Memory Used# [2024-12-28 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:14:04 [end_date_ymd] => 2024-12-28 11:14:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:14:04' and `end` < '2024-12-28 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-28 11:14:17] Production.INFO: count ==1187 [2024-12-28 11:14:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:14:04 - End Time 2024-12-28 11:14:04 [2024-12-28 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121155', 'tblTempUsageDetail_20' ) start [2024-12-28 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121155', 'tblTempUsageDetail_20' ) end [2024-12-28 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121155', 'tblTempVendorCDR_20' ) start [2024-12-28 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121155', 'tblTempVendorCDR_20' ) end [2024-12-28 11:14:17] Production.INFO: ProcessCDR(1,14121155,1,1,2) [2024-12-28 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121155', 'tblTempUsageDetail_20' ) start [2024-12-28 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121155', 'tblTempUsageDetail_20' ) end [2024-12-28 11:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:14:21] Production.INFO: ==7213== Releasing lock... [2024-12-28 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:14:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:15:05 [end_date_ymd] => 2024-12-28 11:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:15:05' and `end` < '2024-12-28 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-28 11:15:18] Production.INFO: count ==1188 [2024-12-28 11:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:15:05 - End Time 2024-12-28 11:15:05 [2024-12-28 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121160', 'tblTempUsageDetail_20' ) start [2024-12-28 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121160', 'tblTempUsageDetail_20' ) end [2024-12-28 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121160', 'tblTempVendorCDR_20' ) start [2024-12-28 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121160', 'tblTempVendorCDR_20' ) end [2024-12-28 11:15:18] Production.INFO: ProcessCDR(1,14121160,1,1,2) [2024-12-28 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121160', 'tblTempUsageDetail_20' ) start [2024-12-28 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121160', 'tblTempUsageDetail_20' ) end [2024-12-28 11:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:15:22] Production.INFO: ==7362== Releasing lock... [2024-12-28 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:15:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:16:05 [end_date_ymd] => 2024-12-28 11:16:05 [RateCDR] => 1 ) [2024-12-28 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:16:05' and `end` < '2024-12-28 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:16:18] Production.INFO: count ==1192 [2024-12-28 11:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:16:05 - End Time 2024-12-28 11:16:05 [2024-12-28 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121165', 'tblTempUsageDetail_20' ) start [2024-12-28 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121165', 'tblTempUsageDetail_20' ) end [2024-12-28 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121165', 'tblTempVendorCDR_20' ) start [2024-12-28 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121165', 'tblTempVendorCDR_20' ) end [2024-12-28 11:16:19] Production.INFO: ProcessCDR(1,14121165,1,1,2) [2024-12-28 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121165', 'tblTempUsageDetail_20' ) start [2024-12-28 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121165', 'tblTempUsageDetail_20' ) end [2024-12-28 11:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:16:22] Production.INFO: ==7431== Releasing lock... [2024-12-28 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:16:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:17:04 [end_date_ymd] => 2024-12-28 11:17:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:17:04' and `end` < '2024-12-28 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-28 11:17:17] Production.INFO: count ==1188 [2024-12-28 11:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:17:04 - End Time 2024-12-28 11:17:04 [2024-12-28 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121170', 'tblTempUsageDetail_20' ) start [2024-12-28 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121170', 'tblTempUsageDetail_20' ) end [2024-12-28 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121170', 'tblTempVendorCDR_20' ) start [2024-12-28 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121170', 'tblTempVendorCDR_20' ) end [2024-12-28 11:17:17] Production.INFO: ProcessCDR(1,14121170,1,1,2) [2024-12-28 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121170', 'tblTempUsageDetail_20' ) start [2024-12-28 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121170', 'tblTempUsageDetail_20' ) end [2024-12-28 11:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:17:22] Production.INFO: ==7502== Releasing lock... [2024-12-28 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:17:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:18:04 [end_date_ymd] => 2024-12-28 11:18:04 [RateCDR] => 1 ) [2024-12-28 11:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:18:04' and `end` < '2024-12-28 11:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:18:17] Production.INFO: count ==1212 [2024-12-28 11:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:18:04 - End Time 2024-12-28 11:18:04 [2024-12-28 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121175', 'tblTempUsageDetail_20' ) start [2024-12-28 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121175', 'tblTempUsageDetail_20' ) end [2024-12-28 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121175', 'tblTempVendorCDR_20' ) start [2024-12-28 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121175', 'tblTempVendorCDR_20' ) end [2024-12-28 11:18:18] Production.INFO: ProcessCDR(1,14121175,1,1,2) [2024-12-28 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121175', 'tblTempUsageDetail_20' ) start [2024-12-28 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121175', 'tblTempUsageDetail_20' ) end [2024-12-28 11:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:18:21] Production.INFO: ==7612== Releasing lock... [2024-12-28 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:18:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:19:05 [end_date_ymd] => 2024-12-28 11:19:05 [RateCDR] => 1 ) [2024-12-28 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:19:05' and `end` < '2024-12-28 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:19:18] Production.INFO: count ==1244 [2024-12-28 11:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:19:05 - End Time 2024-12-28 11:19:05 [2024-12-28 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121180', 'tblTempUsageDetail_20' ) start [2024-12-28 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121180', 'tblTempUsageDetail_20' ) end [2024-12-28 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121180', 'tblTempVendorCDR_20' ) start [2024-12-28 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121180', 'tblTempVendorCDR_20' ) end [2024-12-28 11:19:18] Production.INFO: ProcessCDR(1,14121180,1,1,2) [2024-12-28 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121180', 'tblTempUsageDetail_20' ) start [2024-12-28 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121180', 'tblTempUsageDetail_20' ) end [2024-12-28 11:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:19:23] Production.INFO: ==7683== Releasing lock... [2024-12-28 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:19:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:20:05 [end_date_ymd] => 2024-12-28 11:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:20:05' and `end` < '2024-12-28 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-28 11:20:18] Production.INFO: count ==1257 [2024-12-28 11:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:20:05 - End Time 2024-12-28 11:20:05 [2024-12-28 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121186', 'tblTempUsageDetail_20' ) start [2024-12-28 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121186', 'tblTempUsageDetail_20' ) end [2024-12-28 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121186', 'tblTempVendorCDR_20' ) start [2024-12-28 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121186', 'tblTempVendorCDR_20' ) end [2024-12-28 11:20:18] Production.INFO: ProcessCDR(1,14121186,1,1,2) [2024-12-28 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121186', 'tblTempUsageDetail_20' ) start [2024-12-28 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121186', 'tblTempUsageDetail_20' ) end [2024-12-28 11:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:20:23] Production.INFO: ==7758== Releasing lock... [2024-12-28 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:20:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:21:04 [end_date_ymd] => 2024-12-28 11:21:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:21:04' and `end` < '2024-12-28 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-28 11:21:17] Production.INFO: count ==1298 [2024-12-28 11:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:21:04 - End Time 2024-12-28 11:21:04 [2024-12-28 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121191', 'tblTempUsageDetail_20' ) start [2024-12-28 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121191', 'tblTempUsageDetail_20' ) end [2024-12-28 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121191', 'tblTempVendorCDR_20' ) start [2024-12-28 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121191', 'tblTempVendorCDR_20' ) end [2024-12-28 11:21:18] Production.INFO: ProcessCDR(1,14121191,1,1,2) [2024-12-28 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121191', 'tblTempUsageDetail_20' ) start [2024-12-28 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121191', 'tblTempUsageDetail_20' ) end [2024-12-28 11:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:21:22] Production.INFO: ==7833== Releasing lock... [2024-12-28 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:21:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:22:04 [end_date_ymd] => 2024-12-28 11:22:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:22:04' and `end` < '2024-12-28 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-28 11:22:17] Production.INFO: count ==1316 [2024-12-28 11:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:22:04 - End Time 2024-12-28 11:22:04 [2024-12-28 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121196', 'tblTempUsageDetail_20' ) start [2024-12-28 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121196', 'tblTempUsageDetail_20' ) end [2024-12-28 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121196', 'tblTempVendorCDR_20' ) start [2024-12-28 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121196', 'tblTempVendorCDR_20' ) end [2024-12-28 11:22:18] Production.INFO: ProcessCDR(1,14121196,1,1,2) [2024-12-28 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121196', 'tblTempUsageDetail_20' ) start [2024-12-28 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121196', 'tblTempUsageDetail_20' ) end [2024-12-28 11:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:22:22] Production.INFO: ==7912== Releasing lock... [2024-12-28 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:22:22] Production.INFO: 38 MB #Memory Used# [2024-12-28 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:23:05 [end_date_ymd] => 2024-12-28 11:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:23:05' and `end` < '2024-12-28 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-28 11:23:19] Production.INFO: count ==1309 [2024-12-28 11:23:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:23:05 - End Time 2024-12-28 11:23:05 [2024-12-28 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121201', 'tblTempUsageDetail_20' ) start [2024-12-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121201', 'tblTempUsageDetail_20' ) end [2024-12-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121201', 'tblTempVendorCDR_20' ) start [2024-12-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121201', 'tblTempVendorCDR_20' ) end [2024-12-28 11:23:20] Production.INFO: ProcessCDR(1,14121201,1,1,2) [2024-12-28 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121201', 'tblTempUsageDetail_20' ) start [2024-12-28 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121201', 'tblTempUsageDetail_20' ) end [2024-12-28 11:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:23:24] Production.INFO: ==7983== Releasing lock... [2024-12-28 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:23:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:24:05 [end_date_ymd] => 2024-12-28 11:24:05 [RateCDR] => 1 ) [2024-12-28 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:24:05' and `end` < '2024-12-28 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:24:18] Production.INFO: count ==1313 [2024-12-28 11:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:24:05 - End Time 2024-12-28 11:24:05 [2024-12-28 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121206', 'tblTempUsageDetail_20' ) start [2024-12-28 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121206', 'tblTempUsageDetail_20' ) end [2024-12-28 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121206', 'tblTempVendorCDR_20' ) start [2024-12-28 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121206', 'tblTempVendorCDR_20' ) end [2024-12-28 11:24:18] Production.INFO: ProcessCDR(1,14121206,1,1,2) [2024-12-28 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121206', 'tblTempUsageDetail_20' ) start [2024-12-28 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121206', 'tblTempUsageDetail_20' ) end [2024-12-28 11:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:24:22] Production.INFO: ==8076== Releasing lock... [2024-12-28 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:24:22] Production.INFO: 38 MB #Memory Used# [2024-12-28 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:25:04 [end_date_ymd] => 2024-12-28 11:25:04 [RateCDR] => 1 ) [2024-12-28 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:25:04' and `end` < '2024-12-28 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:25:17] Production.INFO: count ==1320 [2024-12-28 11:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:25:04 - End Time 2024-12-28 11:25:04 [2024-12-28 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121211', 'tblTempUsageDetail_20' ) start [2024-12-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121211', 'tblTempUsageDetail_20' ) end [2024-12-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121211', 'tblTempVendorCDR_20' ) start [2024-12-28 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121211', 'tblTempVendorCDR_20' ) end [2024-12-28 11:25:17] Production.INFO: ProcessCDR(1,14121211,1,1,2) [2024-12-28 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121211', 'tblTempUsageDetail_20' ) start [2024-12-28 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121211', 'tblTempUsageDetail_20' ) end [2024-12-28 11:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:25:21] Production.INFO: ==8151== Releasing lock... [2024-12-28 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:25:21] Production.INFO: 38 MB #Memory Used# [2024-12-28 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:26:05 [end_date_ymd] => 2024-12-28 11:26:05 [RateCDR] => 1 ) [2024-12-28 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:26:05' and `end` < '2024-12-28 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:26:17] Production.INFO: count ==1341 [2024-12-28 11:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:26:05 - End Time 2024-12-28 11:26:05 [2024-12-28 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121216', 'tblTempUsageDetail_20' ) start [2024-12-28 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121216', 'tblTempUsageDetail_20' ) end [2024-12-28 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121216', 'tblTempVendorCDR_20' ) start [2024-12-28 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121216', 'tblTempVendorCDR_20' ) end [2024-12-28 11:26:18] Production.INFO: ProcessCDR(1,14121216,1,1,2) [2024-12-28 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121216', 'tblTempUsageDetail_20' ) start [2024-12-28 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121216', 'tblTempUsageDetail_20' ) end [2024-12-28 11:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:26:23] Production.INFO: ==8222== Releasing lock... [2024-12-28 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:26:23] Production.INFO: 38 MB #Memory Used# [2024-12-28 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:27:05 [end_date_ymd] => 2024-12-28 11:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:27:05' and `end` < '2024-12-28 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-28 11:27:18] Production.INFO: count ==1345 [2024-12-28 11:27:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:27:05 - End Time 2024-12-28 11:27:05 [2024-12-28 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121221', 'tblTempUsageDetail_20' ) start [2024-12-28 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121221', 'tblTempUsageDetail_20' ) end [2024-12-28 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121221', 'tblTempVendorCDR_20' ) start [2024-12-28 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121221', 'tblTempVendorCDR_20' ) end [2024-12-28 11:27:19] Production.INFO: ProcessCDR(1,14121221,1,1,2) [2024-12-28 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121221', 'tblTempUsageDetail_20' ) start [2024-12-28 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121221', 'tblTempUsageDetail_20' ) end [2024-12-28 11:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:27:24] Production.INFO: ==8295== Releasing lock... [2024-12-28 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:27:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:28:05 [end_date_ymd] => 2024-12-28 11:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:28:05' and `end` < '2024-12-28 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-28 11:28:17] Production.INFO: count ==1348 [2024-12-28 11:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:28:05 - End Time 2024-12-28 11:28:05 [2024-12-28 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121226', 'tblTempUsageDetail_20' ) start [2024-12-28 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121226', 'tblTempUsageDetail_20' ) end [2024-12-28 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121226', 'tblTempVendorCDR_20' ) start [2024-12-28 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121226', 'tblTempVendorCDR_20' ) end [2024-12-28 11:28:18] Production.INFO: ProcessCDR(1,14121226,1,1,2) [2024-12-28 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121226', 'tblTempUsageDetail_20' ) start [2024-12-28 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121226', 'tblTempUsageDetail_20' ) end [2024-12-28 11:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:28:21] Production.INFO: ==8367== Releasing lock... [2024-12-28 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:28:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:29:04 [end_date_ymd] => 2024-12-28 11:29:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:29:04' and `end` < '2024-12-28 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-28 11:29:19] Production.INFO: count ==1344 [2024-12-28 11:29:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:29:04 - End Time 2024-12-28 11:29:04 [2024-12-28 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121231', 'tblTempUsageDetail_20' ) start [2024-12-28 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121231', 'tblTempUsageDetail_20' ) end [2024-12-28 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121231', 'tblTempVendorCDR_20' ) start [2024-12-28 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121231', 'tblTempVendorCDR_20' ) end [2024-12-28 11:29:19] Production.INFO: ProcessCDR(1,14121231,1,1,2) [2024-12-28 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121231', 'tblTempUsageDetail_20' ) start [2024-12-28 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121231', 'tblTempUsageDetail_20' ) end [2024-12-28 11:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:29:24] Production.INFO: ==8438== Releasing lock... [2024-12-28 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:29:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:30:06 [end_date_ymd] => 2024-12-28 11:30:06 [RateCDR] => 1 ) [2024-12-28 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:30:06' and `end` < '2024-12-28 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:30:18] Production.INFO: count ==1338 [2024-12-28 11:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:30:06 - End Time 2024-12-28 11:30:06 [2024-12-28 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121237', 'tblTempUsageDetail_20' ) start [2024-12-28 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121237', 'tblTempUsageDetail_20' ) end [2024-12-28 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121237', 'tblTempVendorCDR_20' ) start [2024-12-28 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121237', 'tblTempVendorCDR_20' ) end [2024-12-28 11:30:19] Production.INFO: ProcessCDR(1,14121237,1,1,2) [2024-12-28 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121237', 'tblTempUsageDetail_20' ) start [2024-12-28 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121237', 'tblTempUsageDetail_20' ) end [2024-12-28 11:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:30:24] Production.INFO: ==8514== Releasing lock... [2024-12-28 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:30:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:31:05 [end_date_ymd] => 2024-12-28 11:31:05 [RateCDR] => 1 ) [2024-12-28 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:31:05' and `end` < '2024-12-28 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:31:17] Production.INFO: count ==1372 [2024-12-28 11:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:31:05 - End Time 2024-12-28 11:31:05 [2024-12-28 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121242', 'tblTempUsageDetail_20' ) start [2024-12-28 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121242', 'tblTempUsageDetail_20' ) end [2024-12-28 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121242', 'tblTempVendorCDR_20' ) start [2024-12-28 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121242', 'tblTempVendorCDR_20' ) end [2024-12-28 11:31:18] Production.INFO: ProcessCDR(1,14121242,1,1,2) [2024-12-28 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121242', 'tblTempUsageDetail_20' ) start [2024-12-28 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121242', 'tblTempUsageDetail_20' ) end [2024-12-28 11:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:31:23] Production.INFO: ==8585== Releasing lock... [2024-12-28 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:31:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:32:05 [end_date_ymd] => 2024-12-28 11:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:32:05' and `end` < '2024-12-28 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-28 11:32:18] Production.INFO: count ==1363 [2024-12-28 11:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:32:05 - End Time 2024-12-28 11:32:05 [2024-12-28 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121247', 'tblTempUsageDetail_20' ) start [2024-12-28 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121247', 'tblTempUsageDetail_20' ) end [2024-12-28 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121247', 'tblTempVendorCDR_20' ) start [2024-12-28 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121247', 'tblTempVendorCDR_20' ) end [2024-12-28 11:32:18] Production.INFO: ProcessCDR(1,14121247,1,1,2) [2024-12-28 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121247', 'tblTempUsageDetail_20' ) start [2024-12-28 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121247', 'tblTempUsageDetail_20' ) end [2024-12-28 11:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:32:21] Production.INFO: ==8655== Releasing lock... [2024-12-28 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:32:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:33:04 [end_date_ymd] => 2024-12-28 11:33:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:33:04' and `end` < '2024-12-28 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-28 11:33:17] Production.INFO: count ==1365 [2024-12-28 11:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 08:33:04 - End Time 2024-12-28 11:33:04 [2024-12-28 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121252', 'tblTempUsageDetail_20' ) start [2024-12-28 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121252', 'tblTempUsageDetail_20' ) end [2024-12-28 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121252', 'tblTempVendorCDR_20' ) start [2024-12-28 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121252', 'tblTempVendorCDR_20' ) end [2024-12-28 11:33:17] Production.INFO: ProcessCDR(1,14121252,1,1,2) [2024-12-28 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121252', 'tblTempUsageDetail_20' ) start [2024-12-28 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121252', 'tblTempUsageDetail_20' ) end [2024-12-28 11:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:33:22] Production.INFO: ==8725== Releasing lock... [2024-12-28 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:33:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:34:05 [end_date_ymd] => 2024-12-28 11:34:05 [RateCDR] => 1 ) [2024-12-28 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:34:05' and `end` < '2024-12-28 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:34:17] Production.INFO: count ==1369 [2024-12-28 11:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:34:05 - End Time 2024-12-28 11:34:05 [2024-12-28 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121257', 'tblTempUsageDetail_20' ) start [2024-12-28 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121257', 'tblTempUsageDetail_20' ) end [2024-12-28 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121257', 'tblTempVendorCDR_20' ) start [2024-12-28 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121257', 'tblTempVendorCDR_20' ) end [2024-12-28 11:34:18] Production.INFO: ProcessCDR(1,14121257,1,1,2) [2024-12-28 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121257', 'tblTempUsageDetail_20' ) start [2024-12-28 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121257', 'tblTempUsageDetail_20' ) end [2024-12-28 11:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:34:22] Production.INFO: ==8837== Releasing lock... [2024-12-28 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:34:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:35:05 [end_date_ymd] => 2024-12-28 11:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:35:05' and `end` < '2024-12-28 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-28 11:35:17] Production.INFO: count ==1369 [2024-12-28 11:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:35:05 - End Time 2024-12-28 11:35:05 [2024-12-28 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121262', 'tblTempUsageDetail_20' ) start [2024-12-28 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121262', 'tblTempUsageDetail_20' ) end [2024-12-28 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121262', 'tblTempVendorCDR_20' ) start [2024-12-28 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121262', 'tblTempVendorCDR_20' ) end [2024-12-28 11:35:18] Production.INFO: ProcessCDR(1,14121262,1,1,2) [2024-12-28 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121262', 'tblTempUsageDetail_20' ) start [2024-12-28 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121262', 'tblTempUsageDetail_20' ) end [2024-12-28 11:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:35:21] Production.INFO: ==8914== Releasing lock... [2024-12-28 11:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:35:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:36:05 [end_date_ymd] => 2024-12-28 11:36:05 [RateCDR] => 1 ) [2024-12-28 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:36:05' and `end` < '2024-12-28 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:36:18] Production.INFO: count ==1369 [2024-12-28 11:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:36:05 - End Time 2024-12-28 11:36:05 [2024-12-28 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121267', 'tblTempUsageDetail_20' ) start [2024-12-28 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121267', 'tblTempUsageDetail_20' ) end [2024-12-28 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121267', 'tblTempVendorCDR_20' ) start [2024-12-28 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121267', 'tblTempVendorCDR_20' ) end [2024-12-28 11:36:18] Production.INFO: ProcessCDR(1,14121267,1,1,2) [2024-12-28 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121267', 'tblTempUsageDetail_20' ) start [2024-12-28 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121267', 'tblTempUsageDetail_20' ) end [2024-12-28 11:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:36:22] Production.INFO: ==8988== Releasing lock... [2024-12-28 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:36:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:37:04 [end_date_ymd] => 2024-12-28 11:37:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:37:04' and `end` < '2024-12-28 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-28 11:37:17] Production.INFO: count ==1370 [2024-12-28 11:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:37:04 - End Time 2024-12-28 11:37:04 [2024-12-28 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121272', 'tblTempUsageDetail_20' ) start [2024-12-28 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121272', 'tblTempUsageDetail_20' ) end [2024-12-28 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121272', 'tblTempVendorCDR_20' ) start [2024-12-28 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121272', 'tblTempVendorCDR_20' ) end [2024-12-28 11:37:18] Production.INFO: ProcessCDR(1,14121272,1,1,2) [2024-12-28 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121272', 'tblTempUsageDetail_20' ) start [2024-12-28 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121272', 'tblTempUsageDetail_20' ) end [2024-12-28 11:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:37:22] Production.INFO: ==9057== Releasing lock... [2024-12-28 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:37:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:38:05 [end_date_ymd] => 2024-12-28 11:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:38:05' and `end` < '2024-12-28 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-28 11:38:18] Production.INFO: count ==1370 [2024-12-28 11:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:38:05 - End Time 2024-12-28 11:38:05 [2024-12-28 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121277', 'tblTempUsageDetail_20' ) start [2024-12-28 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121277', 'tblTempUsageDetail_20' ) end [2024-12-28 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121277', 'tblTempVendorCDR_20' ) start [2024-12-28 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121277', 'tblTempVendorCDR_20' ) end [2024-12-28 11:38:19] Production.INFO: ProcessCDR(1,14121277,1,1,2) [2024-12-28 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121277', 'tblTempUsageDetail_20' ) start [2024-12-28 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121277', 'tblTempUsageDetail_20' ) end [2024-12-28 11:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:38:22] Production.INFO: ==9129== Releasing lock... [2024-12-28 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:38:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:39:04 [end_date_ymd] => 2024-12-28 11:39:04 [RateCDR] => 1 ) [2024-12-28 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:39:04' and `end` < '2024-12-28 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:39:17] Production.INFO: count ==1373 [2024-12-28 11:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:39:04 - End Time 2024-12-28 11:39:04 [2024-12-28 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121282', 'tblTempUsageDetail_20' ) start [2024-12-28 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121282', 'tblTempUsageDetail_20' ) end [2024-12-28 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121282', 'tblTempVendorCDR_20' ) start [2024-12-28 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121282', 'tblTempVendorCDR_20' ) end [2024-12-28 11:39:18] Production.INFO: ProcessCDR(1,14121282,1,1,2) [2024-12-28 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121282', 'tblTempUsageDetail_20' ) start [2024-12-28 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121282', 'tblTempUsageDetail_20' ) end [2024-12-28 11:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:39:22] Production.INFO: ==9199== Releasing lock... [2024-12-28 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:39:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:40:06 [end_date_ymd] => 2024-12-28 11:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 08:40:06' and `end` < '2024-12-28 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-28 11:40:19] Production.INFO: count ==1384 [2024-12-28 11:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:40:06 - End Time 2024-12-28 11:40:06 [2024-12-28 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121288', 'tblTempUsageDetail_20' ) start [2024-12-28 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121288', 'tblTempUsageDetail_20' ) end [2024-12-28 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121288', 'tblTempVendorCDR_20' ) start [2024-12-28 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121288', 'tblTempVendorCDR_20' ) end [2024-12-28 11:40:19] Production.INFO: ProcessCDR(1,14121288,1,1,2) [2024-12-28 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121288', 'tblTempUsageDetail_20' ) start [2024-12-28 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121288', 'tblTempUsageDetail_20' ) end [2024-12-28 11:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:40:24] Production.INFO: ==9274== Releasing lock... [2024-12-28 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:40:24] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:41:04 [end_date_ymd] => 2024-12-28 11:41:04 [RateCDR] => 1 ) [2024-12-28 11: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-28 08:41:04' and `end` < '2024-12-28 11: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-28 11:41:17] Production.INFO: count ==1434 [2024-12-28 11:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:41:04 - End Time 2024-12-28 11:41:04 [2024-12-28 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121293', 'tblTempUsageDetail_20' ) start [2024-12-28 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121293', 'tblTempUsageDetail_20' ) end [2024-12-28 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121293', 'tblTempVendorCDR_20' ) start [2024-12-28 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121293', 'tblTempVendorCDR_20' ) end [2024-12-28 11:41:18] Production.INFO: ProcessCDR(1,14121293,1,1,2) [2024-12-28 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121293', 'tblTempUsageDetail_20' ) start [2024-12-28 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121293', 'tblTempUsageDetail_20' ) end [2024-12-28 11:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:41:22] Production.INFO: ==9350== Releasing lock... [2024-12-28 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:41:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:42:05 [end_date_ymd] => 2024-12-28 11:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:42:05' and `end` < '2024-12-28 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-28 11:42:17] Production.INFO: count ==1434 [2024-12-28 11:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:42:05 - End Time 2024-12-28 11:42:05 [2024-12-28 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121298', 'tblTempUsageDetail_20' ) start [2024-12-28 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121298', 'tblTempUsageDetail_20' ) end [2024-12-28 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121298', 'tblTempVendorCDR_20' ) start [2024-12-28 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121298', 'tblTempVendorCDR_20' ) end [2024-12-28 11:42:18] Production.INFO: ProcessCDR(1,14121298,1,1,2) [2024-12-28 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121298', 'tblTempUsageDetail_20' ) start [2024-12-28 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121298', 'tblTempUsageDetail_20' ) end [2024-12-28 11:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:42:21] Production.INFO: ==9424== Releasing lock... [2024-12-28 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:42:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:43:04 [end_date_ymd] => 2024-12-28 11:43:04 [RateCDR] => 1 ) [2024-12-28 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-28 08:43:04' and `end` < '2024-12-28 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-28 11:43:18] Production.INFO: count ==1434 [2024-12-28 11:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:43:04 - End Time 2024-12-28 11:43:04 [2024-12-28 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121303', 'tblTempUsageDetail_20' ) start [2024-12-28 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121303', 'tblTempUsageDetail_20' ) end [2024-12-28 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121303', 'tblTempVendorCDR_20' ) start [2024-12-28 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121303', 'tblTempVendorCDR_20' ) end [2024-12-28 11:43:18] Production.INFO: ProcessCDR(1,14121303,1,1,2) [2024-12-28 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121303', 'tblTempUsageDetail_20' ) start [2024-12-28 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121303', 'tblTempUsageDetail_20' ) end [2024-12-28 11:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:43:21] Production.INFO: ==9499== Releasing lock... [2024-12-28 11:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:43:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:44:05 [end_date_ymd] => 2024-12-28 11:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:44:05' and `end` < '2024-12-28 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-28 11:44:21] Production.INFO: count ==1440 [2024-12-28 11:44:21] Production.ERROR: pbx CDR StartTime 2024-12-28 08:44:05 - End Time 2024-12-28 11:44:05 [2024-12-28 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121308', 'tblTempUsageDetail_20' ) start [2024-12-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121308', 'tblTempUsageDetail_20' ) end [2024-12-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121308', 'tblTempVendorCDR_20' ) start [2024-12-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121308', 'tblTempVendorCDR_20' ) end [2024-12-28 11:44:21] Production.INFO: ProcessCDR(1,14121308,1,1,2) [2024-12-28 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121308', 'tblTempUsageDetail_20' ) start [2024-12-28 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121308', 'tblTempUsageDetail_20' ) end [2024-12-28 11:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:44:25] Production.INFO: ==9572== Releasing lock... [2024-12-28 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:44:25] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:45:05 [end_date_ymd] => 2024-12-28 11:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:45:05' and `end` < '2024-12-28 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-28 11:45:18] Production.INFO: count ==1435 [2024-12-28 11:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:45:05 - End Time 2024-12-28 11:45:05 [2024-12-28 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121313', 'tblTempUsageDetail_20' ) start [2024-12-28 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121313', 'tblTempUsageDetail_20' ) end [2024-12-28 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121313', 'tblTempVendorCDR_20' ) start [2024-12-28 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121313', 'tblTempVendorCDR_20' ) end [2024-12-28 11:45:18] Production.INFO: ProcessCDR(1,14121313,1,1,2) [2024-12-28 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121313', 'tblTempUsageDetail_20' ) start [2024-12-28 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121313', 'tblTempUsageDetail_20' ) end [2024-12-28 11:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:45:22] Production.INFO: ==9642== Releasing lock... [2024-12-28 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:45:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:46:05 [end_date_ymd] => 2024-12-28 11:46:05 [RateCDR] => 1 ) [2024-12-28 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:46:05' and `end` < '2024-12-28 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:46:17] Production.INFO: count ==1431 [2024-12-28 11:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:46:05 - End Time 2024-12-28 11:46:05 [2024-12-28 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121318', 'tblTempUsageDetail_20' ) start [2024-12-28 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121318', 'tblTempUsageDetail_20' ) end [2024-12-28 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121318', 'tblTempVendorCDR_20' ) start [2024-12-28 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121318', 'tblTempVendorCDR_20' ) end [2024-12-28 11:46:18] Production.INFO: ProcessCDR(1,14121318,1,1,2) [2024-12-28 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121318', 'tblTempUsageDetail_20' ) start [2024-12-28 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121318', 'tblTempUsageDetail_20' ) end [2024-12-28 11:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:46:21] Production.INFO: ==9716== Releasing lock... [2024-12-28 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:46:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:47:05 [end_date_ymd] => 2024-12-28 11:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:47:05' and `end` < '2024-12-28 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-28 11:47:18] Production.INFO: count ==1442 [2024-12-28 11:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:47:05 - End Time 2024-12-28 11:47:05 [2024-12-28 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121323', 'tblTempUsageDetail_20' ) start [2024-12-28 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121323', 'tblTempUsageDetail_20' ) end [2024-12-28 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121323', 'tblTempVendorCDR_20' ) start [2024-12-28 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121323', 'tblTempVendorCDR_20' ) end [2024-12-28 11:47:18] Production.INFO: ProcessCDR(1,14121323,1,1,2) [2024-12-28 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121323', 'tblTempUsageDetail_20' ) start [2024-12-28 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121323', 'tblTempUsageDetail_20' ) end [2024-12-28 11:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:47:23] Production.INFO: ==9788== Releasing lock... [2024-12-28 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:47:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:48:05 [end_date_ymd] => 2024-12-28 11:48:05 [RateCDR] => 1 ) [2024-12-28 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:48:05' and `end` < '2024-12-28 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:48:18] Production.INFO: count ==1447 [2024-12-28 11:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:48:05 - End Time 2024-12-28 11:48:05 [2024-12-28 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121328', 'tblTempUsageDetail_20' ) start [2024-12-28 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121328', 'tblTempUsageDetail_20' ) end [2024-12-28 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121328', 'tblTempVendorCDR_20' ) start [2024-12-28 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121328', 'tblTempVendorCDR_20' ) end [2024-12-28 11:48:18] Production.INFO: ProcessCDR(1,14121328,1,1,2) [2024-12-28 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121328', 'tblTempUsageDetail_20' ) start [2024-12-28 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121328', 'tblTempUsageDetail_20' ) end [2024-12-28 11:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:48:23] Production.INFO: ==9861== Releasing lock... [2024-12-28 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:48:23] Production.INFO: 39 MB #Memory Used# [2024-12-28 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:49:05 [end_date_ymd] => 2024-12-28 11:49:05 [RateCDR] => 1 ) [2024-12-28 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:49:05' and `end` < '2024-12-28 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:49:17] Production.INFO: count ==1468 [2024-12-28 11:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:49:05 - End Time 2024-12-28 11:49:05 [2024-12-28 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121333', 'tblTempUsageDetail_20' ) start [2024-12-28 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121333', 'tblTempUsageDetail_20' ) end [2024-12-28 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121333', 'tblTempVendorCDR_20' ) start [2024-12-28 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121333', 'tblTempVendorCDR_20' ) end [2024-12-28 11:49:18] Production.INFO: ProcessCDR(1,14121333,1,1,2) [2024-12-28 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121333', 'tblTempUsageDetail_20' ) start [2024-12-28 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121333', 'tblTempUsageDetail_20' ) end [2024-12-28 11:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:49:21] Production.INFO: ==9934== Releasing lock... [2024-12-28 11:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:49:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:50:06 [end_date_ymd] => 2024-12-28 11:50:06 [RateCDR] => 1 ) [2024-12-28 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-28 08:50:06' and `end` < '2024-12-28 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-28 11:50:18] Production.INFO: count ==1480 [2024-12-28 11:50:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:50:06 - End Time 2024-12-28 11:50:06 [2024-12-28 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121339', 'tblTempUsageDetail_20' ) start [2024-12-28 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121339', 'tblTempUsageDetail_20' ) end [2024-12-28 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121339', 'tblTempVendorCDR_20' ) start [2024-12-28 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121339', 'tblTempVendorCDR_20' ) end [2024-12-28 11:50:19] Production.INFO: ProcessCDR(1,14121339,1,1,2) [2024-12-28 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121339', 'tblTempUsageDetail_20' ) start [2024-12-28 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121339', 'tblTempUsageDetail_20' ) end [2024-12-28 11:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:50:23] Production.INFO: ==10044== Releasing lock... [2024-12-28 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:50:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:51:05 [end_date_ymd] => 2024-12-28 11:51:05 [RateCDR] => 1 ) [2024-12-28 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 08:51:05' and `end` < '2024-12-28 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:51:18] Production.INFO: count ==1508 [2024-12-28 11:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:51:05 - End Time 2024-12-28 11:51:05 [2024-12-28 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121344', 'tblTempUsageDetail_20' ) start [2024-12-28 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121344', 'tblTempUsageDetail_20' ) end [2024-12-28 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121344', 'tblTempVendorCDR_20' ) start [2024-12-28 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121344', 'tblTempVendorCDR_20' ) end [2024-12-28 11:51:18] Production.INFO: ProcessCDR(1,14121344,1,1,2) [2024-12-28 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121344', 'tblTempUsageDetail_20' ) start [2024-12-28 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121344', 'tblTempUsageDetail_20' ) end [2024-12-28 11:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:51:23] Production.INFO: ==10119== Releasing lock... [2024-12-28 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:51:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:52:05 [end_date_ymd] => 2024-12-28 11:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:52:05' and `end` < '2024-12-28 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-28 11:52:18] Production.INFO: count ==1509 [2024-12-28 11:52:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:52:05 - End Time 2024-12-28 11:52:05 [2024-12-28 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121349', 'tblTempUsageDetail_20' ) start [2024-12-28 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121349', 'tblTempUsageDetail_20' ) end [2024-12-28 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121349', 'tblTempVendorCDR_20' ) start [2024-12-28 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121349', 'tblTempVendorCDR_20' ) end [2024-12-28 11:52:19] Production.INFO: ProcessCDR(1,14121349,1,1,2) [2024-12-28 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121349', 'tblTempUsageDetail_20' ) start [2024-12-28 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121349', 'tblTempUsageDetail_20' ) end [2024-12-28 11:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:52:23] Production.INFO: ==10192== Releasing lock... [2024-12-28 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:52:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:53:05 [end_date_ymd] => 2024-12-28 11:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:53:05' and `end` < '2024-12-28 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-28 11:53:19] Production.INFO: count ==1518 [2024-12-28 11:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 08:53:05 - End Time 2024-12-28 11:53:05 [2024-12-28 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121354', 'tblTempUsageDetail_20' ) start [2024-12-28 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121354', 'tblTempUsageDetail_20' ) end [2024-12-28 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121354', 'tblTempVendorCDR_20' ) start [2024-12-28 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121354', 'tblTempVendorCDR_20' ) end [2024-12-28 11:53:19] Production.INFO: ProcessCDR(1,14121354,1,1,2) [2024-12-28 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121354', 'tblTempUsageDetail_20' ) start [2024-12-28 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121354', 'tblTempUsageDetail_20' ) end [2024-12-28 11:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:53:23] Production.INFO: ==10266== Releasing lock... [2024-12-28 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:53:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:54:05 [end_date_ymd] => 2024-12-28 11:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:54:05' and `end` < '2024-12-28 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-28 11:54:17] Production.INFO: count ==1506 [2024-12-28 11:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:54:05 - End Time 2024-12-28 11:54:05 [2024-12-28 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121359', 'tblTempUsageDetail_20' ) start [2024-12-28 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121359', 'tblTempUsageDetail_20' ) end [2024-12-28 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121359', 'tblTempVendorCDR_20' ) start [2024-12-28 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121359', 'tblTempVendorCDR_20' ) end [2024-12-28 11:54:18] Production.INFO: ProcessCDR(1,14121359,1,1,2) [2024-12-28 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121359', 'tblTempUsageDetail_20' ) start [2024-12-28 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121359', 'tblTempUsageDetail_20' ) end [2024-12-28 11:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:54:21] Production.INFO: ==10335== Releasing lock... [2024-12-28 11:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:54:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:55:05 [end_date_ymd] => 2024-12-28 11:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:55:05' and `end` < '2024-12-28 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 11:55:18] Production.INFO: count ==1506 [2024-12-28 11:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:55:05 - End Time 2024-12-28 11:55:05 [2024-12-28 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121364', 'tblTempUsageDetail_20' ) start [2024-12-28 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121364', 'tblTempUsageDetail_20' ) end [2024-12-28 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121364', 'tblTempVendorCDR_20' ) start [2024-12-28 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121364', 'tblTempVendorCDR_20' ) end [2024-12-28 11:55:19] Production.INFO: ProcessCDR(1,14121364,1,1,2) [2024-12-28 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121364', 'tblTempUsageDetail_20' ) start [2024-12-28 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121364', 'tblTempUsageDetail_20' ) end [2024-12-28 11:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:55:22] Production.INFO: ==10410== Releasing lock... [2024-12-28 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:55:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:56:05 [end_date_ymd] => 2024-12-28 11:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:56:05' and `end` < '2024-12-28 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-28 11:56:20] Production.INFO: count ==1508 [2024-12-28 11:56:20] Production.ERROR: pbx CDR StartTime 2024-12-28 08:56:05 - End Time 2024-12-28 11:56:05 [2024-12-28 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121369', 'tblTempUsageDetail_20' ) start [2024-12-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121369', 'tblTempUsageDetail_20' ) end [2024-12-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121369', 'tblTempVendorCDR_20' ) start [2024-12-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121369', 'tblTempVendorCDR_20' ) end [2024-12-28 11:56:20] Production.INFO: ProcessCDR(1,14121369,1,1,2) [2024-12-28 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121369', 'tblTempUsageDetail_20' ) start [2024-12-28 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121369', 'tblTempUsageDetail_20' ) end [2024-12-28 11:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:56:25] Production.INFO: ==10482== Releasing lock... [2024-12-28 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:56:25] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:57:05 [end_date_ymd] => 2024-12-28 11:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:57:05' and `end` < '2024-12-28 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-28 11:57:18] Production.INFO: count ==1510 [2024-12-28 11:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:57:05 - End Time 2024-12-28 11:57:05 [2024-12-28 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121374', 'tblTempUsageDetail_20' ) start [2024-12-28 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121374', 'tblTempUsageDetail_20' ) end [2024-12-28 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121374', 'tblTempVendorCDR_20' ) start [2024-12-28 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121374', 'tblTempVendorCDR_20' ) end [2024-12-28 11:57:18] Production.INFO: ProcessCDR(1,14121374,1,1,2) [2024-12-28 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121374', 'tblTempUsageDetail_20' ) start [2024-12-28 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121374', 'tblTempUsageDetail_20' ) end [2024-12-28 11:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:57:22] Production.INFO: ==10559== Releasing lock... [2024-12-28 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:57:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:58:05 [end_date_ymd] => 2024-12-28 11:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:58:05' and `end` < '2024-12-28 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-28 11:58:17] Production.INFO: count ==1512 [2024-12-28 11:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:58:05 - End Time 2024-12-28 11:58:05 [2024-12-28 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121379', 'tblTempUsageDetail_20' ) start [2024-12-28 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121379', 'tblTempUsageDetail_20' ) end [2024-12-28 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121379', 'tblTempVendorCDR_20' ) start [2024-12-28 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121379', 'tblTempVendorCDR_20' ) end [2024-12-28 11:58:18] Production.INFO: ProcessCDR(1,14121379,1,1,2) [2024-12-28 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121379', 'tblTempUsageDetail_20' ) start [2024-12-28 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121379', 'tblTempUsageDetail_20' ) end [2024-12-28 11:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:58:22] Production.INFO: ==10640== Releasing lock... [2024-12-28 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:58:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 08:59:05 [end_date_ymd] => 2024-12-28 11:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 08:59:05' and `end` < '2024-12-28 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-28 11:59:18] Production.INFO: count ==1513 [2024-12-28 11:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 08:59:05 - End Time 2024-12-28 11:59:05 [2024-12-28 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121384', 'tblTempUsageDetail_20' ) start [2024-12-28 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121384', 'tblTempUsageDetail_20' ) end [2024-12-28 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121384', 'tblTempVendorCDR_20' ) start [2024-12-28 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121384', 'tblTempVendorCDR_20' ) end [2024-12-28 11:59:18] Production.INFO: ProcessCDR(1,14121384,1,1,2) [2024-12-28 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121384', 'tblTempUsageDetail_20' ) start [2024-12-28 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121384', 'tblTempUsageDetail_20' ) end [2024-12-28 11:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 11:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 11:59:23] Production.INFO: ==10720== Releasing lock... [2024-12-28 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 11:59:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:00:05 [end_date_ymd] => 2024-12-28 12:00:05 [RateCDR] => 1 ) [2024-12-28 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:00:05' and `end` < '2024-12-28 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-28 12:00:18] Production.INFO: count ==1532 [2024-12-28 12:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:00:05 - End Time 2024-12-28 12:00:05 [2024-12-28 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121390', 'tblTempUsageDetail_20' ) start [2024-12-28 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121390', 'tblTempUsageDetail_20' ) end [2024-12-28 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121390', 'tblTempVendorCDR_20' ) start [2024-12-28 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121390', 'tblTempVendorCDR_20' ) end [2024-12-28 12:00:19] Production.INFO: ProcessCDR(1,14121390,1,1,2) [2024-12-28 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121390', 'tblTempUsageDetail_20' ) start [2024-12-28 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121390', 'tblTempUsageDetail_20' ) end [2024-12-28 12:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:00:23] Production.INFO: ==10804== Releasing lock... [2024-12-28 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:00:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:01:05 [end_date_ymd] => 2024-12-28 12:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:01:05' and `end` < '2024-12-28 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-28 12:01:18] Production.INFO: count ==1576 [2024-12-28 12:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:01:05 - End Time 2024-12-28 12:01:05 [2024-12-28 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121395', 'tblTempUsageDetail_20' ) start [2024-12-28 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121395', 'tblTempUsageDetail_20' ) end [2024-12-28 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121395', 'tblTempVendorCDR_20' ) start [2024-12-28 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121395', 'tblTempVendorCDR_20' ) end [2024-12-28 12:01:18] Production.INFO: ProcessCDR(1,14121395,1,1,2) [2024-12-28 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121395', 'tblTempUsageDetail_20' ) start [2024-12-28 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121395', 'tblTempUsageDetail_20' ) end [2024-12-28 12:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:01:23] Production.INFO: ==10900== Releasing lock... [2024-12-28 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:01:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:02:04 [end_date_ymd] => 2024-12-28 12:02:04 [RateCDR] => 1 ) [2024-12-28 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-28 09:02:04' and `end` < '2024-12-28 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-28 12:02:18] Production.INFO: count ==1569 [2024-12-28 12:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:02:04 - End Time 2024-12-28 12:02:04 [2024-12-28 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121400', 'tblTempUsageDetail_20' ) start [2024-12-28 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121400', 'tblTempUsageDetail_20' ) end [2024-12-28 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121400', 'tblTempVendorCDR_20' ) start [2024-12-28 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121400', 'tblTempVendorCDR_20' ) end [2024-12-28 12:02:18] Production.INFO: ProcessCDR(1,14121400,1,1,2) [2024-12-28 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121400', 'tblTempUsageDetail_20' ) start [2024-12-28 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121400', 'tblTempUsageDetail_20' ) end [2024-12-28 12:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:02:23] Production.INFO: ==10984== Releasing lock... [2024-12-28 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:02:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:03:05 [end_date_ymd] => 2024-12-28 12:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:03:05' and `end` < '2024-12-28 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-28 12:03:17] Production.INFO: count ==1559 [2024-12-28 12:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:03:05 - End Time 2024-12-28 12:03:05 [2024-12-28 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121405', 'tblTempUsageDetail_20' ) start [2024-12-28 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121405', 'tblTempUsageDetail_20' ) end [2024-12-28 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121405', 'tblTempVendorCDR_20' ) start [2024-12-28 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121405', 'tblTempVendorCDR_20' ) end [2024-12-28 12:03:18] Production.INFO: ProcessCDR(1,14121405,1,1,2) [2024-12-28 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121405', 'tblTempUsageDetail_20' ) start [2024-12-28 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121405', 'tblTempUsageDetail_20' ) end [2024-12-28 12:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:03:21] Production.INFO: ==11072== Releasing lock... [2024-12-28 12:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:03:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:04:05 [end_date_ymd] => 2024-12-28 12:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:04:05' and `end` < '2024-12-28 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-28 12:04:19] Production.INFO: count ==1554 [2024-12-28 12:04:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:04:05 - End Time 2024-12-28 12:04:05 [2024-12-28 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121410', 'tblTempUsageDetail_20' ) start [2024-12-28 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121410', 'tblTempUsageDetail_20' ) end [2024-12-28 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121410', 'tblTempVendorCDR_20' ) start [2024-12-28 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121410', 'tblTempVendorCDR_20' ) end [2024-12-28 12:04:19] Production.INFO: ProcessCDR(1,14121410,1,1,2) [2024-12-28 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121410', 'tblTempUsageDetail_20' ) start [2024-12-28 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121410', 'tblTempUsageDetail_20' ) end [2024-12-28 12:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:04:24] Production.INFO: ==11149== Releasing lock... [2024-12-28 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:04:24] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:05:05 [end_date_ymd] => 2024-12-28 12:05:05 [RateCDR] => 1 ) [2024-12-28 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:05:05' and `end` < '2024-12-28 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:05:18] Production.INFO: count ==1552 [2024-12-28 12:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:05:05 - End Time 2024-12-28 12:05:05 [2024-12-28 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121415', 'tblTempUsageDetail_20' ) start [2024-12-28 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121415', 'tblTempUsageDetail_20' ) end [2024-12-28 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121415', 'tblTempVendorCDR_20' ) start [2024-12-28 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121415', 'tblTempVendorCDR_20' ) end [2024-12-28 12:05:18] Production.INFO: ProcessCDR(1,14121415,1,1,2) [2024-12-28 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121415', 'tblTempUsageDetail_20' ) start [2024-12-28 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121415', 'tblTempUsageDetail_20' ) end [2024-12-28 12:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:05:23] Production.INFO: ==11222== Releasing lock... [2024-12-28 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:05:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:06:05 [end_date_ymd] => 2024-12-28 12:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:06:05' and `end` < '2024-12-28 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-28 12:06:19] Production.INFO: count ==1542 [2024-12-28 12:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:06:05 - End Time 2024-12-28 12:06:05 [2024-12-28 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121420', 'tblTempUsageDetail_20' ) start [2024-12-28 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121420', 'tblTempUsageDetail_20' ) end [2024-12-28 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121420', 'tblTempVendorCDR_20' ) start [2024-12-28 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121420', 'tblTempVendorCDR_20' ) end [2024-12-28 12:06:19] Production.INFO: ProcessCDR(1,14121420,1,1,2) [2024-12-28 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121420', 'tblTempUsageDetail_20' ) start [2024-12-28 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121420', 'tblTempUsageDetail_20' ) end [2024-12-28 12:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:06:22] Production.INFO: ==11332== Releasing lock... [2024-12-28 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:06:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:07:04 [end_date_ymd] => 2024-12-28 12:07:04 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:07:04' and `end` < '2024-12-28 12: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-28 12:07:17] Production.INFO: count ==1555 [2024-12-28 12:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:07:04 - End Time 2024-12-28 12:07:04 [2024-12-28 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121425', 'tblTempUsageDetail_20' ) start [2024-12-28 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121425', 'tblTempUsageDetail_20' ) end [2024-12-28 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121425', 'tblTempVendorCDR_20' ) start [2024-12-28 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121425', 'tblTempVendorCDR_20' ) end [2024-12-28 12:07:17] Production.INFO: ProcessCDR(1,14121425,1,1,2) [2024-12-28 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121425', 'tblTempUsageDetail_20' ) start [2024-12-28 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121425', 'tblTempUsageDetail_20' ) end [2024-12-28 12:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:07:20] Production.INFO: ==11405== Releasing lock... [2024-12-28 12:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:07:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:08:05 [end_date_ymd] => 2024-12-28 12:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:08:05' and `end` < '2024-12-28 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-28 12:08:20] Production.INFO: count ==1556 [2024-12-28 12:08:20] Production.ERROR: pbx CDR StartTime 2024-12-28 09:08:05 - End Time 2024-12-28 12:08:05 [2024-12-28 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121430', 'tblTempUsageDetail_20' ) start [2024-12-28 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121430', 'tblTempUsageDetail_20' ) end [2024-12-28 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121430', 'tblTempVendorCDR_20' ) start [2024-12-28 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121430', 'tblTempVendorCDR_20' ) end [2024-12-28 12:08:20] Production.INFO: ProcessCDR(1,14121430,1,1,2) [2024-12-28 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121430', 'tblTempUsageDetail_20' ) start [2024-12-28 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121430', 'tblTempUsageDetail_20' ) end [2024-12-28 12:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:08:24] Production.INFO: ==11482== Releasing lock... [2024-12-28 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:08:24] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:09:05 [end_date_ymd] => 2024-12-28 12:09:05 [RateCDR] => 1 ) [2024-12-28 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:09:05' and `end` < '2024-12-28 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:09:17] Production.INFO: count ==1565 [2024-12-28 12:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:09:05 - End Time 2024-12-28 12:09:05 [2024-12-28 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121435', 'tblTempUsageDetail_20' ) start [2024-12-28 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121435', 'tblTempUsageDetail_20' ) end [2024-12-28 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121435', 'tblTempVendorCDR_20' ) start [2024-12-28 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121435', 'tblTempVendorCDR_20' ) end [2024-12-28 12:09:18] Production.INFO: ProcessCDR(1,14121435,1,1,2) [2024-12-28 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121435', 'tblTempUsageDetail_20' ) start [2024-12-28 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121435', 'tblTempUsageDetail_20' ) end [2024-12-28 12:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:09:21] Production.INFO: ==11554== Releasing lock... [2024-12-28 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:09:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:10:05 [end_date_ymd] => 2024-12-28 12:10:05 [RateCDR] => 1 ) [2024-12-28 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:10:05' and `end` < '2024-12-28 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:10:18] Production.INFO: count ==1558 [2024-12-28 12:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:10:05 - End Time 2024-12-28 12:10:05 [2024-12-28 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121441', 'tblTempUsageDetail_20' ) start [2024-12-28 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121441', 'tblTempUsageDetail_20' ) end [2024-12-28 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121441', 'tblTempVendorCDR_20' ) start [2024-12-28 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121441', 'tblTempVendorCDR_20' ) end [2024-12-28 12:10:19] Production.INFO: ProcessCDR(1,14121441,1,1,2) [2024-12-28 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121441', 'tblTempUsageDetail_20' ) start [2024-12-28 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121441', 'tblTempUsageDetail_20' ) end [2024-12-28 12:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:10:22] Production.INFO: ==11642== Releasing lock... [2024-12-28 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:10:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:11:04 [end_date_ymd] => 2024-12-28 12:11:04 [RateCDR] => 1 ) [2024-12-28 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-28 09:11:04' and `end` < '2024-12-28 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-28 12:11:18] Production.INFO: count ==1595 [2024-12-28 12:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:11:04 - End Time 2024-12-28 12:11:04 [2024-12-28 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121446', 'tblTempUsageDetail_20' ) start [2024-12-28 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121446', 'tblTempUsageDetail_20' ) end [2024-12-28 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121446', 'tblTempVendorCDR_20' ) start [2024-12-28 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121446', 'tblTempVendorCDR_20' ) end [2024-12-28 12:11:18] Production.INFO: ProcessCDR(1,14121446,1,1,2) [2024-12-28 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121446', 'tblTempUsageDetail_20' ) start [2024-12-28 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121446', 'tblTempUsageDetail_20' ) end [2024-12-28 12:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:11:21] Production.INFO: ==11737== Releasing lock... [2024-12-28 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:11:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:12:05 [end_date_ymd] => 2024-12-28 12:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:12:05' and `end` < '2024-12-28 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-28 12:12:17] Production.INFO: count ==1583 [2024-12-28 12:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:12:05 - End Time 2024-12-28 12:12:05 [2024-12-28 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121451', 'tblTempUsageDetail_20' ) start [2024-12-28 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121451', 'tblTempUsageDetail_20' ) end [2024-12-28 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121451', 'tblTempVendorCDR_20' ) start [2024-12-28 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121451', 'tblTempVendorCDR_20' ) end [2024-12-28 12:12:18] Production.INFO: ProcessCDR(1,14121451,1,1,2) [2024-12-28 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121451', 'tblTempUsageDetail_20' ) start [2024-12-28 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121451', 'tblTempUsageDetail_20' ) end [2024-12-28 12:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:12:22] Production.INFO: ==11827== Releasing lock... [2024-12-28 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:12:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:13:05 [end_date_ymd] => 2024-12-28 12:13:05 [RateCDR] => 1 ) [2024-12-28 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:13:05' and `end` < '2024-12-28 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:13:18] Production.INFO: count ==1575 [2024-12-28 12:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:13:05 - End Time 2024-12-28 12:13:05 [2024-12-28 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121456', 'tblTempUsageDetail_20' ) start [2024-12-28 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121456', 'tblTempUsageDetail_20' ) end [2024-12-28 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121456', 'tblTempVendorCDR_20' ) start [2024-12-28 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121456', 'tblTempVendorCDR_20' ) end [2024-12-28 12:13:18] Production.INFO: ProcessCDR(1,14121456,1,1,2) [2024-12-28 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121456', 'tblTempUsageDetail_20' ) start [2024-12-28 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121456', 'tblTempUsageDetail_20' ) end [2024-12-28 12:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:13:21] Production.INFO: ==11920== Releasing lock... [2024-12-28 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:13:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:14:05 [end_date_ymd] => 2024-12-28 12:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:14:05' and `end` < '2024-12-28 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-28 12:14:18] Production.INFO: count ==1566 [2024-12-28 12:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:14:05 - End Time 2024-12-28 12:14:05 [2024-12-28 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121461', 'tblTempUsageDetail_20' ) start [2024-12-28 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121461', 'tblTempUsageDetail_20' ) end [2024-12-28 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121461', 'tblTempVendorCDR_20' ) start [2024-12-28 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121461', 'tblTempVendorCDR_20' ) end [2024-12-28 12:14:18] Production.INFO: ProcessCDR(1,14121461,1,1,2) [2024-12-28 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121461', 'tblTempUsageDetail_20' ) start [2024-12-28 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121461', 'tblTempUsageDetail_20' ) end [2024-12-28 12:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:14:21] Production.INFO: ==12011== Releasing lock... [2024-12-28 12:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:14:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:15:05 [end_date_ymd] => 2024-12-28 12:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:15:05' and `end` < '2024-12-28 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-28 12:15:18] Production.INFO: count ==1563 [2024-12-28 12:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:15:05 - End Time 2024-12-28 12:15:05 [2024-12-28 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121466', 'tblTempUsageDetail_20' ) start [2024-12-28 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121466', 'tblTempUsageDetail_20' ) end [2024-12-28 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121466', 'tblTempVendorCDR_20' ) start [2024-12-28 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121466', 'tblTempVendorCDR_20' ) end [2024-12-28 12:15:18] Production.INFO: ProcessCDR(1,14121466,1,1,2) [2024-12-28 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121466', 'tblTempUsageDetail_20' ) start [2024-12-28 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121466', 'tblTempUsageDetail_20' ) end [2024-12-28 12:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:15:23] Production.INFO: ==12105== Releasing lock... [2024-12-28 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:15:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:16:04 [end_date_ymd] => 2024-12-28 12:16:04 [RateCDR] => 1 ) [2024-12-28 12:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:16:04' and `end` < '2024-12-28 12:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:16:18] Production.INFO: count ==1570 [2024-12-28 12:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:16:04 - End Time 2024-12-28 12:16:04 [2024-12-28 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121471', 'tblTempUsageDetail_20' ) start [2024-12-28 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121471', 'tblTempUsageDetail_20' ) end [2024-12-28 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121471', 'tblTempVendorCDR_20' ) start [2024-12-28 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121471', 'tblTempVendorCDR_20' ) end [2024-12-28 12:16:18] Production.INFO: ProcessCDR(1,14121471,1,1,2) [2024-12-28 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121471', 'tblTempUsageDetail_20' ) start [2024-12-28 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121471', 'tblTempUsageDetail_20' ) end [2024-12-28 12:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:16:21] Production.INFO: ==12200== Releasing lock... [2024-12-28 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:16:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:17:05 [end_date_ymd] => 2024-12-28 12:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:17:05' and `end` < '2024-12-28 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-28 12:17:18] Production.INFO: count ==1571 [2024-12-28 12:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:17:05 - End Time 2024-12-28 12:17:05 [2024-12-28 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121476', 'tblTempUsageDetail_20' ) start [2024-12-28 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121476', 'tblTempUsageDetail_20' ) end [2024-12-28 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121476', 'tblTempVendorCDR_20' ) start [2024-12-28 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121476', 'tblTempVendorCDR_20' ) end [2024-12-28 12:17:19] Production.INFO: ProcessCDR(1,14121476,1,1,2) [2024-12-28 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121476', 'tblTempUsageDetail_20' ) start [2024-12-28 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121476', 'tblTempUsageDetail_20' ) end [2024-12-28 12:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:17:23] Production.INFO: ==12295== Releasing lock... [2024-12-28 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:17:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:18:04 [end_date_ymd] => 2024-12-28 12:18:04 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:18:04' and `end` < '2024-12-28 12: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-28 12:18:17] Production.INFO: count ==1571 [2024-12-28 12:18:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:18:04 - End Time 2024-12-28 12:18:04 [2024-12-28 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121481', 'tblTempUsageDetail_20' ) start [2024-12-28 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121481', 'tblTempUsageDetail_20' ) end [2024-12-28 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121481', 'tblTempVendorCDR_20' ) start [2024-12-28 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121481', 'tblTempVendorCDR_20' ) end [2024-12-28 12:18:18] Production.INFO: ProcessCDR(1,14121481,1,1,2) [2024-12-28 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121481', 'tblTempUsageDetail_20' ) start [2024-12-28 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121481', 'tblTempUsageDetail_20' ) end [2024-12-28 12:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:18:22] Production.INFO: ==12384== Releasing lock... [2024-12-28 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:18:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:19:05 [end_date_ymd] => 2024-12-28 12:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:19:05' and `end` < '2024-12-28 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-28 12:19:17] Production.INFO: count ==1578 [2024-12-28 12:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:19:05 - End Time 2024-12-28 12:19:05 [2024-12-28 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121486', 'tblTempUsageDetail_20' ) start [2024-12-28 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121486', 'tblTempUsageDetail_20' ) end [2024-12-28 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121486', 'tblTempVendorCDR_20' ) start [2024-12-28 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121486', 'tblTempVendorCDR_20' ) end [2024-12-28 12:19:18] Production.INFO: ProcessCDR(1,14121486,1,1,2) [2024-12-28 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121486', 'tblTempUsageDetail_20' ) start [2024-12-28 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121486', 'tblTempUsageDetail_20' ) end [2024-12-28 12:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:19:22] Production.INFO: ==12475== Releasing lock... [2024-12-28 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:19:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:20:05 [end_date_ymd] => 2024-12-28 12:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:20:05' and `end` < '2024-12-28 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-28 12:20:17] Production.INFO: count ==1579 [2024-12-28 12:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:20:05 - End Time 2024-12-28 12:20:05 [2024-12-28 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121491', 'tblTempUsageDetail_20' ) start [2024-12-28 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121491', 'tblTempUsageDetail_20' ) end [2024-12-28 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121491', 'tblTempVendorCDR_20' ) start [2024-12-28 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121491', 'tblTempVendorCDR_20' ) end [2024-12-28 12:20:18] Production.INFO: ProcessCDR(1,14121491,1,1,2) [2024-12-28 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121491', 'tblTempUsageDetail_20' ) start [2024-12-28 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121491', 'tblTempUsageDetail_20' ) end [2024-12-28 12:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:20:21] Production.INFO: ==12560== Releasing lock... [2024-12-28 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:20:21] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:21:04 [end_date_ymd] => 2024-12-28 12:21:04 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:21:04' and `end` < '2024-12-28 12: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-28 12:21:17] Production.INFO: count ==1600 [2024-12-28 12:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:21:04 - End Time 2024-12-28 12:21:04 [2024-12-28 12:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121497', 'tblTempUsageDetail_20' ) start [2024-12-28 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121497', 'tblTempUsageDetail_20' ) end [2024-12-28 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121497', 'tblTempVendorCDR_20' ) start [2024-12-28 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121497', 'tblTempVendorCDR_20' ) end [2024-12-28 12:21:17] Production.INFO: ProcessCDR(1,14121497,1,1,2) [2024-12-28 12:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121497', 'tblTempUsageDetail_20' ) start [2024-12-28 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121497', 'tblTempUsageDetail_20' ) end [2024-12-28 12:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:21:22] Production.INFO: ==12690== Releasing lock... [2024-12-28 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:21:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:22:05 [end_date_ymd] => 2024-12-28 12:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:22:05' and `end` < '2024-12-28 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-28 12:22:17] Production.INFO: count ==1602 [2024-12-28 12:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:22:05 - End Time 2024-12-28 12:22:05 [2024-12-28 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121502', 'tblTempUsageDetail_20' ) start [2024-12-28 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121502', 'tblTempUsageDetail_20' ) end [2024-12-28 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121502', 'tblTempVendorCDR_20' ) start [2024-12-28 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121502', 'tblTempVendorCDR_20' ) end [2024-12-28 12:22:18] Production.INFO: ProcessCDR(1,14121502,1,1,2) [2024-12-28 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121502', 'tblTempUsageDetail_20' ) start [2024-12-28 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121502', 'tblTempUsageDetail_20' ) end [2024-12-28 12:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:22:22] Production.INFO: ==12781== Releasing lock... [2024-12-28 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:22:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:23:05 [end_date_ymd] => 2024-12-28 12:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:23:05' and `end` < '2024-12-28 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-28 12:23:18] Production.INFO: count ==1602 [2024-12-28 12:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:23:05 - End Time 2024-12-28 12:23:05 [2024-12-28 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121507', 'tblTempUsageDetail_20' ) start [2024-12-28 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121507', 'tblTempUsageDetail_20' ) end [2024-12-28 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121507', 'tblTempVendorCDR_20' ) start [2024-12-28 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121507', 'tblTempVendorCDR_20' ) end [2024-12-28 12:23:18] Production.INFO: ProcessCDR(1,14121507,1,1,2) [2024-12-28 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121507', 'tblTempUsageDetail_20' ) start [2024-12-28 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121507', 'tblTempUsageDetail_20' ) end [2024-12-28 12:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:23:21] Production.INFO: ==12864== Releasing lock... [2024-12-28 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:23:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:24:05 [end_date_ymd] => 2024-12-28 12:24:05 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:24:05' and `end` < '2024-12-28 12: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-28 12:24:18] Production.INFO: count ==1600 [2024-12-28 12:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:24:05 - End Time 2024-12-28 12:24:05 [2024-12-28 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121511', 'tblTempUsageDetail_20' ) start [2024-12-28 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121511', 'tblTempUsageDetail_20' ) end [2024-12-28 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121511', 'tblTempVendorCDR_20' ) start [2024-12-28 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121511', 'tblTempVendorCDR_20' ) end [2024-12-28 12:24:18] Production.INFO: ProcessCDR(1,14121511,1,1,2) [2024-12-28 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121511', 'tblTempUsageDetail_20' ) start [2024-12-28 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121511', 'tblTempUsageDetail_20' ) end [2024-12-28 12:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:24:23] Production.INFO: ==12953== Releasing lock... [2024-12-28 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:24:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:25:05 [end_date_ymd] => 2024-12-28 12:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:25:05' and `end` < '2024-12-28 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-28 12:25:17] Production.INFO: count ==1596 [2024-12-28 12:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:25:05 - End Time 2024-12-28 12:25:05 [2024-12-28 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121517', 'tblTempUsageDetail_20' ) start [2024-12-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121517', 'tblTempUsageDetail_20' ) end [2024-12-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121517', 'tblTempVendorCDR_20' ) start [2024-12-28 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121517', 'tblTempVendorCDR_20' ) end [2024-12-28 12:25:18] Production.INFO: ProcessCDR(1,14121517,1,1,2) [2024-12-28 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121517', 'tblTempUsageDetail_20' ) start [2024-12-28 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121517', 'tblTempUsageDetail_20' ) end [2024-12-28 12:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:25:22] Production.INFO: ==13049== Releasing lock... [2024-12-28 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:25:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:26:05 [end_date_ymd] => 2024-12-28 12:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:26:05' and `end` < '2024-12-28 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-28 12:26:19] Production.INFO: count ==1597 [2024-12-28 12:26:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:26:05 - End Time 2024-12-28 12:26:05 [2024-12-28 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121522', 'tblTempUsageDetail_20' ) start [2024-12-28 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121522', 'tblTempUsageDetail_20' ) end [2024-12-28 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121522', 'tblTempVendorCDR_20' ) start [2024-12-28 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121522', 'tblTempVendorCDR_20' ) end [2024-12-28 12:26:19] Production.INFO: ProcessCDR(1,14121522,1,1,2) [2024-12-28 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121522', 'tblTempUsageDetail_20' ) start [2024-12-28 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121522', 'tblTempUsageDetail_20' ) end [2024-12-28 12:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:26:24] Production.INFO: ==13133== Releasing lock... [2024-12-28 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:26:24] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:27:04 [end_date_ymd] => 2024-12-28 12:27:04 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:27:04' and `end` < '2024-12-28 12: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-28 12:27:18] Production.INFO: count ==1590 [2024-12-28 12:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:27:04 - End Time 2024-12-28 12:27:04 [2024-12-28 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121527', 'tblTempUsageDetail_20' ) start [2024-12-28 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121527', 'tblTempUsageDetail_20' ) end [2024-12-28 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121527', 'tblTempVendorCDR_20' ) start [2024-12-28 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121527', 'tblTempVendorCDR_20' ) end [2024-12-28 12:27:18] Production.INFO: ProcessCDR(1,14121527,1,1,2) [2024-12-28 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121527', 'tblTempUsageDetail_20' ) start [2024-12-28 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121527', 'tblTempUsageDetail_20' ) end [2024-12-28 12:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:27:21] Production.INFO: ==13219== Releasing lock... [2024-12-28 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:27:21] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:28:05 [end_date_ymd] => 2024-12-28 12:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:28:05' and `end` < '2024-12-28 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-28 12:28:18] Production.INFO: count ==1578 [2024-12-28 12:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:28:05 - End Time 2024-12-28 12:28:05 [2024-12-28 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121532', 'tblTempUsageDetail_20' ) start [2024-12-28 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121532', 'tblTempUsageDetail_20' ) end [2024-12-28 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121532', 'tblTempVendorCDR_20' ) start [2024-12-28 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121532', 'tblTempVendorCDR_20' ) end [2024-12-28 12:28:18] Production.INFO: ProcessCDR(1,14121532,1,1,2) [2024-12-28 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121532', 'tblTempUsageDetail_20' ) start [2024-12-28 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121532', 'tblTempUsageDetail_20' ) end [2024-12-28 12:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:28:23] Production.INFO: ==13311== Releasing lock... [2024-12-28 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:28:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:29:04 [end_date_ymd] => 2024-12-28 12:29:04 [RateCDR] => 1 ) [2024-12-28 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:29:04' and `end` < '2024-12-28 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-28 12:29:18] Production.INFO: count ==1578 [2024-12-28 12:29:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:29:04 - End Time 2024-12-28 12:29:04 [2024-12-28 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121537', 'tblTempUsageDetail_20' ) start [2024-12-28 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121537', 'tblTempUsageDetail_20' ) end [2024-12-28 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121537', 'tblTempVendorCDR_20' ) start [2024-12-28 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121537', 'tblTempVendorCDR_20' ) end [2024-12-28 12:29:19] Production.INFO: ProcessCDR(1,14121537,1,1,2) [2024-12-28 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121537', 'tblTempUsageDetail_20' ) start [2024-12-28 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121537', 'tblTempUsageDetail_20' ) end [2024-12-28 12:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:29:24] Production.INFO: ==13399== Releasing lock... [2024-12-28 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:29:24] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:30:05 [end_date_ymd] => 2024-12-28 12:30:05 [RateCDR] => 1 ) [2024-12-28 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:30:05' and `end` < '2024-12-28 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:30:18] Production.INFO: count ==1587 [2024-12-28 12:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:30:05 - End Time 2024-12-28 12:30:05 [2024-12-28 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121543', 'tblTempUsageDetail_20' ) start [2024-12-28 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121543', 'tblTempUsageDetail_20' ) end [2024-12-28 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121543', 'tblTempVendorCDR_20' ) start [2024-12-28 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121543', 'tblTempVendorCDR_20' ) end [2024-12-28 12:30:19] Production.INFO: ProcessCDR(1,14121543,1,1,2) [2024-12-28 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121543', 'tblTempUsageDetail_20' ) start [2024-12-28 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121543', 'tblTempUsageDetail_20' ) end [2024-12-28 12:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:30:23] Production.INFO: ==13484== Releasing lock... [2024-12-28 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:30:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:31:04 [end_date_ymd] => 2024-12-28 12:31:04 [RateCDR] => 1 ) [2024-12-28 12: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-28 09:31:04' and `end` < '2024-12-28 12: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-28 12:31:18] Production.INFO: count ==1619 [2024-12-28 12:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:31:04 - End Time 2024-12-28 12:31:04 [2024-12-28 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121548', 'tblTempUsageDetail_20' ) start [2024-12-28 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121548', 'tblTempUsageDetail_20' ) end [2024-12-28 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121548', 'tblTempVendorCDR_20' ) start [2024-12-28 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121548', 'tblTempVendorCDR_20' ) end [2024-12-28 12:31:19] Production.INFO: ProcessCDR(1,14121548,1,1,2) [2024-12-28 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121548', 'tblTempUsageDetail_20' ) start [2024-12-28 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121548', 'tblTempUsageDetail_20' ) end [2024-12-28 12:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:31:23] Production.INFO: ==13560== Releasing lock... [2024-12-28 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:31:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:32:05 [end_date_ymd] => 2024-12-28 12:32:05 [RateCDR] => 1 ) [2024-12-28 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:32:05' and `end` < '2024-12-28 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:32:17] Production.INFO: count ==1628 [2024-12-28 12:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:32:05 - End Time 2024-12-28 12:32:05 [2024-12-28 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121553', 'tblTempUsageDetail_20' ) start [2024-12-28 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121553', 'tblTempUsageDetail_20' ) end [2024-12-28 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121553', 'tblTempVendorCDR_20' ) start [2024-12-28 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121553', 'tblTempVendorCDR_20' ) end [2024-12-28 12:32:18] Production.INFO: ProcessCDR(1,14121553,1,1,2) [2024-12-28 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121553', 'tblTempUsageDetail_20' ) start [2024-12-28 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121553', 'tblTempUsageDetail_20' ) end [2024-12-28 12:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:32:23] Production.INFO: ==13630== Releasing lock... [2024-12-28 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:32:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:33:05 [end_date_ymd] => 2024-12-28 12:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:33:05' and `end` < '2024-12-28 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-28 12:33:18] Production.INFO: count ==1646 [2024-12-28 12:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:33:05 - End Time 2024-12-28 12:33:05 [2024-12-28 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121558', 'tblTempUsageDetail_20' ) start [2024-12-28 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121558', 'tblTempUsageDetail_20' ) end [2024-12-28 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121558', 'tblTempVendorCDR_20' ) start [2024-12-28 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121558', 'tblTempVendorCDR_20' ) end [2024-12-28 12:33:18] Production.INFO: ProcessCDR(1,14121558,1,1,2) [2024-12-28 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121558', 'tblTempUsageDetail_20' ) start [2024-12-28 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121558', 'tblTempUsageDetail_20' ) end [2024-12-28 12:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:33:22] Production.INFO: ==13704== Releasing lock... [2024-12-28 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:33:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:34:05 [end_date_ymd] => 2024-12-28 12:34:05 [RateCDR] => 1 ) [2024-12-28 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:34:05' and `end` < '2024-12-28 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:34:19] Production.INFO: count ==1645 [2024-12-28 12:34:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:34:05 - End Time 2024-12-28 12:34:05 [2024-12-28 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121563', 'tblTempUsageDetail_20' ) start [2024-12-28 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121563', 'tblTempUsageDetail_20' ) end [2024-12-28 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121563', 'tblTempVendorCDR_20' ) start [2024-12-28 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121563', 'tblTempVendorCDR_20' ) end [2024-12-28 12:34:19] Production.INFO: ProcessCDR(1,14121563,1,1,2) [2024-12-28 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121563', 'tblTempUsageDetail_20' ) start [2024-12-28 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121563', 'tblTempUsageDetail_20' ) end [2024-12-28 12:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:34:23] Production.INFO: ==13774== Releasing lock... [2024-12-28 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:34:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:35:05 [end_date_ymd] => 2024-12-28 12:35:05 [RateCDR] => 1 ) [2024-12-28 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:35:05' and `end` < '2024-12-28 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:35:17] Production.INFO: count ==1649 [2024-12-28 12:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:35:05 - End Time 2024-12-28 12:35:05 [2024-12-28 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121568', 'tblTempUsageDetail_20' ) start [2024-12-28 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121568', 'tblTempUsageDetail_20' ) end [2024-12-28 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121568', 'tblTempVendorCDR_20' ) start [2024-12-28 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121568', 'tblTempVendorCDR_20' ) end [2024-12-28 12:35:18] Production.INFO: ProcessCDR(1,14121568,1,1,2) [2024-12-28 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121568', 'tblTempUsageDetail_20' ) start [2024-12-28 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121568', 'tblTempUsageDetail_20' ) end [2024-12-28 12:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:35:21] Production.INFO: ==13847== Releasing lock... [2024-12-28 12:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:35:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:36:05 [end_date_ymd] => 2024-12-28 12:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:36:05' and `end` < '2024-12-28 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-28 12:36:18] Production.INFO: count ==1662 [2024-12-28 12:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:36:05 - End Time 2024-12-28 12:36:05 [2024-12-28 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121573', 'tblTempUsageDetail_20' ) start [2024-12-28 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121573', 'tblTempUsageDetail_20' ) end [2024-12-28 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121573', 'tblTempVendorCDR_20' ) start [2024-12-28 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121573', 'tblTempVendorCDR_20' ) end [2024-12-28 12:36:18] Production.INFO: ProcessCDR(1,14121573,1,1,2) [2024-12-28 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121573', 'tblTempUsageDetail_20' ) start [2024-12-28 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121573', 'tblTempUsageDetail_20' ) end [2024-12-28 12:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:36:23] Production.INFO: ==13918== Releasing lock... [2024-12-28 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:36:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:37:05 [end_date_ymd] => 2024-12-28 12:37:05 [RateCDR] => 1 ) [2024-12-28 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:37:05' and `end` < '2024-12-28 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:37:17] Production.INFO: count ==1671 [2024-12-28 12:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:37:05 - End Time 2024-12-28 12:37:05 [2024-12-28 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121578', 'tblTempUsageDetail_20' ) start [2024-12-28 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121578', 'tblTempUsageDetail_20' ) end [2024-12-28 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121578', 'tblTempVendorCDR_20' ) start [2024-12-28 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121578', 'tblTempVendorCDR_20' ) end [2024-12-28 12:37:18] Production.INFO: ProcessCDR(1,14121578,1,1,2) [2024-12-28 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121578', 'tblTempUsageDetail_20' ) start [2024-12-28 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121578', 'tblTempUsageDetail_20' ) end [2024-12-28 12:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:37:21] Production.INFO: ==14033== Releasing lock... [2024-12-28 12:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:37:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:38:05 [end_date_ymd] => 2024-12-28 12:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:38:05' and `end` < '2024-12-28 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-28 12:38:19] Production.INFO: count ==1671 [2024-12-28 12:38:20] Production.ERROR: pbx CDR StartTime 2024-12-28 09:38:05 - End Time 2024-12-28 12:38:05 [2024-12-28 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121583', 'tblTempUsageDetail_20' ) start [2024-12-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121583', 'tblTempUsageDetail_20' ) end [2024-12-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121583', 'tblTempVendorCDR_20' ) start [2024-12-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121583', 'tblTempVendorCDR_20' ) end [2024-12-28 12:38:20] Production.INFO: ProcessCDR(1,14121583,1,1,2) [2024-12-28 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121583', 'tblTempUsageDetail_20' ) start [2024-12-28 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121583', 'tblTempUsageDetail_20' ) end [2024-12-28 12:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:38:24] Production.INFO: ==14112== Releasing lock... [2024-12-28 12:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:38:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:39:05 [end_date_ymd] => 2024-12-28 12:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:39:05' and `end` < '2024-12-28 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-28 12:39:18] Production.INFO: count ==1651 [2024-12-28 12:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:39:05 - End Time 2024-12-28 12:39:05 [2024-12-28 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121588', 'tblTempUsageDetail_20' ) start [2024-12-28 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121588', 'tblTempUsageDetail_20' ) end [2024-12-28 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121588', 'tblTempVendorCDR_20' ) start [2024-12-28 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121588', 'tblTempVendorCDR_20' ) end [2024-12-28 12:39:18] Production.INFO: ProcessCDR(1,14121588,1,1,2) [2024-12-28 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121588', 'tblTempUsageDetail_20' ) start [2024-12-28 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121588', 'tblTempUsageDetail_20' ) end [2024-12-28 12:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:39:23] Production.INFO: ==14187== Releasing lock... [2024-12-28 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:39:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:40:06 [end_date_ymd] => 2024-12-28 12:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 09:40:06' and `end` < '2024-12-28 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-28 12:40:18] Production.INFO: count ==1641 [2024-12-28 12:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:40:06 - End Time 2024-12-28 12:40:06 [2024-12-28 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121594', 'tblTempUsageDetail_20' ) start [2024-12-28 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121594', 'tblTempUsageDetail_20' ) end [2024-12-28 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121594', 'tblTempVendorCDR_20' ) start [2024-12-28 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121594', 'tblTempVendorCDR_20' ) end [2024-12-28 12:40:19] Production.INFO: ProcessCDR(1,14121594,1,1,2) [2024-12-28 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121594', 'tblTempUsageDetail_20' ) start [2024-12-28 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121594', 'tblTempUsageDetail_20' ) end [2024-12-28 12:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:40:22] Production.INFO: ==14268== Releasing lock... [2024-12-28 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:40:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:41:04 [end_date_ymd] => 2024-12-28 12:41:04 [RateCDR] => 1 ) [2024-12-28 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:41:04' and `end` < '2024-12-28 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:41:17] Production.INFO: count ==1675 [2024-12-28 12:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:41:04 - End Time 2024-12-28 12:41:04 [2024-12-28 12:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121599', 'tblTempUsageDetail_20' ) start [2024-12-28 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121599', 'tblTempUsageDetail_20' ) end [2024-12-28 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121599', 'tblTempVendorCDR_20' ) start [2024-12-28 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121599', 'tblTempVendorCDR_20' ) end [2024-12-28 12:41:18] Production.INFO: ProcessCDR(1,14121599,1,1,2) [2024-12-28 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121599', 'tblTempUsageDetail_20' ) start [2024-12-28 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121599', 'tblTempUsageDetail_20' ) end [2024-12-28 12:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:41:21] Production.INFO: ==14343== Releasing lock... [2024-12-28 12:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:41:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:42:05 [end_date_ymd] => 2024-12-28 12:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:42:05' and `end` < '2024-12-28 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-28 12:42:17] Production.INFO: count ==1670 [2024-12-28 12:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:42:05 - End Time 2024-12-28 12:42:05 [2024-12-28 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121604', 'tblTempUsageDetail_20' ) start [2024-12-28 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121604', 'tblTempUsageDetail_20' ) end [2024-12-28 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121604', 'tblTempVendorCDR_20' ) start [2024-12-28 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121604', 'tblTempVendorCDR_20' ) end [2024-12-28 12:42:18] Production.INFO: ProcessCDR(1,14121604,1,1,2) [2024-12-28 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121604', 'tblTempUsageDetail_20' ) start [2024-12-28 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121604', 'tblTempUsageDetail_20' ) end [2024-12-28 12:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:42:22] Production.INFO: ==14430== Releasing lock... [2024-12-28 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:42:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:43:05 [end_date_ymd] => 2024-12-28 12:43:05 [RateCDR] => 1 ) [2024-12-28 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:43:05' and `end` < '2024-12-28 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:43:18] Production.INFO: count ==1664 [2024-12-28 12:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:43:05 - End Time 2024-12-28 12:43:05 [2024-12-28 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121609', 'tblTempUsageDetail_20' ) start [2024-12-28 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121609', 'tblTempUsageDetail_20' ) end [2024-12-28 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121609', 'tblTempVendorCDR_20' ) start [2024-12-28 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121609', 'tblTempVendorCDR_20' ) end [2024-12-28 12:43:18] Production.INFO: ProcessCDR(1,14121609,1,1,2) [2024-12-28 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121609', 'tblTempUsageDetail_20' ) start [2024-12-28 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121609', 'tblTempUsageDetail_20' ) end [2024-12-28 12:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:43:23] Production.INFO: ==14513== Releasing lock... [2024-12-28 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:43:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:44:05 [end_date_ymd] => 2024-12-28 12:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:44:05' and `end` < '2024-12-28 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-28 12:44:18] Production.INFO: count ==1659 [2024-12-28 12:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:44:05 - End Time 2024-12-28 12:44:05 [2024-12-28 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121614', 'tblTempUsageDetail_20' ) start [2024-12-28 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121614', 'tblTempUsageDetail_20' ) end [2024-12-28 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121614', 'tblTempVendorCDR_20' ) start [2024-12-28 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121614', 'tblTempVendorCDR_20' ) end [2024-12-28 12:44:19] Production.INFO: ProcessCDR(1,14121614,1,1,2) [2024-12-28 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121614', 'tblTempUsageDetail_20' ) start [2024-12-28 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121614', 'tblTempUsageDetail_20' ) end [2024-12-28 12:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:44:23] Production.INFO: ==14595== Releasing lock... [2024-12-28 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:44:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:45:04 [end_date_ymd] => 2024-12-28 12:45:04 [RateCDR] => 1 ) [2024-12-28 12:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:45:04' and `end` < '2024-12-28 12:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:45:17] Production.INFO: count ==1653 [2024-12-28 12:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:45:04 - End Time 2024-12-28 12:45:04 [2024-12-28 12:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121619', 'tblTempUsageDetail_20' ) start [2024-12-28 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121619', 'tblTempUsageDetail_20' ) end [2024-12-28 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121619', 'tblTempVendorCDR_20' ) start [2024-12-28 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121619', 'tblTempVendorCDR_20' ) end [2024-12-28 12:45:17] Production.INFO: ProcessCDR(1,14121619,1,1,2) [2024-12-28 12:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121619', 'tblTempUsageDetail_20' ) start [2024-12-28 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121619', 'tblTempUsageDetail_20' ) end [2024-12-28 12:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:45:22] Production.INFO: ==14682== Releasing lock... [2024-12-28 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:45:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:46:05 [end_date_ymd] => 2024-12-28 12:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:46:05' and `end` < '2024-12-28 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-28 12:46:19] Production.INFO: count ==1653 [2024-12-28 12:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:46:05 - End Time 2024-12-28 12:46:05 [2024-12-28 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121624', 'tblTempUsageDetail_20' ) start [2024-12-28 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121624', 'tblTempUsageDetail_20' ) end [2024-12-28 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121624', 'tblTempVendorCDR_20' ) start [2024-12-28 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121624', 'tblTempVendorCDR_20' ) end [2024-12-28 12:46:19] Production.INFO: ProcessCDR(1,14121624,1,1,2) [2024-12-28 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121624', 'tblTempUsageDetail_20' ) start [2024-12-28 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121624', 'tblTempUsageDetail_20' ) end [2024-12-28 12:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:46:24] Production.INFO: ==14768== Releasing lock... [2024-12-28 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:46:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:47:05 [end_date_ymd] => 2024-12-28 12:47:05 [RateCDR] => 1 ) [2024-12-28 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:47:05' and `end` < '2024-12-28 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:47:19] Production.INFO: count ==1647 [2024-12-28 12:47:20] Production.ERROR: pbx CDR StartTime 2024-12-28 09:47:05 - End Time 2024-12-28 12:47:05 [2024-12-28 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121629', 'tblTempUsageDetail_20' ) start [2024-12-28 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121629', 'tblTempUsageDetail_20' ) end [2024-12-28 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121629', 'tblTempVendorCDR_20' ) start [2024-12-28 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121629', 'tblTempVendorCDR_20' ) end [2024-12-28 12:47:20] Production.INFO: ProcessCDR(1,14121629,1,1,2) [2024-12-28 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121629', 'tblTempUsageDetail_20' ) start [2024-12-28 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121629', 'tblTempUsageDetail_20' ) end [2024-12-28 12:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:47:23] Production.INFO: ==14850== Releasing lock... [2024-12-28 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:47:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:48:04 [end_date_ymd] => 2024-12-28 12:48:04 [RateCDR] => 1 ) [2024-12-28 12:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:48:04' and `end` < '2024-12-28 12:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:48:17] Production.INFO: count ==1641 [2024-12-28 12:48:17] Production.ERROR: pbx CDR StartTime 2024-12-28 09:48:04 - End Time 2024-12-28 12:48:04 [2024-12-28 12:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121634', 'tblTempUsageDetail_20' ) start [2024-12-28 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121634', 'tblTempUsageDetail_20' ) end [2024-12-28 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121634', 'tblTempVendorCDR_20' ) start [2024-12-28 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121634', 'tblTempVendorCDR_20' ) end [2024-12-28 12:48:17] Production.INFO: ProcessCDR(1,14121634,1,1,2) [2024-12-28 12:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121634', 'tblTempUsageDetail_20' ) start [2024-12-28 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121634', 'tblTempUsageDetail_20' ) end [2024-12-28 12:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:48:21] Production.INFO: ==14937== Releasing lock... [2024-12-28 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:48:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:49:05 [end_date_ymd] => 2024-12-28 12:49:05 [RateCDR] => 1 ) [2024-12-28 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:49:05' and `end` < '2024-12-28 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:49:17] Production.INFO: count ==1641 [2024-12-28 12:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:49:05 - End Time 2024-12-28 12:49:05 [2024-12-28 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121639', 'tblTempUsageDetail_20' ) start [2024-12-28 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121639', 'tblTempUsageDetail_20' ) end [2024-12-28 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121639', 'tblTempVendorCDR_20' ) start [2024-12-28 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121639', 'tblTempVendorCDR_20' ) end [2024-12-28 12:49:18] Production.INFO: ProcessCDR(1,14121639,1,1,2) [2024-12-28 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121639', 'tblTempUsageDetail_20' ) start [2024-12-28 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121639', 'tblTempUsageDetail_20' ) end [2024-12-28 12:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:49:23] Production.INFO: ==15022== Releasing lock... [2024-12-28 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:49:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:50:05 [end_date_ymd] => 2024-12-28 12:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:50:05' and `end` < '2024-12-28 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-28 12:50:18] Production.INFO: count ==1642 [2024-12-28 12:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:50:05 - End Time 2024-12-28 12:50:05 [2024-12-28 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121645', 'tblTempUsageDetail_20' ) start [2024-12-28 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121645', 'tblTempUsageDetail_20' ) end [2024-12-28 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121645', 'tblTempVendorCDR_20' ) start [2024-12-28 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121645', 'tblTempVendorCDR_20' ) end [2024-12-28 12:50:18] Production.INFO: ProcessCDR(1,14121645,1,1,2) [2024-12-28 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121645', 'tblTempUsageDetail_20' ) start [2024-12-28 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121645', 'tblTempUsageDetail_20' ) end [2024-12-28 12:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:50:23] Production.INFO: ==15105== Releasing lock... [2024-12-28 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:50:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:51:05 [end_date_ymd] => 2024-12-28 12:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:51:05' and `end` < '2024-12-28 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-28 12:51:19] Production.INFO: count ==1678 [2024-12-28 12:51:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:51:05 - End Time 2024-12-28 12:51:05 [2024-12-28 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121650', 'tblTempUsageDetail_20' ) start [2024-12-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121650', 'tblTempUsageDetail_20' ) end [2024-12-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121650', 'tblTempVendorCDR_20' ) start [2024-12-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121650', 'tblTempVendorCDR_20' ) end [2024-12-28 12:51:19] Production.INFO: ProcessCDR(1,14121650,1,1,2) [2024-12-28 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121650', 'tblTempUsageDetail_20' ) start [2024-12-28 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121650', 'tblTempUsageDetail_20' ) end [2024-12-28 12:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:51:24] Production.INFO: ==15192== Releasing lock... [2024-12-28 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:51:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:52:05 [end_date_ymd] => 2024-12-28 12:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:52:05' and `end` < '2024-12-28 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-28 12:52:17] Production.INFO: count ==1679 [2024-12-28 12:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:52:05 - End Time 2024-12-28 12:52:05 [2024-12-28 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121655', 'tblTempUsageDetail_20' ) start [2024-12-28 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121655', 'tblTempUsageDetail_20' ) end [2024-12-28 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121655', 'tblTempVendorCDR_20' ) start [2024-12-28 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121655', 'tblTempVendorCDR_20' ) end [2024-12-28 12:52:18] Production.INFO: ProcessCDR(1,14121655,1,1,2) [2024-12-28 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121655', 'tblTempUsageDetail_20' ) start [2024-12-28 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121655', 'tblTempUsageDetail_20' ) end [2024-12-28 12:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:52:23] Production.INFO: ==15276== Releasing lock... [2024-12-28 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:52:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:53:05 [end_date_ymd] => 2024-12-28 12:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:53:05' and `end` < '2024-12-28 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-28 12:53:18] Production.INFO: count ==1680 [2024-12-28 12:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:53:05 - End Time 2024-12-28 12:53:05 [2024-12-28 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121660', 'tblTempUsageDetail_20' ) start [2024-12-28 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121660', 'tblTempUsageDetail_20' ) end [2024-12-28 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121660', 'tblTempVendorCDR_20' ) start [2024-12-28 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121660', 'tblTempVendorCDR_20' ) end [2024-12-28 12:53:18] Production.INFO: ProcessCDR(1,14121660,1,1,2) [2024-12-28 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121660', 'tblTempUsageDetail_20' ) start [2024-12-28 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121660', 'tblTempUsageDetail_20' ) end [2024-12-28 12:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:53:23] Production.INFO: ==15401== Releasing lock... [2024-12-28 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:53:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:54:05 [end_date_ymd] => 2024-12-28 12:54:05 [RateCDR] => 1 ) [2024-12-28 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 09:54:05' and `end` < '2024-12-28 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 12:54:17] Production.INFO: count ==1655 [2024-12-28 12:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:54:05 - End Time 2024-12-28 12:54:05 [2024-12-28 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121665', 'tblTempUsageDetail_20' ) start [2024-12-28 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121665', 'tblTempUsageDetail_20' ) end [2024-12-28 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121665', 'tblTempVendorCDR_20' ) start [2024-12-28 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121665', 'tblTempVendorCDR_20' ) end [2024-12-28 12:54:18] Production.INFO: ProcessCDR(1,14121665,1,1,2) [2024-12-28 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121665', 'tblTempUsageDetail_20' ) start [2024-12-28 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121665', 'tblTempUsageDetail_20' ) end [2024-12-28 12:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:54:23] Production.INFO: ==15483== Releasing lock... [2024-12-28 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:54:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:55:05 [end_date_ymd] => 2024-12-28 12:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:55:05' and `end` < '2024-12-28 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-28 12:55:17] Production.INFO: count ==1654 [2024-12-28 12:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:55:05 - End Time 2024-12-28 12:55:05 [2024-12-28 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121670', 'tblTempUsageDetail_20' ) start [2024-12-28 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121670', 'tblTempUsageDetail_20' ) end [2024-12-28 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121670', 'tblTempVendorCDR_20' ) start [2024-12-28 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121670', 'tblTempVendorCDR_20' ) end [2024-12-28 12:55:18] Production.INFO: ProcessCDR(1,14121670,1,1,2) [2024-12-28 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121670', 'tblTempUsageDetail_20' ) start [2024-12-28 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121670', 'tblTempUsageDetail_20' ) end [2024-12-28 12:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:55:23] Production.INFO: ==15570== Releasing lock... [2024-12-28 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:55:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:56:05 [end_date_ymd] => 2024-12-28 12:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:56:05' and `end` < '2024-12-28 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-28 12:56:18] Production.INFO: count ==1650 [2024-12-28 12:56:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:56:05 - End Time 2024-12-28 12:56:05 [2024-12-28 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121675', 'tblTempUsageDetail_20' ) start [2024-12-28 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121675', 'tblTempUsageDetail_20' ) end [2024-12-28 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121675', 'tblTempVendorCDR_20' ) start [2024-12-28 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121675', 'tblTempVendorCDR_20' ) end [2024-12-28 12:56:19] Production.INFO: ProcessCDR(1,14121675,1,1,2) [2024-12-28 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121675', 'tblTempUsageDetail_20' ) start [2024-12-28 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121675', 'tblTempUsageDetail_20' ) end [2024-12-28 12:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:56:23] Production.INFO: ==15656== Releasing lock... [2024-12-28 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:56:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:57:05 [end_date_ymd] => 2024-12-28 12:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:57:05' and `end` < '2024-12-28 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-28 12:57:18] Production.INFO: count ==1651 [2024-12-28 12:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:57:05 - End Time 2024-12-28 12:57:05 [2024-12-28 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121680', 'tblTempUsageDetail_20' ) start [2024-12-28 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121680', 'tblTempUsageDetail_20' ) end [2024-12-28 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121680', 'tblTempVendorCDR_20' ) start [2024-12-28 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121680', 'tblTempVendorCDR_20' ) end [2024-12-28 12:57:18] Production.INFO: ProcessCDR(1,14121680,1,1,2) [2024-12-28 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121680', 'tblTempUsageDetail_20' ) start [2024-12-28 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121680', 'tblTempUsageDetail_20' ) end [2024-12-28 12:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:57:23] Production.INFO: ==15736== Releasing lock... [2024-12-28 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:57:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:58:05 [end_date_ymd] => 2024-12-28 12:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:58:05' and `end` < '2024-12-28 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-28 12:58:18] Production.INFO: count ==1653 [2024-12-28 12:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 09:58:05 - End Time 2024-12-28 12:58:05 [2024-12-28 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121685', 'tblTempUsageDetail_20' ) start [2024-12-28 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121685', 'tblTempUsageDetail_20' ) end [2024-12-28 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121685', 'tblTempVendorCDR_20' ) start [2024-12-28 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121685', 'tblTempVendorCDR_20' ) end [2024-12-28 12:58:19] Production.INFO: ProcessCDR(1,14121685,1,1,2) [2024-12-28 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121685', 'tblTempUsageDetail_20' ) start [2024-12-28 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121685', 'tblTempUsageDetail_20' ) end [2024-12-28 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:58:24] Production.INFO: ==15838== Releasing lock... [2024-12-28 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:58:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 09:59:05 [end_date_ymd] => 2024-12-28 12:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 09:59:05' and `end` < '2024-12-28 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-28 12:59:17] Production.INFO: count ==1647 [2024-12-28 12:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 09:59:05 - End Time 2024-12-28 12:59:05 [2024-12-28 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121690', 'tblTempUsageDetail_20' ) start [2024-12-28 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121690', 'tblTempUsageDetail_20' ) end [2024-12-28 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121690', 'tblTempVendorCDR_20' ) start [2024-12-28 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121690', 'tblTempVendorCDR_20' ) end [2024-12-28 12:59:18] Production.INFO: ProcessCDR(1,14121690,1,1,2) [2024-12-28 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121690', 'tblTempUsageDetail_20' ) start [2024-12-28 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121690', 'tblTempUsageDetail_20' ) end [2024-12-28 12:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 12:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 12:59:22] Production.INFO: ==15935== Releasing lock... [2024-12-28 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 12:59:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:00:05 [end_date_ymd] => 2024-12-28 13:00:05 [RateCDR] => 1 ) [2024-12-28 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:00:05' and `end` < '2024-12-28 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:00:17] Production.INFO: count ==1642 [2024-12-28 13:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:00:05 - End Time 2024-12-28 13:00:05 [2024-12-28 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121696', 'tblTempUsageDetail_20' ) start [2024-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121696', 'tblTempUsageDetail_20' ) end [2024-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121696', 'tblTempVendorCDR_20' ) start [2024-12-28 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121696', 'tblTempVendorCDR_20' ) end [2024-12-28 13:00:18] Production.INFO: ProcessCDR(1,14121696,1,1,2) [2024-12-28 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121696', 'tblTempUsageDetail_20' ) start [2024-12-28 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121696', 'tblTempUsageDetail_20' ) end [2024-12-28 13:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:00:22] Production.INFO: ==16034== Releasing lock... [2024-12-28 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:00:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:01:04 [end_date_ymd] => 2024-12-28 13:01:04 [RateCDR] => 1 ) [2024-12-28 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:01:04' and `end` < '2024-12-28 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:01:17] Production.INFO: count ==1650 [2024-12-28 13:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 10:01:04 - End Time 2024-12-28 13:01:04 [2024-12-28 13:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121701', 'tblTempUsageDetail_20' ) start [2024-12-28 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121701', 'tblTempUsageDetail_20' ) end [2024-12-28 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121701', 'tblTempVendorCDR_20' ) start [2024-12-28 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121701', 'tblTempVendorCDR_20' ) end [2024-12-28 13:01:17] Production.INFO: ProcessCDR(1,14121701,1,1,2) [2024-12-28 13:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121701', 'tblTempUsageDetail_20' ) start [2024-12-28 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121701', 'tblTempUsageDetail_20' ) end [2024-12-28 13:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:01:22] Production.INFO: ==16144== Releasing lock... [2024-12-28 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:01:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:02:05 [end_date_ymd] => 2024-12-28 13:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:02:05' and `end` < '2024-12-28 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-28 13:02:19] Production.INFO: count ==1644 [2024-12-28 13:02:20] Production.ERROR: pbx CDR StartTime 2024-12-28 10:02:05 - End Time 2024-12-28 13:02:05 [2024-12-28 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121706', 'tblTempUsageDetail_20' ) start [2024-12-28 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121706', 'tblTempUsageDetail_20' ) end [2024-12-28 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121706', 'tblTempVendorCDR_20' ) start [2024-12-28 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121706', 'tblTempVendorCDR_20' ) end [2024-12-28 13:02:20] Production.INFO: ProcessCDR(1,14121706,1,1,2) [2024-12-28 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121706', 'tblTempUsageDetail_20' ) start [2024-12-28 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121706', 'tblTempUsageDetail_20' ) end [2024-12-28 13:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:02:24] Production.INFO: ==16242== Releasing lock... [2024-12-28 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:02:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:03:04 [end_date_ymd] => 2024-12-28 13:03:04 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:03:04' and `end` < '2024-12-28 13: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-28 13:03:17] Production.INFO: count ==1616 [2024-12-28 13:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:03:04 - End Time 2024-12-28 13:03:04 [2024-12-28 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121711', 'tblTempUsageDetail_20' ) start [2024-12-28 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121711', 'tblTempUsageDetail_20' ) end [2024-12-28 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121711', 'tblTempVendorCDR_20' ) start [2024-12-28 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121711', 'tblTempVendorCDR_20' ) end [2024-12-28 13:03:18] Production.INFO: ProcessCDR(1,14121711,1,1,2) [2024-12-28 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121711', 'tblTempUsageDetail_20' ) start [2024-12-28 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121711', 'tblTempUsageDetail_20' ) end [2024-12-28 13:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:03:22] Production.INFO: ==16327== Releasing lock... [2024-12-28 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:03:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:04:05 [end_date_ymd] => 2024-12-28 13:04:05 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:04:05' and `end` < '2024-12-28 13: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-28 13:04:17] Production.INFO: count ==1615 [2024-12-28 13:04:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:04:05 - End Time 2024-12-28 13:04:05 [2024-12-28 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121716', 'tblTempUsageDetail_20' ) start [2024-12-28 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121716', 'tblTempUsageDetail_20' ) end [2024-12-28 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121716', 'tblTempVendorCDR_20' ) start [2024-12-28 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121716', 'tblTempVendorCDR_20' ) end [2024-12-28 13:04:18] Production.INFO: ProcessCDR(1,14121716,1,1,2) [2024-12-28 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121716', 'tblTempUsageDetail_20' ) start [2024-12-28 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121716', 'tblTempUsageDetail_20' ) end [2024-12-28 13:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:04:23] Production.INFO: ==16417== Releasing lock... [2024-12-28 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:04:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:05:05 [end_date_ymd] => 2024-12-28 13:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:05:05' and `end` < '2024-12-28 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-28 13:05:17] Production.INFO: count ==1625 [2024-12-28 13:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:05:05 - End Time 2024-12-28 13:05:05 [2024-12-28 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121721', 'tblTempUsageDetail_20' ) start [2024-12-28 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121721', 'tblTempUsageDetail_20' ) end [2024-12-28 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121721', 'tblTempVendorCDR_20' ) start [2024-12-28 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121721', 'tblTempVendorCDR_20' ) end [2024-12-28 13:05:18] Production.INFO: ProcessCDR(1,14121721,1,1,2) [2024-12-28 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121721', 'tblTempUsageDetail_20' ) start [2024-12-28 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121721', 'tblTempUsageDetail_20' ) end [2024-12-28 13:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:05:23] Production.INFO: ==16499== Releasing lock... [2024-12-28 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:05:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:06:05 [end_date_ymd] => 2024-12-28 13:06:05 [RateCDR] => 1 ) [2024-12-28 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:06:05' and `end` < '2024-12-28 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:06:19] Production.INFO: count ==1618 [2024-12-28 13:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:06:05 - End Time 2024-12-28 13:06:05 [2024-12-28 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121726', 'tblTempUsageDetail_20' ) start [2024-12-28 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121726', 'tblTempUsageDetail_20' ) end [2024-12-28 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121726', 'tblTempVendorCDR_20' ) start [2024-12-28 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121726', 'tblTempVendorCDR_20' ) end [2024-12-28 13:06:19] Production.INFO: ProcessCDR(1,14121726,1,1,2) [2024-12-28 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121726', 'tblTempUsageDetail_20' ) start [2024-12-28 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121726', 'tblTempUsageDetail_20' ) end [2024-12-28 13:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:06:24] Production.INFO: ==16585== Releasing lock... [2024-12-28 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:06:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:07:04 [end_date_ymd] => 2024-12-28 13:07:04 [RateCDR] => 1 ) [2024-12-28 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-28 10:07:04' and `end` < '2024-12-28 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-28 13:07:18] Production.INFO: count ==1619 [2024-12-28 13:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:07:04 - End Time 2024-12-28 13:07:04 [2024-12-28 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121731', 'tblTempUsageDetail_20' ) start [2024-12-28 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121731', 'tblTempUsageDetail_20' ) end [2024-12-28 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121731', 'tblTempVendorCDR_20' ) start [2024-12-28 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121731', 'tblTempVendorCDR_20' ) end [2024-12-28 13:07:19] Production.INFO: ProcessCDR(1,14121731,1,1,2) [2024-12-28 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121731', 'tblTempUsageDetail_20' ) start [2024-12-28 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121731', 'tblTempUsageDetail_20' ) end [2024-12-28 13:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:07:23] Production.INFO: ==16663== Releasing lock... [2024-12-28 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:07:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:08:05 [end_date_ymd] => 2024-12-28 13:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:08:05' and `end` < '2024-12-28 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-28 13:08:18] Production.INFO: count ==1650 [2024-12-28 13:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:08:05 - End Time 2024-12-28 13:08:05 [2024-12-28 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121736', 'tblTempUsageDetail_20' ) start [2024-12-28 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121736', 'tblTempUsageDetail_20' ) end [2024-12-28 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121736', 'tblTempVendorCDR_20' ) start [2024-12-28 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121736', 'tblTempVendorCDR_20' ) end [2024-12-28 13:08:18] Production.INFO: ProcessCDR(1,14121736,1,1,2) [2024-12-28 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121736', 'tblTempUsageDetail_20' ) start [2024-12-28 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121736', 'tblTempUsageDetail_20' ) end [2024-12-28 13:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:08:23] Production.INFO: ==16792== Releasing lock... [2024-12-28 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:08:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:09:04 [end_date_ymd] => 2024-12-28 13:09:04 [RateCDR] => 1 ) [2024-12-28 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:09:04' and `end` < '2024-12-28 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:09:17] Production.INFO: count ==1656 [2024-12-28 13:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:09:04 - End Time 2024-12-28 13:09:04 [2024-12-28 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121741', 'tblTempUsageDetail_20' ) start [2024-12-28 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121741', 'tblTempUsageDetail_20' ) end [2024-12-28 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121741', 'tblTempVendorCDR_20' ) start [2024-12-28 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121741', 'tblTempVendorCDR_20' ) end [2024-12-28 13:09:18] Production.INFO: ProcessCDR(1,14121741,1,1,2) [2024-12-28 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121741', 'tblTempUsageDetail_20' ) start [2024-12-28 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121741', 'tblTempUsageDetail_20' ) end [2024-12-28 13:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:09:22] Production.INFO: ==16875== Releasing lock... [2024-12-28 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:09:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:10:05 [end_date_ymd] => 2024-12-28 13:10:05 [RateCDR] => 1 ) [2024-12-28 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:10:05' and `end` < '2024-12-28 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:10:18] Production.INFO: count ==1665 [2024-12-28 13:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:10:05 - End Time 2024-12-28 13:10:05 [2024-12-28 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121746', 'tblTempUsageDetail_20' ) start [2024-12-28 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121746', 'tblTempUsageDetail_20' ) end [2024-12-28 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121746', 'tblTempVendorCDR_20' ) start [2024-12-28 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121746', 'tblTempVendorCDR_20' ) end [2024-12-28 13:10:19] Production.INFO: ProcessCDR(1,14121746,1,1,2) [2024-12-28 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121746', 'tblTempUsageDetail_20' ) start [2024-12-28 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121746', 'tblTempUsageDetail_20' ) end [2024-12-28 13:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:10:23] Production.INFO: ==16954== Releasing lock... [2024-12-28 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:10:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:11:04 [end_date_ymd] => 2024-12-28 13:11:04 [RateCDR] => 1 ) [2024-12-28 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:11:04' and `end` < '2024-12-28 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:11:17] Production.INFO: count ==1683 [2024-12-28 13:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 10:11:04 - End Time 2024-12-28 13:11:04 [2024-12-28 13:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121750', 'tblTempUsageDetail_20' ) start [2024-12-28 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121750', 'tblTempUsageDetail_20' ) end [2024-12-28 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121750', 'tblTempVendorCDR_20' ) start [2024-12-28 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121750', 'tblTempVendorCDR_20' ) end [2024-12-28 13:11:17] Production.INFO: ProcessCDR(1,14121750,1,1,2) [2024-12-28 13:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121750', 'tblTempUsageDetail_20' ) start [2024-12-28 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121750', 'tblTempUsageDetail_20' ) end [2024-12-28 13:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:11:22] Production.INFO: ==17039== Releasing lock... [2024-12-28 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:11:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:12:05 [end_date_ymd] => 2024-12-28 13:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:12:05' and `end` < '2024-12-28 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-28 13:12:18] Production.INFO: count ==1688 [2024-12-28 13:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:12:05 - End Time 2024-12-28 13:12:05 [2024-12-28 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121757', 'tblTempUsageDetail_20' ) start [2024-12-28 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121757', 'tblTempUsageDetail_20' ) end [2024-12-28 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121757', 'tblTempVendorCDR_20' ) start [2024-12-28 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121757', 'tblTempVendorCDR_20' ) end [2024-12-28 13:12:18] Production.INFO: ProcessCDR(1,14121757,1,1,2) [2024-12-28 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121757', 'tblTempUsageDetail_20' ) start [2024-12-28 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121757', 'tblTempUsageDetail_20' ) end [2024-12-28 13:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:12:23] Production.INFO: ==17118== Releasing lock... [2024-12-28 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:12:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:13:04 [end_date_ymd] => 2024-12-28 13:13:04 [RateCDR] => 1 ) [2024-12-28 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-28 10:13:04' and `end` < '2024-12-28 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-28 13:13:20] Production.INFO: count ==1712 [2024-12-28 13:13:20] Production.ERROR: pbx CDR StartTime 2024-12-28 10:13:04 - End Time 2024-12-28 13:13:04 [2024-12-28 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121762', 'tblTempUsageDetail_20' ) start [2024-12-28 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121762', 'tblTempUsageDetail_20' ) end [2024-12-28 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121762', 'tblTempVendorCDR_20' ) start [2024-12-28 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121762', 'tblTempVendorCDR_20' ) end [2024-12-28 13:13:20] Production.INFO: ProcessCDR(1,14121762,1,1,2) [2024-12-28 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121762', 'tblTempUsageDetail_20' ) start [2024-12-28 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121762', 'tblTempUsageDetail_20' ) end [2024-12-28 13:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:13:25] Production.INFO: ==17201== Releasing lock... [2024-12-28 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:13:25] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:14:05 [end_date_ymd] => 2024-12-28 13:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:14:05' and `end` < '2024-12-28 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-28 13:14:18] Production.INFO: count ==1715 [2024-12-28 13:14:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:14:05 - End Time 2024-12-28 13:14:05 [2024-12-28 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121767', 'tblTempUsageDetail_20' ) start [2024-12-28 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121767', 'tblTempUsageDetail_20' ) end [2024-12-28 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121767', 'tblTempVendorCDR_20' ) start [2024-12-28 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121767', 'tblTempVendorCDR_20' ) end [2024-12-28 13:14:19] Production.INFO: ProcessCDR(1,14121767,1,1,2) [2024-12-28 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121767', 'tblTempUsageDetail_20' ) start [2024-12-28 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121767', 'tblTempUsageDetail_20' ) end [2024-12-28 13:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:14:23] Production.INFO: ==17281== Releasing lock... [2024-12-28 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:14:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:15:04 [end_date_ymd] => 2024-12-28 13:15:04 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:15:04' and `end` < '2024-12-28 13: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-28 13:15:17] Production.INFO: count ==1720 [2024-12-28 13:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:15:04 - End Time 2024-12-28 13:15:04 [2024-12-28 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121772', 'tblTempUsageDetail_20' ) start [2024-12-28 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121772', 'tblTempUsageDetail_20' ) end [2024-12-28 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121772', 'tblTempVendorCDR_20' ) start [2024-12-28 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121772', 'tblTempVendorCDR_20' ) end [2024-12-28 13:15:18] Production.INFO: ProcessCDR(1,14121772,1,1,2) [2024-12-28 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121772', 'tblTempUsageDetail_20' ) start [2024-12-28 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121772', 'tblTempUsageDetail_20' ) end [2024-12-28 13:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:15:23] Production.INFO: ==17361== Releasing lock... [2024-12-28 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:15:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:16:05 [end_date_ymd] => 2024-12-28 13:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:16:05' and `end` < '2024-12-28 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-28 13:16:19] Production.INFO: count ==1722 [2024-12-28 13:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:16:05 - End Time 2024-12-28 13:16:05 [2024-12-28 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121777', 'tblTempUsageDetail_20' ) start [2024-12-28 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121777', 'tblTempUsageDetail_20' ) end [2024-12-28 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121777', 'tblTempVendorCDR_20' ) start [2024-12-28 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121777', 'tblTempVendorCDR_20' ) end [2024-12-28 13:16:19] Production.INFO: ProcessCDR(1,14121777,1,1,2) [2024-12-28 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121777', 'tblTempUsageDetail_20' ) start [2024-12-28 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121777', 'tblTempUsageDetail_20' ) end [2024-12-28 13:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:16:24] Production.INFO: ==17440== Releasing lock... [2024-12-28 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:16:24] Production.INFO: 41 MB #Memory Used# [2024-12-28 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:17:04 [end_date_ymd] => 2024-12-28 13:17:04 [RateCDR] => 1 ) [2024-12-28 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-28 10:17:04' and `end` < '2024-12-28 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-28 13:17:17] Production.INFO: count ==1729 [2024-12-28 13:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 10:17:04 - End Time 2024-12-28 13:17:04 [2024-12-28 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121782', 'tblTempUsageDetail_20' ) start [2024-12-28 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121782', 'tblTempUsageDetail_20' ) end [2024-12-28 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121782', 'tblTempVendorCDR_20' ) start [2024-12-28 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121782', 'tblTempVendorCDR_20' ) end [2024-12-28 13:17:17] Production.INFO: ProcessCDR(1,14121782,1,1,2) [2024-12-28 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121782', 'tblTempUsageDetail_20' ) start [2024-12-28 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121782', 'tblTempUsageDetail_20' ) end [2024-12-28 13:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:17:22] Production.INFO: ==17517== Releasing lock... [2024-12-28 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:17:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-28 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:18:05 [end_date_ymd] => 2024-12-28 13:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:18:05' and `end` < '2024-12-28 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-28 13:18:17] Production.INFO: count ==1733 [2024-12-28 13:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:18:05 - End Time 2024-12-28 13:18:05 [2024-12-28 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121787', 'tblTempUsageDetail_20' ) start [2024-12-28 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121787', 'tblTempUsageDetail_20' ) end [2024-12-28 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121787', 'tblTempVendorCDR_20' ) start [2024-12-28 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121787', 'tblTempVendorCDR_20' ) end [2024-12-28 13:18:18] Production.INFO: ProcessCDR(1,14121787,1,1,2) [2024-12-28 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121787', 'tblTempUsageDetail_20' ) start [2024-12-28 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121787', 'tblTempUsageDetail_20' ) end [2024-12-28 13:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:18:23] Production.INFO: ==17597== Releasing lock... [2024-12-28 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:18:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:19:05 [end_date_ymd] => 2024-12-28 13:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:19:05' and `end` < '2024-12-28 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-28 13:19:18] Production.INFO: count ==1741 [2024-12-28 13:19:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:19:05 - End Time 2024-12-28 13:19:05 [2024-12-28 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121792', 'tblTempUsageDetail_20' ) start [2024-12-28 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121792', 'tblTempUsageDetail_20' ) end [2024-12-28 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121792', 'tblTempVendorCDR_20' ) start [2024-12-28 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121792', 'tblTempVendorCDR_20' ) end [2024-12-28 13:19:19] Production.INFO: ProcessCDR(1,14121792,1,1,2) [2024-12-28 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121792', 'tblTempUsageDetail_20' ) start [2024-12-28 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121792', 'tblTempUsageDetail_20' ) end [2024-12-28 13:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:19:23] Production.INFO: ==17681== Releasing lock... [2024-12-28 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:19:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:20:05 [end_date_ymd] => 2024-12-28 13:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:20:05' and `end` < '2024-12-28 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-28 13:20:18] Production.INFO: count ==1752 [2024-12-28 13:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:20:05 - End Time 2024-12-28 13:20:05 [2024-12-28 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121798', 'tblTempUsageDetail_20' ) start [2024-12-28 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121798', 'tblTempUsageDetail_20' ) end [2024-12-28 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121798', 'tblTempVendorCDR_20' ) start [2024-12-28 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121798', 'tblTempVendorCDR_20' ) end [2024-12-28 13:20:19] Production.INFO: ProcessCDR(1,14121798,1,1,2) [2024-12-28 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121798', 'tblTempUsageDetail_20' ) start [2024-12-28 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121798', 'tblTempUsageDetail_20' ) end [2024-12-28 13:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:20:23] Production.INFO: ==17754== Releasing lock... [2024-12-28 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:20:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:21:05 [end_date_ymd] => 2024-12-28 13:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:21:05' and `end` < '2024-12-28 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-28 13:21:18] Production.INFO: count ==1823 [2024-12-28 13:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:21:05 - End Time 2024-12-28 13:21:05 [2024-12-28 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121803', 'tblTempUsageDetail_20' ) start [2024-12-28 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121803', 'tblTempUsageDetail_20' ) end [2024-12-28 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121803', 'tblTempVendorCDR_20' ) start [2024-12-28 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121803', 'tblTempVendorCDR_20' ) end [2024-12-28 13:21:18] Production.INFO: ProcessCDR(1,14121803,1,1,2) [2024-12-28 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121803', 'tblTempUsageDetail_20' ) start [2024-12-28 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121803', 'tblTempUsageDetail_20' ) end [2024-12-28 13:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:21:23] Production.INFO: ==17828== Releasing lock... [2024-12-28 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:21:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:22:05 [end_date_ymd] => 2024-12-28 13:22:05 [RateCDR] => 1 ) [2024-12-28 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:22:05' and `end` < '2024-12-28 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:22:17] Production.INFO: count ==1835 [2024-12-28 13:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:22:05 - End Time 2024-12-28 13:22:05 [2024-12-28 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121808', 'tblTempUsageDetail_20' ) start [2024-12-28 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121808', 'tblTempUsageDetail_20' ) end [2024-12-28 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121808', 'tblTempVendorCDR_20' ) start [2024-12-28 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121808', 'tblTempVendorCDR_20' ) end [2024-12-28 13:22:18] Production.INFO: ProcessCDR(1,14121808,1,1,2) [2024-12-28 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121808', 'tblTempUsageDetail_20' ) start [2024-12-28 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121808', 'tblTempUsageDetail_20' ) end [2024-12-28 13:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:22:23] Production.INFO: ==17902== Releasing lock... [2024-12-28 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:22:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:23:05 [end_date_ymd] => 2024-12-28 13:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:23:05' and `end` < '2024-12-28 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-28 13:23:18] Production.INFO: count ==1842 [2024-12-28 13:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:23:05 - End Time 2024-12-28 13:23:05 [2024-12-28 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121813', 'tblTempUsageDetail_20' ) start [2024-12-28 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121813', 'tblTempUsageDetail_20' ) end [2024-12-28 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121813', 'tblTempVendorCDR_20' ) start [2024-12-28 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121813', 'tblTempVendorCDR_20' ) end [2024-12-28 13:23:18] Production.INFO: ProcessCDR(1,14121813,1,1,2) [2024-12-28 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121813', 'tblTempUsageDetail_20' ) start [2024-12-28 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121813', 'tblTempUsageDetail_20' ) end [2024-12-28 13:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:23:23] Production.INFO: ==17981== Releasing lock... [2024-12-28 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:23:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:24:05 [end_date_ymd] => 2024-12-28 13:24:05 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:24:05' and `end` < '2024-12-28 13: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-28 13:24:18] Production.INFO: count ==1849 [2024-12-28 13:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:24:05 - End Time 2024-12-28 13:24:05 [2024-12-28 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121818', 'tblTempUsageDetail_20' ) start [2024-12-28 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121818', 'tblTempUsageDetail_20' ) end [2024-12-28 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121818', 'tblTempVendorCDR_20' ) start [2024-12-28 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121818', 'tblTempVendorCDR_20' ) end [2024-12-28 13:24:18] Production.INFO: ProcessCDR(1,14121818,1,1,2) [2024-12-28 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121818', 'tblTempUsageDetail_20' ) start [2024-12-28 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121818', 'tblTempUsageDetail_20' ) end [2024-12-28 13:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:24:23] Production.INFO: ==18096== Releasing lock... [2024-12-28 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:24:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:25:05 [end_date_ymd] => 2024-12-28 13:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:25:05' and `end` < '2024-12-28 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-28 13:25:18] Production.INFO: count ==1856 [2024-12-28 13:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:25:05 - End Time 2024-12-28 13:25:05 [2024-12-28 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121823', 'tblTempUsageDetail_20' ) start [2024-12-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121823', 'tblTempUsageDetail_20' ) end [2024-12-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121823', 'tblTempVendorCDR_20' ) start [2024-12-28 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121823', 'tblTempVendorCDR_20' ) end [2024-12-28 13:25:18] Production.INFO: ProcessCDR(1,14121823,1,1,2) [2024-12-28 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121823', 'tblTempUsageDetail_20' ) start [2024-12-28 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121823', 'tblTempUsageDetail_20' ) end [2024-12-28 13:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:25:21] Production.INFO: ==18171== Releasing lock... [2024-12-28 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:25:21] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:26:05 [end_date_ymd] => 2024-12-28 13:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:26:05' and `end` < '2024-12-28 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-28 13:26:18] Production.INFO: count ==1860 [2024-12-28 13:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:26:05 - End Time 2024-12-28 13:26:05 [2024-12-28 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121828', 'tblTempUsageDetail_20' ) start [2024-12-28 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121828', 'tblTempUsageDetail_20' ) end [2024-12-28 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121828', 'tblTempVendorCDR_20' ) start [2024-12-28 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121828', 'tblTempVendorCDR_20' ) end [2024-12-28 13:26:18] Production.INFO: ProcessCDR(1,14121828,1,1,2) [2024-12-28 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121828', 'tblTempUsageDetail_20' ) start [2024-12-28 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121828', 'tblTempUsageDetail_20' ) end [2024-12-28 13:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:26:23] Production.INFO: ==18246== Releasing lock... [2024-12-28 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:26:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:27:04 [end_date_ymd] => 2024-12-28 13:27:04 [RateCDR] => 1 ) [2024-12-28 13:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:27:04' and `end` < '2024-12-28 13:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:27:17] Production.INFO: count ==1859 [2024-12-28 13:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:27:04 - End Time 2024-12-28 13:27:04 [2024-12-28 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121833', 'tblTempUsageDetail_20' ) start [2024-12-28 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121833', 'tblTempUsageDetail_20' ) end [2024-12-28 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121833', 'tblTempVendorCDR_20' ) start [2024-12-28 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121833', 'tblTempVendorCDR_20' ) end [2024-12-28 13:27:18] Production.INFO: ProcessCDR(1,14121833,1,1,2) [2024-12-28 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121833', 'tblTempUsageDetail_20' ) start [2024-12-28 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121833', 'tblTempUsageDetail_20' ) end [2024-12-28 13:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:27:21] Production.INFO: ==18319== Releasing lock... [2024-12-28 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:27:21] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:28:05 [end_date_ymd] => 2024-12-28 13:28:05 [RateCDR] => 1 ) [2024-12-28 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:28:05' and `end` < '2024-12-28 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:28:18] Production.INFO: count ==1862 [2024-12-28 13:28:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:28:05 - End Time 2024-12-28 13:28:05 [2024-12-28 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121838', 'tblTempUsageDetail_20' ) start [2024-12-28 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121838', 'tblTempUsageDetail_20' ) end [2024-12-28 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121838', 'tblTempVendorCDR_20' ) start [2024-12-28 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121838', 'tblTempVendorCDR_20' ) end [2024-12-28 13:28:19] Production.INFO: ProcessCDR(1,14121838,1,1,2) [2024-12-28 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121838', 'tblTempUsageDetail_20' ) start [2024-12-28 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121838', 'tblTempUsageDetail_20' ) end [2024-12-28 13:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:28:24] Production.INFO: ==18394== Releasing lock... [2024-12-28 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:28:24] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:29:05 [end_date_ymd] => 2024-12-28 13:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:29:05' and `end` < '2024-12-28 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-28 13:29:20] Production.INFO: count ==1858 [2024-12-28 13:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 10:29:05 - End Time 2024-12-28 13:29:05 [2024-12-28 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121843', 'tblTempUsageDetail_20' ) start [2024-12-28 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121843', 'tblTempUsageDetail_20' ) end [2024-12-28 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121843', 'tblTempVendorCDR_20' ) start [2024-12-28 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121843', 'tblTempVendorCDR_20' ) end [2024-12-28 13:29:20] Production.INFO: ProcessCDR(1,14121843,1,1,2) [2024-12-28 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121843', 'tblTempUsageDetail_20' ) start [2024-12-28 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121843', 'tblTempUsageDetail_20' ) end [2024-12-28 13:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:29:25] Production.INFO: ==18495== Releasing lock... [2024-12-28 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:29:25] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:30:05 [end_date_ymd] => 2024-12-28 13:30:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:30:05' and `end` < '2024-12-28 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-28 13:30:18] Production.INFO: count ==1855 [2024-12-28 13:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:30:05 - End Time 2024-12-28 13:30:05 [2024-12-28 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121849', 'tblTempUsageDetail_20' ) start [2024-12-28 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121849', 'tblTempUsageDetail_20' ) end [2024-12-28 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121849', 'tblTempVendorCDR_20' ) start [2024-12-28 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121849', 'tblTempVendorCDR_20' ) end [2024-12-28 13:30:18] Production.INFO: ProcessCDR(1,14121849,1,1,2) [2024-12-28 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121849', 'tblTempUsageDetail_20' ) start [2024-12-28 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121849', 'tblTempUsageDetail_20' ) end [2024-12-28 13:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:30:21] Production.INFO: ==18600== Releasing lock... [2024-12-28 13:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:30:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:31:05 [end_date_ymd] => 2024-12-28 13:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:31:05' and `end` < '2024-12-28 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-28 13:31:19] Production.INFO: count ==1860 [2024-12-28 13:31:20] Production.ERROR: pbx CDR StartTime 2024-12-28 10:31:05 - End Time 2024-12-28 13:31:05 [2024-12-28 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121854', 'tblTempUsageDetail_20' ) start [2024-12-28 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121854', 'tblTempUsageDetail_20' ) end [2024-12-28 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121854', 'tblTempVendorCDR_20' ) start [2024-12-28 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121854', 'tblTempVendorCDR_20' ) end [2024-12-28 13:31:20] Production.INFO: ProcessCDR(1,14121854,1,1,2) [2024-12-28 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121854', 'tblTempUsageDetail_20' ) start [2024-12-28 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121854', 'tblTempUsageDetail_20' ) end [2024-12-28 13:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:31:23] Production.INFO: ==18702== Releasing lock... [2024-12-28 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:31:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:32:05 [end_date_ymd] => 2024-12-28 13:32:05 [RateCDR] => 1 ) [2024-12-28 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:32:05' and `end` < '2024-12-28 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:32:18] Production.INFO: count ==1873 [2024-12-28 13:32:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:32:05 - End Time 2024-12-28 13:32:05 [2024-12-28 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121859', 'tblTempUsageDetail_20' ) start [2024-12-28 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121859', 'tblTempUsageDetail_20' ) end [2024-12-28 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121859', 'tblTempVendorCDR_20' ) start [2024-12-28 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121859', 'tblTempVendorCDR_20' ) end [2024-12-28 13:32:19] Production.INFO: ProcessCDR(1,14121859,1,1,2) [2024-12-28 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121859', 'tblTempUsageDetail_20' ) start [2024-12-28 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121859', 'tblTempUsageDetail_20' ) end [2024-12-28 13:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:32:22] Production.INFO: ==18772== Releasing lock... [2024-12-28 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:32:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:33:05 [end_date_ymd] => 2024-12-28 13:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:33:05' and `end` < '2024-12-28 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-28 13:33:18] Production.INFO: count ==1864 [2024-12-28 13:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:33:05 - End Time 2024-12-28 13:33:05 [2024-12-28 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121864', 'tblTempUsageDetail_20' ) start [2024-12-28 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121864', 'tblTempUsageDetail_20' ) end [2024-12-28 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121864', 'tblTempVendorCDR_20' ) start [2024-12-28 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121864', 'tblTempVendorCDR_20' ) end [2024-12-28 13:33:18] Production.INFO: ProcessCDR(1,14121864,1,1,2) [2024-12-28 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121864', 'tblTempUsageDetail_20' ) start [2024-12-28 13:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121864', 'tblTempUsageDetail_20' ) end [2024-12-28 13:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:33:23] Production.INFO: ==18850== Releasing lock... [2024-12-28 13:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:33:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:34:04 [end_date_ymd] => 2024-12-28 13:34:04 [RateCDR] => 1 ) [2024-12-28 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:34:04' and `end` < '2024-12-28 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:34:17] Production.INFO: count ==1868 [2024-12-28 13:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 10:34:04 - End Time 2024-12-28 13:34:04 [2024-12-28 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121869', 'tblTempUsageDetail_20' ) start [2024-12-28 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121869', 'tblTempUsageDetail_20' ) end [2024-12-28 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121869', 'tblTempVendorCDR_20' ) start [2024-12-28 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121869', 'tblTempVendorCDR_20' ) end [2024-12-28 13:34:17] Production.INFO: ProcessCDR(1,14121869,1,1,2) [2024-12-28 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121869', 'tblTempUsageDetail_20' ) start [2024-12-28 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121869', 'tblTempUsageDetail_20' ) end [2024-12-28 13:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:34:22] Production.INFO: ==18924== Releasing lock... [2024-12-28 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:34:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:35:05 [end_date_ymd] => 2024-12-28 13:35:05 [RateCDR] => 1 ) [2024-12-28 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:35:05' and `end` < '2024-12-28 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:35:19] Production.INFO: count ==1876 [2024-12-28 13:35:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:35:05 - End Time 2024-12-28 13:35:05 [2024-12-28 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121874', 'tblTempUsageDetail_20' ) start [2024-12-28 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121874', 'tblTempUsageDetail_20' ) end [2024-12-28 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121874', 'tblTempVendorCDR_20' ) start [2024-12-28 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121874', 'tblTempVendorCDR_20' ) end [2024-12-28 13:35:19] Production.INFO: ProcessCDR(1,14121874,1,1,2) [2024-12-28 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121874', 'tblTempUsageDetail_20' ) start [2024-12-28 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121874', 'tblTempUsageDetail_20' ) end [2024-12-28 13:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:35:24] Production.INFO: ==18997== Releasing lock... [2024-12-28 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:35:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:36:05 [end_date_ymd] => 2024-12-28 13:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:36:05' and `end` < '2024-12-28 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-28 13:36:18] Production.INFO: count ==1879 [2024-12-28 13:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:36:05 - End Time 2024-12-28 13:36:05 [2024-12-28 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121879', 'tblTempUsageDetail_20' ) start [2024-12-28 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121879', 'tblTempUsageDetail_20' ) end [2024-12-28 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121879', 'tblTempVendorCDR_20' ) start [2024-12-28 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121879', 'tblTempVendorCDR_20' ) end [2024-12-28 13:36:19] Production.INFO: ProcessCDR(1,14121879,1,1,2) [2024-12-28 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121879', 'tblTempUsageDetail_20' ) start [2024-12-28 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121879', 'tblTempUsageDetail_20' ) end [2024-12-28 13:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:36:23] Production.INFO: ==19070== Releasing lock... [2024-12-28 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:36:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:37:05 [end_date_ymd] => 2024-12-28 13:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:37:05' and `end` < '2024-12-28 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-28 13:37:19] Production.INFO: count ==1885 [2024-12-28 13:37:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:37:05 - End Time 2024-12-28 13:37:05 [2024-12-28 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121884', 'tblTempUsageDetail_20' ) start [2024-12-28 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121884', 'tblTempUsageDetail_20' ) end [2024-12-28 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121884', 'tblTempVendorCDR_20' ) start [2024-12-28 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121884', 'tblTempVendorCDR_20' ) end [2024-12-28 13:37:19] Production.INFO: ProcessCDR(1,14121884,1,1,2) [2024-12-28 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121884', 'tblTempUsageDetail_20' ) start [2024-12-28 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121884', 'tblTempUsageDetail_20' ) end [2024-12-28 13:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:37:24] Production.INFO: ==19143== Releasing lock... [2024-12-28 13:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:37:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:38:05 [end_date_ymd] => 2024-12-28 13:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:38:05' and `end` < '2024-12-28 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-28 13:38:18] Production.INFO: count ==1896 [2024-12-28 13:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:38:05 - End Time 2024-12-28 13:38:05 [2024-12-28 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121889', 'tblTempUsageDetail_20' ) start [2024-12-28 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121889', 'tblTempUsageDetail_20' ) end [2024-12-28 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121889', 'tblTempVendorCDR_20' ) start [2024-12-28 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121889', 'tblTempVendorCDR_20' ) end [2024-12-28 13:38:18] Production.INFO: ProcessCDR(1,14121889,1,1,2) [2024-12-28 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121889', 'tblTempUsageDetail_20' ) start [2024-12-28 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121889', 'tblTempUsageDetail_20' ) end [2024-12-28 13:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:38:23] Production.INFO: ==19217== Releasing lock... [2024-12-28 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:38:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:39:05 [end_date_ymd] => 2024-12-28 13:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:39:05' and `end` < '2024-12-28 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-28 13:39:17] Production.INFO: count ==1891 [2024-12-28 13:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:39:05 - End Time 2024-12-28 13:39:05 [2024-12-28 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121894', 'tblTempUsageDetail_20' ) start [2024-12-28 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121894', 'tblTempUsageDetail_20' ) end [2024-12-28 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121894', 'tblTempVendorCDR_20' ) start [2024-12-28 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121894', 'tblTempVendorCDR_20' ) end [2024-12-28 13:39:18] Production.INFO: ProcessCDR(1,14121894,1,1,2) [2024-12-28 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121894', 'tblTempUsageDetail_20' ) start [2024-12-28 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121894', 'tblTempUsageDetail_20' ) end [2024-12-28 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:39:22] Production.INFO: ==19287== Releasing lock... [2024-12-28 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:39:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:40:05 [end_date_ymd] => 2024-12-28 13:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:40:05' and `end` < '2024-12-28 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-28 13:40:18] Production.INFO: count ==1895 [2024-12-28 13:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:40:05 - End Time 2024-12-28 13:40:05 [2024-12-28 13:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121899', 'tblTempUsageDetail_20' ) start [2024-12-28 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121899', 'tblTempUsageDetail_20' ) end [2024-12-28 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121899', 'tblTempVendorCDR_20' ) start [2024-12-28 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121899', 'tblTempVendorCDR_20' ) end [2024-12-28 13:40:19] Production.INFO: ProcessCDR(1,14121899,1,1,2) [2024-12-28 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121899', 'tblTempUsageDetail_20' ) start [2024-12-28 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121899', 'tblTempUsageDetail_20' ) end [2024-12-28 13:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:40:23] Production.INFO: ==19401== Releasing lock... [2024-12-28 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:40:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:41:05 [end_date_ymd] => 2024-12-28 13:41:05 [RateCDR] => 1 ) [2024-12-28 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:41:05' and `end` < '2024-12-28 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:41:17] Production.INFO: count ==1924 [2024-12-28 13:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:41:05 - End Time 2024-12-28 13:41:05 [2024-12-28 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121905', 'tblTempUsageDetail_20' ) start [2024-12-28 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121905', 'tblTempUsageDetail_20' ) end [2024-12-28 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121905', 'tblTempVendorCDR_20' ) start [2024-12-28 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121905', 'tblTempVendorCDR_20' ) end [2024-12-28 13:41:18] Production.INFO: ProcessCDR(1,14121905,1,1,2) [2024-12-28 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121905', 'tblTempUsageDetail_20' ) start [2024-12-28 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121905', 'tblTempUsageDetail_20' ) end [2024-12-28 13:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:41:23] Production.INFO: ==19471== Releasing lock... [2024-12-28 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:41:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:42:05 [end_date_ymd] => 2024-12-28 13:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:42:05' and `end` < '2024-12-28 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-28 13:42:18] Production.INFO: count ==1924 [2024-12-28 13:42:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:42:05 - End Time 2024-12-28 13:42:05 [2024-12-28 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121910', 'tblTempUsageDetail_20' ) start [2024-12-28 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121910', 'tblTempUsageDetail_20' ) end [2024-12-28 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121910', 'tblTempVendorCDR_20' ) start [2024-12-28 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121910', 'tblTempVendorCDR_20' ) end [2024-12-28 13:42:19] Production.INFO: ProcessCDR(1,14121910,1,1,2) [2024-12-28 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121910', 'tblTempUsageDetail_20' ) start [2024-12-28 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121910', 'tblTempUsageDetail_20' ) end [2024-12-28 13:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:42:22] Production.INFO: ==19542== Releasing lock... [2024-12-28 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:42:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:43:05 [end_date_ymd] => 2024-12-28 13:43:05 [RateCDR] => 1 ) [2024-12-28 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:43:05' and `end` < '2024-12-28 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:43:17] Production.INFO: count ==1925 [2024-12-28 13:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:43:05 - End Time 2024-12-28 13:43:05 [2024-12-28 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121915', 'tblTempUsageDetail_20' ) start [2024-12-28 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121915', 'tblTempUsageDetail_20' ) end [2024-12-28 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121915', 'tblTempVendorCDR_20' ) start [2024-12-28 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121915', 'tblTempVendorCDR_20' ) end [2024-12-28 13:43:18] Production.INFO: ProcessCDR(1,14121915,1,1,2) [2024-12-28 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121915', 'tblTempUsageDetail_20' ) start [2024-12-28 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121915', 'tblTempUsageDetail_20' ) end [2024-12-28 13:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:43:23] Production.INFO: ==19617== Releasing lock... [2024-12-28 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:43:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:44:05 [end_date_ymd] => 2024-12-28 13:44:05 [RateCDR] => 1 ) [2024-12-28 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:44:05' and `end` < '2024-12-28 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:44:18] Production.INFO: count ==1935 [2024-12-28 13:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:44:05 - End Time 2024-12-28 13:44:05 [2024-12-28 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121920', 'tblTempUsageDetail_20' ) start [2024-12-28 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121920', 'tblTempUsageDetail_20' ) end [2024-12-28 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121920', 'tblTempVendorCDR_20' ) start [2024-12-28 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121920', 'tblTempVendorCDR_20' ) end [2024-12-28 13:44:19] Production.INFO: ProcessCDR(1,14121920,1,1,2) [2024-12-28 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121920', 'tblTempUsageDetail_20' ) start [2024-12-28 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121920', 'tblTempUsageDetail_20' ) end [2024-12-28 13:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:44:23] Production.INFO: ==19692== Releasing lock... [2024-12-28 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:44:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:45:04 [end_date_ymd] => 2024-12-28 13:45:04 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:45:04' and `end` < '2024-12-28 13: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-28 13:45:17] Production.INFO: count ==1942 [2024-12-28 13:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 10:45:04 - End Time 2024-12-28 13:45:04 [2024-12-28 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121925', 'tblTempUsageDetail_20' ) start [2024-12-28 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121925', 'tblTempUsageDetail_20' ) end [2024-12-28 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121925', 'tblTempVendorCDR_20' ) start [2024-12-28 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121925', 'tblTempVendorCDR_20' ) end [2024-12-28 13:45:17] Production.INFO: ProcessCDR(1,14121925,1,1,2) [2024-12-28 13:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121925', 'tblTempUsageDetail_20' ) start [2024-12-28 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121925', 'tblTempUsageDetail_20' ) end [2024-12-28 13:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:45:22] Production.INFO: ==19763== Releasing lock... [2024-12-28 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:45:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:46:05 [end_date_ymd] => 2024-12-28 13:46:05 [RateCDR] => 1 ) [2024-12-28 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:46:05' and `end` < '2024-12-28 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:46:19] Production.INFO: count ==1950 [2024-12-28 13:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:46:05 - End Time 2024-12-28 13:46:05 [2024-12-28 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121930', 'tblTempUsageDetail_20' ) start [2024-12-28 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121930', 'tblTempUsageDetail_20' ) end [2024-12-28 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121930', 'tblTempVendorCDR_20' ) start [2024-12-28 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121930', 'tblTempVendorCDR_20' ) end [2024-12-28 13:46:19] Production.INFO: ProcessCDR(1,14121930,1,1,2) [2024-12-28 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121930', 'tblTempUsageDetail_20' ) start [2024-12-28 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121930', 'tblTempUsageDetail_20' ) end [2024-12-28 13:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:46:24] Production.INFO: ==19834== Releasing lock... [2024-12-28 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:46:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:47:04 [end_date_ymd] => 2024-12-28 13:47:04 [RateCDR] => 1 ) [2024-12-28 13: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-28 10:47:04' and `end` < '2024-12-28 13: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-28 13:47:19] Production.INFO: count ==1954 [2024-12-28 13:47:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:47:04 - End Time 2024-12-28 13:47:04 [2024-12-28 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121935', 'tblTempUsageDetail_20' ) start [2024-12-28 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121935', 'tblTempUsageDetail_20' ) end [2024-12-28 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121935', 'tblTempVendorCDR_20' ) start [2024-12-28 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121935', 'tblTempVendorCDR_20' ) end [2024-12-28 13:47:19] Production.INFO: ProcessCDR(1,14121935,1,1,2) [2024-12-28 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121935', 'tblTempUsageDetail_20' ) start [2024-12-28 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121935', 'tblTempUsageDetail_20' ) end [2024-12-28 13:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:47:24] Production.INFO: ==19907== Releasing lock... [2024-12-28 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:47:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:48:05 [end_date_ymd] => 2024-12-28 13:48:05 [RateCDR] => 1 ) [2024-12-28 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:48:05' and `end` < '2024-12-28 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:48:18] Production.INFO: count ==1957 [2024-12-28 13:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:48:05 - End Time 2024-12-28 13:48:05 [2024-12-28 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121940', 'tblTempUsageDetail_20' ) start [2024-12-28 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121940', 'tblTempUsageDetail_20' ) end [2024-12-28 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121940', 'tblTempVendorCDR_20' ) start [2024-12-28 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121940', 'tblTempVendorCDR_20' ) end [2024-12-28 13:48:18] Production.INFO: ProcessCDR(1,14121940,1,1,2) [2024-12-28 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121940', 'tblTempUsageDetail_20' ) start [2024-12-28 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121940', 'tblTempUsageDetail_20' ) end [2024-12-28 13:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:48:23] Production.INFO: ==19977== Releasing lock... [2024-12-28 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:48:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:49:04 [end_date_ymd] => 2024-12-28 13:49:04 [RateCDR] => 1 ) [2024-12-28 13:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:49:04' and `end` < '2024-12-28 13:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:49:17] Production.INFO: count ==1958 [2024-12-28 13:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:49:04 - End Time 2024-12-28 13:49:04 [2024-12-28 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121945', 'tblTempUsageDetail_20' ) start [2024-12-28 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121945', 'tblTempUsageDetail_20' ) end [2024-12-28 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121945', 'tblTempVendorCDR_20' ) start [2024-12-28 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121945', 'tblTempVendorCDR_20' ) end [2024-12-28 13:49:18] Production.INFO: ProcessCDR(1,14121945,1,1,2) [2024-12-28 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121945', 'tblTempUsageDetail_20' ) start [2024-12-28 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121945', 'tblTempUsageDetail_20' ) end [2024-12-28 13:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:49:22] Production.INFO: ==20050== Releasing lock... [2024-12-28 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:49:22] Production.INFO: 43 MB #Memory Used# [2024-12-28 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:50:05 [end_date_ymd] => 2024-12-28 13:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:50:05' and `end` < '2024-12-28 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-28 13:50:18] Production.INFO: count ==1930 [2024-12-28 13:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:50:05 - End Time 2024-12-28 13:50:05 [2024-12-28 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121950', 'tblTempUsageDetail_20' ) start [2024-12-28 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121950', 'tblTempUsageDetail_20' ) end [2024-12-28 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121950', 'tblTempVendorCDR_20' ) start [2024-12-28 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121950', 'tblTempVendorCDR_20' ) end [2024-12-28 13:50:19] Production.INFO: ProcessCDR(1,14121950,1,1,2) [2024-12-28 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121950', 'tblTempUsageDetail_20' ) start [2024-12-28 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121950', 'tblTempUsageDetail_20' ) end [2024-12-28 13:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:50:23] Production.INFO: ==20125== Releasing lock... [2024-12-28 13:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:50:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:51:04 [end_date_ymd] => 2024-12-28 13:51:04 [RateCDR] => 1 ) [2024-12-28 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:51:04' and `end` < '2024-12-28 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:51:17] Production.INFO: count ==1923 [2024-12-28 13:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:51:04 - End Time 2024-12-28 13:51:04 [2024-12-28 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121956', 'tblTempUsageDetail_20' ) start [2024-12-28 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121956', 'tblTempUsageDetail_20' ) end [2024-12-28 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121956', 'tblTempVendorCDR_20' ) start [2024-12-28 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121956', 'tblTempVendorCDR_20' ) end [2024-12-28 13:51:18] Production.INFO: ProcessCDR(1,14121956,1,1,2) [2024-12-28 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121956', 'tblTempUsageDetail_20' ) start [2024-12-28 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121956', 'tblTempUsageDetail_20' ) end [2024-12-28 13:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:51:22] Production.INFO: ==20196== Releasing lock... [2024-12-28 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:51:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:52:05 [end_date_ymd] => 2024-12-28 13:52:05 [RateCDR] => 1 ) [2024-12-28 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:52:05' and `end` < '2024-12-28 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:52:17] Production.INFO: count ==1931 [2024-12-28 13:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:52:05 - End Time 2024-12-28 13:52:05 [2024-12-28 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121961', 'tblTempUsageDetail_20' ) start [2024-12-28 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121961', 'tblTempUsageDetail_20' ) end [2024-12-28 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121961', 'tblTempVendorCDR_20' ) start [2024-12-28 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121961', 'tblTempVendorCDR_20' ) end [2024-12-28 13:52:18] Production.INFO: ProcessCDR(1,14121961,1,1,2) [2024-12-28 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121961', 'tblTempUsageDetail_20' ) start [2024-12-28 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121961', 'tblTempUsageDetail_20' ) end [2024-12-28 13:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:52:21] Production.INFO: ==20267== Releasing lock... [2024-12-28 13:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:52:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:53:05 [end_date_ymd] => 2024-12-28 13:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:53:05' and `end` < '2024-12-28 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-28 13:53:18] Production.INFO: count ==1945 [2024-12-28 13:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:53:05 - End Time 2024-12-28 13:53:05 [2024-12-28 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121966', 'tblTempUsageDetail_20' ) start [2024-12-28 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121966', 'tblTempUsageDetail_20' ) end [2024-12-28 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121966', 'tblTempVendorCDR_20' ) start [2024-12-28 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121966', 'tblTempVendorCDR_20' ) end [2024-12-28 13:53:19] Production.INFO: ProcessCDR(1,14121966,1,1,2) [2024-12-28 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121966', 'tblTempUsageDetail_20' ) start [2024-12-28 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121966', 'tblTempUsageDetail_20' ) end [2024-12-28 13:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:53:22] Production.INFO: ==20339== Releasing lock... [2024-12-28 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:53:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:54:05 [end_date_ymd] => 2024-12-28 13:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:54:05' and `end` < '2024-12-28 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-28 13:54:18] Production.INFO: count ==1966 [2024-12-28 13:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:54:05 - End Time 2024-12-28 13:54:05 [2024-12-28 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121971', 'tblTempUsageDetail_20' ) start [2024-12-28 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121971', 'tblTempUsageDetail_20' ) end [2024-12-28 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121971', 'tblTempVendorCDR_20' ) start [2024-12-28 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121971', 'tblTempVendorCDR_20' ) end [2024-12-28 13:54:18] Production.INFO: ProcessCDR(1,14121971,1,1,2) [2024-12-28 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121971', 'tblTempUsageDetail_20' ) start [2024-12-28 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121971', 'tblTempUsageDetail_20' ) end [2024-12-28 13:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:54:23] Production.INFO: ==20409== Releasing lock... [2024-12-28 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:54:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:55:06 [end_date_ymd] => 2024-12-28 13:55:06 [RateCDR] => 1 ) [2024-12-28 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:55:06' and `end` < '2024-12-28 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:55:18] Production.INFO: count ==1973 [2024-12-28 13:55:19] Production.ERROR: pbx CDR StartTime 2024-12-28 10:55:06 - End Time 2024-12-28 13:55:06 [2024-12-28 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121976', 'tblTempUsageDetail_20' ) start [2024-12-28 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121976', 'tblTempUsageDetail_20' ) end [2024-12-28 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121976', 'tblTempVendorCDR_20' ) start [2024-12-28 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121976', 'tblTempVendorCDR_20' ) end [2024-12-28 13:55:19] Production.INFO: ProcessCDR(1,14121976,1,1,2) [2024-12-28 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121976', 'tblTempUsageDetail_20' ) start [2024-12-28 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121976', 'tblTempUsageDetail_20' ) end [2024-12-28 13:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:55:23] Production.INFO: ==20521== Releasing lock... [2024-12-28 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:55:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:56:05 [end_date_ymd] => 2024-12-28 13:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:56:05' and `end` < '2024-12-28 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-28 13:56:17] Production.INFO: count ==1975 [2024-12-28 13:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:56:05 - End Time 2024-12-28 13:56:05 [2024-12-28 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121981', 'tblTempUsageDetail_20' ) start [2024-12-28 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121981', 'tblTempUsageDetail_20' ) end [2024-12-28 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121981', 'tblTempVendorCDR_20' ) start [2024-12-28 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121981', 'tblTempVendorCDR_20' ) end [2024-12-28 13:56:18] Production.INFO: ProcessCDR(1,14121981,1,1,2) [2024-12-28 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121981', 'tblTempUsageDetail_20' ) start [2024-12-28 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121981', 'tblTempUsageDetail_20' ) end [2024-12-28 13:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:56:23] Production.INFO: ==20592== Releasing lock... [2024-12-28 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:56:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:57:05 [end_date_ymd] => 2024-12-28 13:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:57:05' and `end` < '2024-12-28 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-28 13:57:18] Production.INFO: count ==1961 [2024-12-28 13:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:57:05 - End Time 2024-12-28 13:57:05 [2024-12-28 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121986', 'tblTempUsageDetail_20' ) start [2024-12-28 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121986', 'tblTempUsageDetail_20' ) end [2024-12-28 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121986', 'tblTempVendorCDR_20' ) start [2024-12-28 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121986', 'tblTempVendorCDR_20' ) end [2024-12-28 13:57:18] Production.INFO: ProcessCDR(1,14121986,1,1,2) [2024-12-28 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121986', 'tblTempUsageDetail_20' ) start [2024-12-28 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121986', 'tblTempUsageDetail_20' ) end [2024-12-28 13:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:57:23] Production.INFO: ==20663== Releasing lock... [2024-12-28 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:57:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:58:04 [end_date_ymd] => 2024-12-28 13:58:04 [RateCDR] => 1 ) [2024-12-28 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 10:58:04' and `end` < '2024-12-28 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 13:58:18] Production.INFO: count ==1956 [2024-12-28 13:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:58:04 - End Time 2024-12-28 13:58:04 [2024-12-28 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121991', 'tblTempUsageDetail_20' ) start [2024-12-28 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121991', 'tblTempUsageDetail_20' ) end [2024-12-28 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121991', 'tblTempVendorCDR_20' ) start [2024-12-28 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121991', 'tblTempVendorCDR_20' ) end [2024-12-28 13:58:18] Production.INFO: ProcessCDR(1,14121991,1,1,2) [2024-12-28 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121991', 'tblTempUsageDetail_20' ) start [2024-12-28 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121991', 'tblTempUsageDetail_20' ) end [2024-12-28 13:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:58:23] Production.INFO: ==20733== Releasing lock... [2024-12-28 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:58:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 10:59:05 [end_date_ymd] => 2024-12-28 13:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 10:59:05' and `end` < '2024-12-28 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-28 13:59:18] Production.INFO: count ==1955 [2024-12-28 13:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 10:59:05 - End Time 2024-12-28 13:59:05 [2024-12-28 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121996', 'tblTempUsageDetail_20' ) start [2024-12-28 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14121996', 'tblTempUsageDetail_20' ) end [2024-12-28 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121996', 'tblTempVendorCDR_20' ) start [2024-12-28 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14121996', 'tblTempVendorCDR_20' ) end [2024-12-28 13:59:18] Production.INFO: ProcessCDR(1,14121996,1,1,2) [2024-12-28 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14121996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14121996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14121996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14121996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121996', 'tblTempUsageDetail_20' ) start [2024-12-28 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14121996', 'tblTempUsageDetail_20' ) end [2024-12-28 13:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 13:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 13:59:23] Production.INFO: ==20803== Releasing lock... [2024-12-28 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 13:59:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:00:05 [end_date_ymd] => 2024-12-28 14:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:00:05' and `end` < '2024-12-28 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-28 14:00:18] Production.INFO: count ==1947 [2024-12-28 14:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:00:05 - End Time 2024-12-28 14:00:05 [2024-12-28 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122001', 'tblTempUsageDetail_20' ) start [2024-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122001', 'tblTempUsageDetail_20' ) end [2024-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122001', 'tblTempVendorCDR_20' ) start [2024-12-28 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122001', 'tblTempVendorCDR_20' ) end [2024-12-28 14:00:18] Production.INFO: ProcessCDR(1,14122001,1,1,2) [2024-12-28 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122001', 'tblTempUsageDetail_20' ) start [2024-12-28 14:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122001', 'tblTempUsageDetail_20' ) end [2024-12-28 14:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:00:21] Production.INFO: ==20875== Releasing lock... [2024-12-28 14:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:00:21] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:01:05 [end_date_ymd] => 2024-12-28 14:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:01:05' and `end` < '2024-12-28 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-28 14:01:19] Production.INFO: count ==1963 [2024-12-28 14:01:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:01:05 - End Time 2024-12-28 14:01:05 [2024-12-28 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122007', 'tblTempUsageDetail_20' ) start [2024-12-28 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122007', 'tblTempUsageDetail_20' ) end [2024-12-28 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122007', 'tblTempVendorCDR_20' ) start [2024-12-28 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122007', 'tblTempVendorCDR_20' ) end [2024-12-28 14:01:19] Production.INFO: ProcessCDR(1,14122007,1,1,2) [2024-12-28 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122007', 'tblTempUsageDetail_20' ) start [2024-12-28 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122007', 'tblTempUsageDetail_20' ) end [2024-12-28 14:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:01:24] Production.INFO: ==20964== Releasing lock... [2024-12-28 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:01:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:02:05 [end_date_ymd] => 2024-12-28 14:02:05 [RateCDR] => 1 ) [2024-12-28 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:02:05' and `end` < '2024-12-28 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:02:18] Production.INFO: count ==1963 [2024-12-28 14:02:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:02:05 - End Time 2024-12-28 14:02:05 [2024-12-28 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122012', 'tblTempUsageDetail_20' ) start [2024-12-28 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122012', 'tblTempUsageDetail_20' ) end [2024-12-28 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122012', 'tblTempVendorCDR_20' ) start [2024-12-28 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122012', 'tblTempVendorCDR_20' ) end [2024-12-28 14:02:19] Production.INFO: ProcessCDR(1,14122012,1,1,2) [2024-12-28 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122012', 'tblTempUsageDetail_20' ) start [2024-12-28 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122012', 'tblTempUsageDetail_20' ) end [2024-12-28 14:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:02:22] Production.INFO: ==21039== Releasing lock... [2024-12-28 14:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:02:22] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:03:05 [end_date_ymd] => 2024-12-28 14:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:03:05' and `end` < '2024-12-28 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-28 14:03:18] Production.INFO: count ==1950 [2024-12-28 14:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:03:05 - End Time 2024-12-28 14:03:05 [2024-12-28 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122017', 'tblTempUsageDetail_20' ) start [2024-12-28 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122017', 'tblTempUsageDetail_20' ) end [2024-12-28 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122017', 'tblTempVendorCDR_20' ) start [2024-12-28 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122017', 'tblTempVendorCDR_20' ) end [2024-12-28 14:03:18] Production.INFO: ProcessCDR(1,14122017,1,1,2) [2024-12-28 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122017', 'tblTempUsageDetail_20' ) start [2024-12-28 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122017', 'tblTempUsageDetail_20' ) end [2024-12-28 14:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:03:21] Production.INFO: ==21116== Releasing lock... [2024-12-28 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:03:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:04:05 [end_date_ymd] => 2024-12-28 14:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:04:05' and `end` < '2024-12-28 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-28 14:04:17] Production.INFO: count ==1942 [2024-12-28 14:04:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:04:05 - End Time 2024-12-28 14:04:05 [2024-12-28 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122022', 'tblTempUsageDetail_20' ) start [2024-12-28 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122022', 'tblTempUsageDetail_20' ) end [2024-12-28 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122022', 'tblTempVendorCDR_20' ) start [2024-12-28 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122022', 'tblTempVendorCDR_20' ) end [2024-12-28 14:04:18] Production.INFO: ProcessCDR(1,14122022,1,1,2) [2024-12-28 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122022', 'tblTempUsageDetail_20' ) start [2024-12-28 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122022', 'tblTempUsageDetail_20' ) end [2024-12-28 14:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:04:22] Production.INFO: ==21185== Releasing lock... [2024-12-28 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:04:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:05:05 [end_date_ymd] => 2024-12-28 14:05:05 [RateCDR] => 1 ) [2024-12-28 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:05:05' and `end` < '2024-12-28 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:05:19] Production.INFO: count ==1940 [2024-12-28 14:05:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:05:05 - End Time 2024-12-28 14:05:05 [2024-12-28 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122027', 'tblTempUsageDetail_20' ) start [2024-12-28 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122027', 'tblTempUsageDetail_20' ) end [2024-12-28 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122027', 'tblTempVendorCDR_20' ) start [2024-12-28 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122027', 'tblTempVendorCDR_20' ) end [2024-12-28 14:05:19] Production.INFO: ProcessCDR(1,14122027,1,1,2) [2024-12-28 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122027', 'tblTempUsageDetail_20' ) start [2024-12-28 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122027', 'tblTempUsageDetail_20' ) end [2024-12-28 14:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:05:23] Production.INFO: ==21257== Releasing lock... [2024-12-28 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:05:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:06:05 [end_date_ymd] => 2024-12-28 14:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:06:05' and `end` < '2024-12-28 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-28 14:06:17] Production.INFO: count ==1953 [2024-12-28 14:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:06:05 - End Time 2024-12-28 14:06:05 [2024-12-28 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122032', 'tblTempUsageDetail_20' ) start [2024-12-28 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122032', 'tblTempUsageDetail_20' ) end [2024-12-28 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122032', 'tblTempVendorCDR_20' ) start [2024-12-28 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122032', 'tblTempVendorCDR_20' ) end [2024-12-28 14:06:18] Production.INFO: ProcessCDR(1,14122032,1,1,2) [2024-12-28 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122032', 'tblTempUsageDetail_20' ) start [2024-12-28 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122032', 'tblTempUsageDetail_20' ) end [2024-12-28 14:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:06:23] Production.INFO: ==21330== Releasing lock... [2024-12-28 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:06:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:07:05 [end_date_ymd] => 2024-12-28 14:07:05 [RateCDR] => 1 ) [2024-12-28 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:07:05' and `end` < '2024-12-28 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:07:19] Production.INFO: count ==1955 [2024-12-28 14:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:07:05 - End Time 2024-12-28 14:07:05 [2024-12-28 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122037', 'tblTempUsageDetail_20' ) start [2024-12-28 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122037', 'tblTempUsageDetail_20' ) end [2024-12-28 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122037', 'tblTempVendorCDR_20' ) start [2024-12-28 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122037', 'tblTempVendorCDR_20' ) end [2024-12-28 14:07:19] Production.INFO: ProcessCDR(1,14122037,1,1,2) [2024-12-28 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122037', 'tblTempUsageDetail_20' ) start [2024-12-28 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122037', 'tblTempUsageDetail_20' ) end [2024-12-28 14:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:07:24] Production.INFO: ==21399== Releasing lock... [2024-12-28 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:07:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:08:05 [end_date_ymd] => 2024-12-28 14:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:08:05' and `end` < '2024-12-28 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-28 14:08:19] Production.INFO: count ==1971 [2024-12-28 14:08:20] Production.ERROR: pbx CDR StartTime 2024-12-28 11:08:05 - End Time 2024-12-28 14:08:05 [2024-12-28 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122042', 'tblTempUsageDetail_20' ) start [2024-12-28 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122042', 'tblTempUsageDetail_20' ) end [2024-12-28 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122042', 'tblTempVendorCDR_20' ) start [2024-12-28 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122042', 'tblTempVendorCDR_20' ) end [2024-12-28 14:08:20] Production.INFO: ProcessCDR(1,14122042,1,1,2) [2024-12-28 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122042', 'tblTempUsageDetail_20' ) start [2024-12-28 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122042', 'tblTempUsageDetail_20' ) end [2024-12-28 14:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:08:24] Production.INFO: ==21475== Releasing lock... [2024-12-28 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:08:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:09:04 [end_date_ymd] => 2024-12-28 14:09:04 [RateCDR] => 1 ) [2024-12-28 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:09:04' and `end` < '2024-12-28 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:09:17] Production.INFO: count ==1967 [2024-12-28 14:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:09:04 - End Time 2024-12-28 14:09:04 [2024-12-28 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122047', 'tblTempUsageDetail_20' ) start [2024-12-28 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122047', 'tblTempUsageDetail_20' ) end [2024-12-28 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122047', 'tblTempVendorCDR_20' ) start [2024-12-28 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122047', 'tblTempVendorCDR_20' ) end [2024-12-28 14:09:18] Production.INFO: ProcessCDR(1,14122047,1,1,2) [2024-12-28 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122047', 'tblTempUsageDetail_20' ) start [2024-12-28 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122047', 'tblTempUsageDetail_20' ) end [2024-12-28 14:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:09:22] Production.INFO: ==21546== Releasing lock... [2024-12-28 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:09:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:10:05 [end_date_ymd] => 2024-12-28 14:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:10:05' and `end` < '2024-12-28 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-28 14:10:18] Production.INFO: count ==1969 [2024-12-28 14:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:10:05 - End Time 2024-12-28 14:10:05 [2024-12-28 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122052', 'tblTempUsageDetail_20' ) start [2024-12-28 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122052', 'tblTempUsageDetail_20' ) end [2024-12-28 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122052', 'tblTempVendorCDR_20' ) start [2024-12-28 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122052', 'tblTempVendorCDR_20' ) end [2024-12-28 14:10:19] Production.INFO: ProcessCDR(1,14122052,1,1,2) [2024-12-28 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122052', 'tblTempUsageDetail_20' ) start [2024-12-28 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122052', 'tblTempUsageDetail_20' ) end [2024-12-28 14:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:10:23] Production.INFO: ==21620== Releasing lock... [2024-12-28 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:10:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:11:04 [end_date_ymd] => 2024-12-28 14:11:04 [RateCDR] => 1 ) [2024-12-28 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:11:04' and `end` < '2024-12-28 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:11:17] Production.INFO: count ==1978 [2024-12-28 14:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:11:04 - End Time 2024-12-28 14:11:04 [2024-12-28 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122058', 'tblTempUsageDetail_20' ) start [2024-12-28 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122058', 'tblTempUsageDetail_20' ) end [2024-12-28 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122058', 'tblTempVendorCDR_20' ) start [2024-12-28 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122058', 'tblTempVendorCDR_20' ) end [2024-12-28 14:11:18] Production.INFO: ProcessCDR(1,14122058,1,1,2) [2024-12-28 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122058', 'tblTempUsageDetail_20' ) start [2024-12-28 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122058', 'tblTempUsageDetail_20' ) end [2024-12-28 14:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:11:22] Production.INFO: ==21732== Releasing lock... [2024-12-28 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:11:22] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:12:05 [end_date_ymd] => 2024-12-28 14:12:05 [RateCDR] => 1 ) [2024-12-28 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:12:05' and `end` < '2024-12-28 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:12:18] Production.INFO: count ==1972 [2024-12-28 14:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:12:05 - End Time 2024-12-28 14:12:05 [2024-12-28 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122063', 'tblTempUsageDetail_20' ) start [2024-12-28 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122063', 'tblTempUsageDetail_20' ) end [2024-12-28 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122063', 'tblTempVendorCDR_20' ) start [2024-12-28 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122063', 'tblTempVendorCDR_20' ) end [2024-12-28 14:12:18] Production.INFO: ProcessCDR(1,14122063,1,1,2) [2024-12-28 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122063', 'tblTempUsageDetail_20' ) start [2024-12-28 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122063', 'tblTempUsageDetail_20' ) end [2024-12-28 14:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:12:23] Production.INFO: ==21807== Releasing lock... [2024-12-28 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:12:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:13:04 [end_date_ymd] => 2024-12-28 14:13:04 [RateCDR] => 1 ) [2024-12-28 14: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-28 11:13:04' and `end` < '2024-12-28 14: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-28 14:13:18] Production.INFO: count ==1974 [2024-12-28 14:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:13:04 - End Time 2024-12-28 14:13:04 [2024-12-28 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122068', 'tblTempUsageDetail_20' ) start [2024-12-28 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122068', 'tblTempUsageDetail_20' ) end [2024-12-28 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122068', 'tblTempVendorCDR_20' ) start [2024-12-28 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122068', 'tblTempVendorCDR_20' ) end [2024-12-28 14:13:18] Production.INFO: ProcessCDR(1,14122068,1,1,2) [2024-12-28 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122068', 'tblTempUsageDetail_20' ) start [2024-12-28 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122068', 'tblTempUsageDetail_20' ) end [2024-12-28 14:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:13:23] Production.INFO: ==21878== Releasing lock... [2024-12-28 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:13:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:14:05 [end_date_ymd] => 2024-12-28 14:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:14:05' and `end` < '2024-12-28 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-28 14:14:17] Production.INFO: count ==1969 [2024-12-28 14:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:14:05 - End Time 2024-12-28 14:14:05 [2024-12-28 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122073', 'tblTempUsageDetail_20' ) start [2024-12-28 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122073', 'tblTempUsageDetail_20' ) end [2024-12-28 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122073', 'tblTempVendorCDR_20' ) start [2024-12-28 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122073', 'tblTempVendorCDR_20' ) end [2024-12-28 14:14:18] Production.INFO: ProcessCDR(1,14122073,1,1,2) [2024-12-28 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122073', 'tblTempUsageDetail_20' ) start [2024-12-28 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122073', 'tblTempUsageDetail_20' ) end [2024-12-28 14:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:14:22] Production.INFO: ==21949== Releasing lock... [2024-12-28 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:14:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:15:05 [end_date_ymd] => 2024-12-28 14:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:15:05' and `end` < '2024-12-28 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-28 14:15:18] Production.INFO: count ==1962 [2024-12-28 14:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:15:05 - End Time 2024-12-28 14:15:05 [2024-12-28 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122078', 'tblTempUsageDetail_20' ) start [2024-12-28 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122078', 'tblTempUsageDetail_20' ) end [2024-12-28 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122078', 'tblTempVendorCDR_20' ) start [2024-12-28 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122078', 'tblTempVendorCDR_20' ) end [2024-12-28 14:15:18] Production.INFO: ProcessCDR(1,14122078,1,1,2) [2024-12-28 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122078', 'tblTempUsageDetail_20' ) start [2024-12-28 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122078', 'tblTempUsageDetail_20' ) end [2024-12-28 14:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:15:23] Production.INFO: ==22019== Releasing lock... [2024-12-28 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:15:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:16:04 [end_date_ymd] => 2024-12-28 14:16:04 [RateCDR] => 1 ) [2024-12-28 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-28 11:16:04' and `end` < '2024-12-28 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-28 14:16:17] Production.INFO: count ==1965 [2024-12-28 14:16:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:16:04 - End Time 2024-12-28 14:16:04 [2024-12-28 14:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122083', 'tblTempUsageDetail_20' ) start [2024-12-28 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122083', 'tblTempUsageDetail_20' ) end [2024-12-28 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122083', 'tblTempVendorCDR_20' ) start [2024-12-28 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122083', 'tblTempVendorCDR_20' ) end [2024-12-28 14:16:17] Production.INFO: ProcessCDR(1,14122083,1,1,2) [2024-12-28 14:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122083', 'tblTempUsageDetail_20' ) start [2024-12-28 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122083', 'tblTempUsageDetail_20' ) end [2024-12-28 14:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:16:22] Production.INFO: ==22094== Releasing lock... [2024-12-28 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:16:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:17:05 [end_date_ymd] => 2024-12-28 14:17:05 [RateCDR] => 1 ) [2024-12-28 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:17:05' and `end` < '2024-12-28 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:17:18] Production.INFO: count ==1966 [2024-12-28 14:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:17:05 - End Time 2024-12-28 14:17:05 [2024-12-28 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122088', 'tblTempUsageDetail_20' ) start [2024-12-28 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122088', 'tblTempUsageDetail_20' ) end [2024-12-28 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122088', 'tblTempVendorCDR_20' ) start [2024-12-28 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122088', 'tblTempVendorCDR_20' ) end [2024-12-28 14:17:19] Production.INFO: ProcessCDR(1,14122088,1,1,2) [2024-12-28 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122088', 'tblTempUsageDetail_20' ) start [2024-12-28 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122088', 'tblTempUsageDetail_20' ) end [2024-12-28 14:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:17:23] Production.INFO: ==22168== Releasing lock... [2024-12-28 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:17:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:18:04 [end_date_ymd] => 2024-12-28 14:18:04 [RateCDR] => 1 ) [2024-12-28 14:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:18:04' and `end` < '2024-12-28 14:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:18:17] Production.INFO: count ==1925 [2024-12-28 14:18:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:18:04 - End Time 2024-12-28 14:18:04 [2024-12-28 14:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122093', 'tblTempUsageDetail_20' ) start [2024-12-28 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122093', 'tblTempUsageDetail_20' ) end [2024-12-28 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122093', 'tblTempVendorCDR_20' ) start [2024-12-28 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122093', 'tblTempVendorCDR_20' ) end [2024-12-28 14:18:17] Production.INFO: ProcessCDR(1,14122093,1,1,2) [2024-12-28 14:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122093', 'tblTempUsageDetail_20' ) start [2024-12-28 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122093', 'tblTempUsageDetail_20' ) end [2024-12-28 14:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:18:22] Production.INFO: ==22241== Releasing lock... [2024-12-28 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:18:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:19:05 [end_date_ymd] => 2024-12-28 14:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:19:05' and `end` < '2024-12-28 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-28 14:19:17] Production.INFO: count ==1898 [2024-12-28 14:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:19:05 - End Time 2024-12-28 14:19:05 [2024-12-28 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122098', 'tblTempUsageDetail_20' ) start [2024-12-28 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122098', 'tblTempUsageDetail_20' ) end [2024-12-28 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122098', 'tblTempVendorCDR_20' ) start [2024-12-28 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122098', 'tblTempVendorCDR_20' ) end [2024-12-28 14:19:18] Production.INFO: ProcessCDR(1,14122098,1,1,2) [2024-12-28 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122098', 'tblTempUsageDetail_20' ) start [2024-12-28 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122098', 'tblTempUsageDetail_20' ) end [2024-12-28 14:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:19:22] Production.INFO: ==22315== Releasing lock... [2024-12-28 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:19:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:20:06 [end_date_ymd] => 2024-12-28 14:20:06 [RateCDR] => 1 ) [2024-12-28 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-28 11:20:06' and `end` < '2024-12-28 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-28 14:20:19] Production.INFO: count ==1899 [2024-12-28 14:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:20:06 - End Time 2024-12-28 14:20:06 [2024-12-28 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122104', 'tblTempUsageDetail_20' ) start [2024-12-28 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122104', 'tblTempUsageDetail_20' ) end [2024-12-28 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122104', 'tblTempVendorCDR_20' ) start [2024-12-28 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122104', 'tblTempVendorCDR_20' ) end [2024-12-28 14:20:19] Production.INFO: ProcessCDR(1,14122104,1,1,2) [2024-12-28 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122104', 'tblTempUsageDetail_20' ) start [2024-12-28 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122104', 'tblTempUsageDetail_20' ) end [2024-12-28 14:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:20:24] Production.INFO: ==22388== Releasing lock... [2024-12-28 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:20:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:21:04 [end_date_ymd] => 2024-12-28 14:21:04 [RateCDR] => 1 ) [2024-12-28 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-28 11:21:04' and `end` < '2024-12-28 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-28 14:21:17] Production.INFO: count ==1909 [2024-12-28 14:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:21:04 - End Time 2024-12-28 14:21:04 [2024-12-28 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122109', 'tblTempUsageDetail_20' ) start [2024-12-28 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122109', 'tblTempUsageDetail_20' ) end [2024-12-28 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122109', 'tblTempVendorCDR_20' ) start [2024-12-28 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122109', 'tblTempVendorCDR_20' ) end [2024-12-28 14:21:18] Production.INFO: ProcessCDR(1,14122109,1,1,2) [2024-12-28 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122109', 'tblTempUsageDetail_20' ) start [2024-12-28 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122109', 'tblTempUsageDetail_20' ) end [2024-12-28 14:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:21:22] Production.INFO: ==22462== Releasing lock... [2024-12-28 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:21:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:22:05 [end_date_ymd] => 2024-12-28 14:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:22:05' and `end` < '2024-12-28 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-28 14:22:18] Production.INFO: count ==1882 [2024-12-28 14:22:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:22:05 - End Time 2024-12-28 14:22:05 [2024-12-28 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122114', 'tblTempUsageDetail_20' ) start [2024-12-28 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122114', 'tblTempUsageDetail_20' ) end [2024-12-28 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122114', 'tblTempVendorCDR_20' ) start [2024-12-28 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122114', 'tblTempVendorCDR_20' ) end [2024-12-28 14:22:19] Production.INFO: ProcessCDR(1,14122114,1,1,2) [2024-12-28 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122114', 'tblTempUsageDetail_20' ) start [2024-12-28 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122114', 'tblTempUsageDetail_20' ) end [2024-12-28 14:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:22:23] Production.INFO: ==22537== Releasing lock... [2024-12-28 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:22:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:23:05 [end_date_ymd] => 2024-12-28 14:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:23:05' and `end` < '2024-12-28 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-28 14:23:17] Production.INFO: count ==1905 [2024-12-28 14:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:23:05 - End Time 2024-12-28 14:23:05 [2024-12-28 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122119', 'tblTempUsageDetail_20' ) start [2024-12-28 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122119', 'tblTempUsageDetail_20' ) end [2024-12-28 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122119', 'tblTempVendorCDR_20' ) start [2024-12-28 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122119', 'tblTempVendorCDR_20' ) end [2024-12-28 14:23:18] Production.INFO: ProcessCDR(1,14122119,1,1,2) [2024-12-28 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122119', 'tblTempUsageDetail_20' ) start [2024-12-28 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122119', 'tblTempUsageDetail_20' ) end [2024-12-28 14:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:23:22] Production.INFO: ==22609== Releasing lock... [2024-12-28 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:23:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:24:05 [end_date_ymd] => 2024-12-28 14:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:24:05' and `end` < '2024-12-28 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-28 14:24:17] Production.INFO: count ==1913 [2024-12-28 14:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:24:05 - End Time 2024-12-28 14:24:05 [2024-12-28 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122124', 'tblTempUsageDetail_20' ) start [2024-12-28 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122124', 'tblTempUsageDetail_20' ) end [2024-12-28 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122124', 'tblTempVendorCDR_20' ) start [2024-12-28 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122124', 'tblTempVendorCDR_20' ) end [2024-12-28 14:24:18] Production.INFO: ProcessCDR(1,14122124,1,1,2) [2024-12-28 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122124', 'tblTempUsageDetail_20' ) start [2024-12-28 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122124', 'tblTempUsageDetail_20' ) end [2024-12-28 14:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:24:22] Production.INFO: ==22680== Releasing lock... [2024-12-28 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:24:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:25:05 [end_date_ymd] => 2024-12-28 14:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:25:05' and `end` < '2024-12-28 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-28 14:25:18] Production.INFO: count ==1933 [2024-12-28 14:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:25:05 - End Time 2024-12-28 14:25:05 [2024-12-28 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122129', 'tblTempUsageDetail_20' ) start [2024-12-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122129', 'tblTempUsageDetail_20' ) end [2024-12-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122129', 'tblTempVendorCDR_20' ) start [2024-12-28 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122129', 'tblTempVendorCDR_20' ) end [2024-12-28 14:25:18] Production.INFO: ProcessCDR(1,14122129,1,1,2) [2024-12-28 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122129', 'tblTempUsageDetail_20' ) start [2024-12-28 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122129', 'tblTempUsageDetail_20' ) end [2024-12-28 14:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:25:23] Production.INFO: ==22750== Releasing lock... [2024-12-28 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:25:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:26:04 [end_date_ymd] => 2024-12-28 14:26:04 [RateCDR] => 1 ) [2024-12-28 14:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:26:04' and `end` < '2024-12-28 14:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:26:17] Production.INFO: count ==1932 [2024-12-28 14:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:26:04 - End Time 2024-12-28 14:26:04 [2024-12-28 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122134', 'tblTempUsageDetail_20' ) start [2024-12-28 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122134', 'tblTempUsageDetail_20' ) end [2024-12-28 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122134', 'tblTempVendorCDR_20' ) start [2024-12-28 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122134', 'tblTempVendorCDR_20' ) end [2024-12-28 14:26:17] Production.INFO: ProcessCDR(1,14122134,1,1,2) [2024-12-28 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122134', 'tblTempUsageDetail_20' ) start [2024-12-28 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122134', 'tblTempUsageDetail_20' ) end [2024-12-28 14:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:26:21] Production.INFO: ==22820== Releasing lock... [2024-12-28 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:26:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:27:05 [end_date_ymd] => 2024-12-28 14:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:27:05' and `end` < '2024-12-28 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-28 14:27:18] Production.INFO: count ==1939 [2024-12-28 14:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:27:05 - End Time 2024-12-28 14:27:05 [2024-12-28 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122139', 'tblTempUsageDetail_20' ) start [2024-12-28 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122139', 'tblTempUsageDetail_20' ) end [2024-12-28 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122139', 'tblTempVendorCDR_20' ) start [2024-12-28 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122139', 'tblTempVendorCDR_20' ) end [2024-12-28 14:27:18] Production.INFO: ProcessCDR(1,14122139,1,1,2) [2024-12-28 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122139', 'tblTempUsageDetail_20' ) start [2024-12-28 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122139', 'tblTempUsageDetail_20' ) end [2024-12-28 14:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:27:21] Production.INFO: ==22933== Releasing lock... [2024-12-28 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:27:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:28:04 [end_date_ymd] => 2024-12-28 14:28:04 [RateCDR] => 1 ) [2024-12-28 14:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:28:04' and `end` < '2024-12-28 14:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:28:19] Production.INFO: count ==1933 [2024-12-28 14:28:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:28:04 - End Time 2024-12-28 14:28:04 [2024-12-28 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122144', 'tblTempUsageDetail_20' ) start [2024-12-28 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122144', 'tblTempUsageDetail_20' ) end [2024-12-28 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122144', 'tblTempVendorCDR_20' ) start [2024-12-28 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122144', 'tblTempVendorCDR_20' ) end [2024-12-28 14:28:19] Production.INFO: ProcessCDR(1,14122144,1,1,2) [2024-12-28 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122144', 'tblTempUsageDetail_20' ) start [2024-12-28 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122144', 'tblTempUsageDetail_20' ) end [2024-12-28 14:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:28:24] Production.INFO: ==23005== Releasing lock... [2024-12-28 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:28:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:29:05 [end_date_ymd] => 2024-12-28 14:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:29:05' and `end` < '2024-12-28 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-28 14:29:18] Production.INFO: count ==1930 [2024-12-28 14:29:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:29:05 - End Time 2024-12-28 14:29:05 [2024-12-28 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122149', 'tblTempUsageDetail_20' ) start [2024-12-28 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122149', 'tblTempUsageDetail_20' ) end [2024-12-28 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122149', 'tblTempVendorCDR_20' ) start [2024-12-28 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122149', 'tblTempVendorCDR_20' ) end [2024-12-28 14:29:19] Production.INFO: ProcessCDR(1,14122149,1,1,2) [2024-12-28 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122149', 'tblTempUsageDetail_20' ) start [2024-12-28 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122149', 'tblTempUsageDetail_20' ) end [2024-12-28 14:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:29:22] Production.INFO: ==23076== Releasing lock... [2024-12-28 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:29:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:30:06 [end_date_ymd] => 2024-12-28 14:30:06 [RateCDR] => 1 ) [2024-12-28 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:30:06' and `end` < '2024-12-28 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:30:18] Production.INFO: count ==1933 [2024-12-28 14:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:30:06 - End Time 2024-12-28 14:30:06 [2024-12-28 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122155', 'tblTempUsageDetail_20' ) start [2024-12-28 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122155', 'tblTempUsageDetail_20' ) end [2024-12-28 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122155', 'tblTempVendorCDR_20' ) start [2024-12-28 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122155', 'tblTempVendorCDR_20' ) end [2024-12-28 14:30:19] Production.INFO: ProcessCDR(1,14122155,1,1,2) [2024-12-28 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122155', 'tblTempUsageDetail_20' ) start [2024-12-28 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122155', 'tblTempUsageDetail_20' ) end [2024-12-28 14:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:30:24] Production.INFO: ==23154== Releasing lock... [2024-12-28 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:30:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:31:04 [end_date_ymd] => 2024-12-28 14:31:04 [RateCDR] => 1 ) [2024-12-28 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:31:04' and `end` < '2024-12-28 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:31:17] Production.INFO: count ==1953 [2024-12-28 14:31:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:31:04 - End Time 2024-12-28 14:31:04 [2024-12-28 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122160', 'tblTempUsageDetail_20' ) start [2024-12-28 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122160', 'tblTempUsageDetail_20' ) end [2024-12-28 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122160', 'tblTempVendorCDR_20' ) start [2024-12-28 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122160', 'tblTempVendorCDR_20' ) end [2024-12-28 14:31:17] Production.INFO: ProcessCDR(1,14122160,1,1,2) [2024-12-28 14:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122160', 'tblTempUsageDetail_20' ) start [2024-12-28 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122160', 'tblTempUsageDetail_20' ) end [2024-12-28 14:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:31:22] Production.INFO: ==23231== Releasing lock... [2024-12-28 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:31:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:32:05 [end_date_ymd] => 2024-12-28 14:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:32:05' and `end` < '2024-12-28 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-28 14:32:19] Production.INFO: count ==1961 [2024-12-28 14:32:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:32:05 - End Time 2024-12-28 14:32:05 [2024-12-28 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122165', 'tblTempUsageDetail_20' ) start [2024-12-28 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122165', 'tblTempUsageDetail_20' ) end [2024-12-28 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122165', 'tblTempVendorCDR_20' ) start [2024-12-28 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122165', 'tblTempVendorCDR_20' ) end [2024-12-28 14:32:19] Production.INFO: ProcessCDR(1,14122165,1,1,2) [2024-12-28 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122165', 'tblTempUsageDetail_20' ) start [2024-12-28 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122165', 'tblTempUsageDetail_20' ) end [2024-12-28 14:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:32:24] Production.INFO: ==23301== Releasing lock... [2024-12-28 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:32:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:33:04 [end_date_ymd] => 2024-12-28 14:33:04 [RateCDR] => 1 ) [2024-12-28 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:33:04' and `end` < '2024-12-28 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:33:18] Production.INFO: count ==1961 [2024-12-28 14:33:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:33:04 - End Time 2024-12-28 14:33:04 [2024-12-28 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122170', 'tblTempUsageDetail_20' ) start [2024-12-28 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122170', 'tblTempUsageDetail_20' ) end [2024-12-28 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122170', 'tblTempVendorCDR_20' ) start [2024-12-28 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122170', 'tblTempVendorCDR_20' ) end [2024-12-28 14:33:19] Production.INFO: ProcessCDR(1,14122170,1,1,2) [2024-12-28 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122170', 'tblTempUsageDetail_20' ) start [2024-12-28 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122170', 'tblTempUsageDetail_20' ) end [2024-12-28 14:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:33:23] Production.INFO: ==23375== Releasing lock... [2024-12-28 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:33:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:34:05 [end_date_ymd] => 2024-12-28 14:34:05 [RateCDR] => 1 ) [2024-12-28 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:34:05' and `end` < '2024-12-28 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:34:17] Production.INFO: count ==1959 [2024-12-28 14:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:34:05 - End Time 2024-12-28 14:34:05 [2024-12-28 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122175', 'tblTempUsageDetail_20' ) start [2024-12-28 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122175', 'tblTempUsageDetail_20' ) end [2024-12-28 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122175', 'tblTempVendorCDR_20' ) start [2024-12-28 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122175', 'tblTempVendorCDR_20' ) end [2024-12-28 14:34:18] Production.INFO: ProcessCDR(1,14122175,1,1,2) [2024-12-28 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122175', 'tblTempUsageDetail_20' ) start [2024-12-28 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122175', 'tblTempUsageDetail_20' ) end [2024-12-28 14:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:34:23] Production.INFO: ==23446== Releasing lock... [2024-12-28 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:34:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:35:04 [end_date_ymd] => 2024-12-28 14:35:04 [RateCDR] => 1 ) [2024-12-28 14: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-28 11:35:04' and `end` < '2024-12-28 14: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-28 14:35:17] Production.INFO: count ==1962 [2024-12-28 14:35:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:35:04 - End Time 2024-12-28 14:35:04 [2024-12-28 14:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122180', 'tblTempUsageDetail_20' ) start [2024-12-28 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122180', 'tblTempUsageDetail_20' ) end [2024-12-28 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122180', 'tblTempVendorCDR_20' ) start [2024-12-28 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122180', 'tblTempVendorCDR_20' ) end [2024-12-28 14:35:17] Production.INFO: ProcessCDR(1,14122180,1,1,2) [2024-12-28 14:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122180', 'tblTempUsageDetail_20' ) start [2024-12-28 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122180', 'tblTempUsageDetail_20' ) end [2024-12-28 14:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:35:20] Production.INFO: ==23527== Releasing lock... [2024-12-28 14:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:35:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:36:05 [end_date_ymd] => 2024-12-28 14:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:36:05' and `end` < '2024-12-28 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-28 14:36:18] Production.INFO: count ==1962 [2024-12-28 14:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:36:05 - End Time 2024-12-28 14:36:05 [2024-12-28 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122185', 'tblTempUsageDetail_20' ) start [2024-12-28 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122185', 'tblTempUsageDetail_20' ) end [2024-12-28 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122185', 'tblTempVendorCDR_20' ) start [2024-12-28 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122185', 'tblTempVendorCDR_20' ) end [2024-12-28 14:36:19] Production.INFO: ProcessCDR(1,14122185,1,1,2) [2024-12-28 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122185', 'tblTempUsageDetail_20' ) start [2024-12-28 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122185', 'tblTempUsageDetail_20' ) end [2024-12-28 14:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:36:22] Production.INFO: ==23599== Releasing lock... [2024-12-28 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:36:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:37:05 [end_date_ymd] => 2024-12-28 14:37:05 [RateCDR] => 1 ) [2024-12-28 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:37:05' and `end` < '2024-12-28 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:37:18] Production.INFO: count ==1961 [2024-12-28 14:37:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:37:05 - End Time 2024-12-28 14:37:05 [2024-12-28 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122190', 'tblTempUsageDetail_20' ) start [2024-12-28 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122190', 'tblTempUsageDetail_20' ) end [2024-12-28 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122190', 'tblTempVendorCDR_20' ) start [2024-12-28 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122190', 'tblTempVendorCDR_20' ) end [2024-12-28 14:37:19] Production.INFO: ProcessCDR(1,14122190,1,1,2) [2024-12-28 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122190', 'tblTempUsageDetail_20' ) start [2024-12-28 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122190', 'tblTempUsageDetail_20' ) end [2024-12-28 14:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:37:22] Production.INFO: ==23670== Releasing lock... [2024-12-28 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:37:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:38:05 [end_date_ymd] => 2024-12-28 14:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:38:05' and `end` < '2024-12-28 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-28 14:38:20] Production.INFO: count ==1962 [2024-12-28 14:38:20] Production.ERROR: pbx CDR StartTime 2024-12-28 11:38:05 - End Time 2024-12-28 14:38:05 [2024-12-28 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122195', 'tblTempUsageDetail_20' ) start [2024-12-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122195', 'tblTempUsageDetail_20' ) end [2024-12-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122195', 'tblTempVendorCDR_20' ) start [2024-12-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122195', 'tblTempVendorCDR_20' ) end [2024-12-28 14:38:20] Production.INFO: ProcessCDR(1,14122195,1,1,2) [2024-12-28 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122195', 'tblTempUsageDetail_20' ) start [2024-12-28 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122195', 'tblTempUsageDetail_20' ) end [2024-12-28 14:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:38:25] Production.INFO: ==23742== Releasing lock... [2024-12-28 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:38:25] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:39:04 [end_date_ymd] => 2024-12-28 14:39:04 [RateCDR] => 1 ) [2024-12-28 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-28 11:39:04' and `end` < '2024-12-28 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-28 14:39:17] Production.INFO: count ==1961 [2024-12-28 14:39:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:39:04 - End Time 2024-12-28 14:39:04 [2024-12-28 14:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122200', 'tblTempUsageDetail_20' ) start [2024-12-28 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122200', 'tblTempUsageDetail_20' ) end [2024-12-28 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122200', 'tblTempVendorCDR_20' ) start [2024-12-28 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122200', 'tblTempVendorCDR_20' ) end [2024-12-28 14:39:17] Production.INFO: ProcessCDR(1,14122200,1,1,2) [2024-12-28 14:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122200', 'tblTempUsageDetail_20' ) start [2024-12-28 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122200', 'tblTempUsageDetail_20' ) end [2024-12-28 14:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:39:22] Production.INFO: ==23812== Releasing lock... [2024-12-28 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:39:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:40:05 [end_date_ymd] => 2024-12-28 14:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:40:05' and `end` < '2024-12-28 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-28 14:40:18] Production.INFO: count ==1957 [2024-12-28 14:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:40:05 - End Time 2024-12-28 14:40:05 [2024-12-28 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122206', 'tblTempUsageDetail_20' ) start [2024-12-28 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122206', 'tblTempUsageDetail_20' ) end [2024-12-28 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122206', 'tblTempVendorCDR_20' ) start [2024-12-28 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122206', 'tblTempVendorCDR_20' ) end [2024-12-28 14:40:19] Production.INFO: ProcessCDR(1,14122206,1,1,2) [2024-12-28 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122206', 'tblTempUsageDetail_20' ) start [2024-12-28 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122206', 'tblTempUsageDetail_20' ) end [2024-12-28 14:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:40:23] Production.INFO: ==23890== Releasing lock... [2024-12-28 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:40:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:41:04 [end_date_ymd] => 2024-12-28 14:41:04 [RateCDR] => 1 ) [2024-12-28 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-28 11:41:04' and `end` < '2024-12-28 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-28 14:41:17] Production.INFO: count ==1960 [2024-12-28 14:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:41:04 - End Time 2024-12-28 14:41:04 [2024-12-28 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122211', 'tblTempUsageDetail_20' ) start [2024-12-28 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122211', 'tblTempUsageDetail_20' ) end [2024-12-28 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122211', 'tblTempVendorCDR_20' ) start [2024-12-28 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122211', 'tblTempVendorCDR_20' ) end [2024-12-28 14:41:18] Production.INFO: ProcessCDR(1,14122211,1,1,2) [2024-12-28 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122211', 'tblTempUsageDetail_20' ) start [2024-12-28 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122211', 'tblTempUsageDetail_20' ) end [2024-12-28 14:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:41:23] Production.INFO: ==23970== Releasing lock... [2024-12-28 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:41:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:42:05 [end_date_ymd] => 2024-12-28 14:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:42:05' and `end` < '2024-12-28 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-28 14:42:18] Production.INFO: count ==1979 [2024-12-28 14:42:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:42:05 - End Time 2024-12-28 14:42:05 [2024-12-28 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122216', 'tblTempUsageDetail_20' ) start [2024-12-28 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122216', 'tblTempUsageDetail_20' ) end [2024-12-28 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122216', 'tblTempVendorCDR_20' ) start [2024-12-28 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122216', 'tblTempVendorCDR_20' ) end [2024-12-28 14:42:19] Production.INFO: ProcessCDR(1,14122216,1,1,2) [2024-12-28 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122216', 'tblTempUsageDetail_20' ) start [2024-12-28 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122216', 'tblTempUsageDetail_20' ) end [2024-12-28 14:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:42:22] Production.INFO: ==24081== Releasing lock... [2024-12-28 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:42:22] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:43:05 [end_date_ymd] => 2024-12-28 14:43:05 [RateCDR] => 1 ) [2024-12-28 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:43:05' and `end` < '2024-12-28 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:43:18] Production.INFO: count ==1982 [2024-12-28 14:43:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:43:05 - End Time 2024-12-28 14:43:05 [2024-12-28 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122221', 'tblTempUsageDetail_20' ) start [2024-12-28 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122221', 'tblTempUsageDetail_20' ) end [2024-12-28 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122221', 'tblTempVendorCDR_20' ) start [2024-12-28 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122221', 'tblTempVendorCDR_20' ) end [2024-12-28 14:43:19] Production.INFO: ProcessCDR(1,14122221,1,1,2) [2024-12-28 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122221', 'tblTempUsageDetail_20' ) start [2024-12-28 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122221', 'tblTempUsageDetail_20' ) end [2024-12-28 14:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:43:24] Production.INFO: ==24155== Releasing lock... [2024-12-28 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:43:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-28 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:44:05 [end_date_ymd] => 2024-12-28 14:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:44:05' and `end` < '2024-12-28 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-28 14:44:20] Production.INFO: count ==1980 [2024-12-28 14:44:21] Production.ERROR: pbx CDR StartTime 2024-12-28 11:44:05 - End Time 2024-12-28 14:44:05 [2024-12-28 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122226', 'tblTempUsageDetail_20' ) start [2024-12-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122226', 'tblTempUsageDetail_20' ) end [2024-12-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122226', 'tblTempVendorCDR_20' ) start [2024-12-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122226', 'tblTempVendorCDR_20' ) end [2024-12-28 14:44:21] Production.INFO: ProcessCDR(1,14122226,1,1,2) [2024-12-28 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122226', 'tblTempUsageDetail_20' ) start [2024-12-28 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122226', 'tblTempUsageDetail_20' ) end [2024-12-28 14:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:44:24] Production.INFO: ==24226== Releasing lock... [2024-12-28 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:44:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-28 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:45:04 [end_date_ymd] => 2024-12-28 14:45:04 [RateCDR] => 1 ) [2024-12-28 14: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-28 11:45:04' and `end` < '2024-12-28 14: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-28 14:45:17] Production.INFO: count ==1975 [2024-12-28 14:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 11:45:04 - End Time 2024-12-28 14:45:04 [2024-12-28 14:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122231', 'tblTempUsageDetail_20' ) start [2024-12-28 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122231', 'tblTempUsageDetail_20' ) end [2024-12-28 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122231', 'tblTempVendorCDR_20' ) start [2024-12-28 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122231', 'tblTempVendorCDR_20' ) end [2024-12-28 14:45:18] Production.INFO: ProcessCDR(1,14122231,1,1,2) [2024-12-28 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122231', 'tblTempUsageDetail_20' ) start [2024-12-28 14:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122231', 'tblTempUsageDetail_20' ) end [2024-12-28 14:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:45:21] Production.INFO: ==24300== Releasing lock... [2024-12-28 14:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:45:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:46:04 [end_date_ymd] => 2024-12-28 14:46:04 [RateCDR] => 1 ) [2024-12-28 14: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-28 11:46:04' and `end` < '2024-12-28 14: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-28 14:46:17] Production.INFO: count ==1968 [2024-12-28 14:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:46:04 - End Time 2024-12-28 14:46:04 [2024-12-28 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122236', 'tblTempUsageDetail_20' ) start [2024-12-28 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122236', 'tblTempUsageDetail_20' ) end [2024-12-28 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122236', 'tblTempVendorCDR_20' ) start [2024-12-28 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122236', 'tblTempVendorCDR_20' ) end [2024-12-28 14:46:18] Production.INFO: ProcessCDR(1,14122236,1,1,2) [2024-12-28 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122236', 'tblTempUsageDetail_20' ) start [2024-12-28 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122236', 'tblTempUsageDetail_20' ) end [2024-12-28 14:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:46:21] Production.INFO: ==24374== Releasing lock... [2024-12-28 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:46:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:47:05 [end_date_ymd] => 2024-12-28 14:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:47:05' and `end` < '2024-12-28 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-28 14:47:20] Production.INFO: count ==1965 [2024-12-28 14:47:20] Production.ERROR: pbx CDR StartTime 2024-12-28 11:47:05 - End Time 2024-12-28 14:47:05 [2024-12-28 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122241', 'tblTempUsageDetail_20' ) start [2024-12-28 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122241', 'tblTempUsageDetail_20' ) end [2024-12-28 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122241', 'tblTempVendorCDR_20' ) start [2024-12-28 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122241', 'tblTempVendorCDR_20' ) end [2024-12-28 14:47:20] Production.INFO: ProcessCDR(1,14122241,1,1,2) [2024-12-28 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122241', 'tblTempUsageDetail_20' ) start [2024-12-28 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122241', 'tblTempUsageDetail_20' ) end [2024-12-28 14:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:47:24] Production.INFO: ==24443== Releasing lock... [2024-12-28 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:47:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:48:04 [end_date_ymd] => 2024-12-28 14:48:04 [RateCDR] => 1 ) [2024-12-28 14:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:48:04' and `end` < '2024-12-28 14:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:48:18] Production.INFO: count ==1969 [2024-12-28 14:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:48:04 - End Time 2024-12-28 14:48:04 [2024-12-28 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122246', 'tblTempUsageDetail_20' ) start [2024-12-28 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122246', 'tblTempUsageDetail_20' ) end [2024-12-28 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122246', 'tblTempVendorCDR_20' ) start [2024-12-28 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122246', 'tblTempVendorCDR_20' ) end [2024-12-28 14:48:19] Production.INFO: ProcessCDR(1,14122246,1,1,2) [2024-12-28 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122246', 'tblTempUsageDetail_20' ) start [2024-12-28 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122246', 'tblTempUsageDetail_20' ) end [2024-12-28 14:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:48:22] Production.INFO: ==24516== Releasing lock... [2024-12-28 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:48:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:49:04 [end_date_ymd] => 2024-12-28 14:49:04 [RateCDR] => 1 ) [2024-12-28 14:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:49:04' and `end` < '2024-12-28 14:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:49:17] Production.INFO: count ==1954 [2024-12-28 14:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:49:04 - End Time 2024-12-28 14:49:04 [2024-12-28 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122251', 'tblTempUsageDetail_20' ) start [2024-12-28 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122251', 'tblTempUsageDetail_20' ) end [2024-12-28 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122251', 'tblTempVendorCDR_20' ) start [2024-12-28 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122251', 'tblTempVendorCDR_20' ) end [2024-12-28 14:49:18] Production.INFO: ProcessCDR(1,14122251,1,1,2) [2024-12-28 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122251', 'tblTempUsageDetail_20' ) start [2024-12-28 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122251', 'tblTempUsageDetail_20' ) end [2024-12-28 14:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:49:21] Production.INFO: ==24587== Releasing lock... [2024-12-28 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:49:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:50:05 [end_date_ymd] => 2024-12-28 14:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:50:05' and `end` < '2024-12-28 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-28 14:50:18] Production.INFO: count ==1937 [2024-12-28 14:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:50:05 - End Time 2024-12-28 14:50:05 [2024-12-28 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122256', 'tblTempUsageDetail_20' ) start [2024-12-28 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122256', 'tblTempUsageDetail_20' ) end [2024-12-28 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122256', 'tblTempVendorCDR_20' ) start [2024-12-28 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122256', 'tblTempVendorCDR_20' ) end [2024-12-28 14:50:19] Production.INFO: ProcessCDR(1,14122256,1,1,2) [2024-12-28 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122256', 'tblTempUsageDetail_20' ) start [2024-12-28 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122256', 'tblTempUsageDetail_20' ) end [2024-12-28 14:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:50:22] Production.INFO: ==24659== Releasing lock... [2024-12-28 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:50:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:51:05 [end_date_ymd] => 2024-12-28 14:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:51:05' and `end` < '2024-12-28 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-28 14:51:18] Production.INFO: count ==1953 [2024-12-28 14:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:51:05 - End Time 2024-12-28 14:51:05 [2024-12-28 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122262', 'tblTempUsageDetail_20' ) start [2024-12-28 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122262', 'tblTempUsageDetail_20' ) end [2024-12-28 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122262', 'tblTempVendorCDR_20' ) start [2024-12-28 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122262', 'tblTempVendorCDR_20' ) end [2024-12-28 14:51:18] Production.INFO: ProcessCDR(1,14122262,1,1,2) [2024-12-28 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122262', 'tblTempUsageDetail_20' ) start [2024-12-28 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122262', 'tblTempUsageDetail_20' ) end [2024-12-28 14:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:51:21] Production.INFO: ==24736== Releasing lock... [2024-12-28 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:51:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:52:05 [end_date_ymd] => 2024-12-28 14:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:52:05' and `end` < '2024-12-28 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-28 14:52:18] Production.INFO: count ==1953 [2024-12-28 14:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:52:05 - End Time 2024-12-28 14:52:05 [2024-12-28 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122267', 'tblTempUsageDetail_20' ) start [2024-12-28 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122267', 'tblTempUsageDetail_20' ) end [2024-12-28 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122267', 'tblTempVendorCDR_20' ) start [2024-12-28 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122267', 'tblTempVendorCDR_20' ) end [2024-12-28 14:52:18] Production.INFO: ProcessCDR(1,14122267,1,1,2) [2024-12-28 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122267', 'tblTempUsageDetail_20' ) start [2024-12-28 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122267', 'tblTempUsageDetail_20' ) end [2024-12-28 14:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:52:23] Production.INFO: ==24806== Releasing lock... [2024-12-28 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:52:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:53:05 [end_date_ymd] => 2024-12-28 14:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:53:05' and `end` < '2024-12-28 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-28 14:53:18] Production.INFO: count ==1941 [2024-12-28 14:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:53:05 - End Time 2024-12-28 14:53:05 [2024-12-28 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122272', 'tblTempUsageDetail_20' ) start [2024-12-28 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122272', 'tblTempUsageDetail_20' ) end [2024-12-28 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122272', 'tblTempVendorCDR_20' ) start [2024-12-28 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122272', 'tblTempVendorCDR_20' ) end [2024-12-28 14:53:19] Production.INFO: ProcessCDR(1,14122272,1,1,2) [2024-12-28 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122272', 'tblTempUsageDetail_20' ) start [2024-12-28 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122272', 'tblTempUsageDetail_20' ) end [2024-12-28 14:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:53:22] Production.INFO: ==24875== Releasing lock... [2024-12-28 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:53:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:54:05 [end_date_ymd] => 2024-12-28 14:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:54:05' and `end` < '2024-12-28 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-28 14:54:17] Production.INFO: count ==1947 [2024-12-28 14:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:54:05 - End Time 2024-12-28 14:54:05 [2024-12-28 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122277', 'tblTempUsageDetail_20' ) start [2024-12-28 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122277', 'tblTempUsageDetail_20' ) end [2024-12-28 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122277', 'tblTempVendorCDR_20' ) start [2024-12-28 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122277', 'tblTempVendorCDR_20' ) end [2024-12-28 14:54:18] Production.INFO: ProcessCDR(1,14122277,1,1,2) [2024-12-28 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122277', 'tblTempUsageDetail_20' ) start [2024-12-28 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122277', 'tblTempUsageDetail_20' ) end [2024-12-28 14:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:54:23] Production.INFO: ==24949== Releasing lock... [2024-12-28 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:54:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:55:05 [end_date_ymd] => 2024-12-28 14:55:05 [RateCDR] => 1 ) [2024-12-28 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:55:05' and `end` < '2024-12-28 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:55:17] Production.INFO: count ==1957 [2024-12-28 14:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:55:05 - End Time 2024-12-28 14:55:05 [2024-12-28 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122282', 'tblTempUsageDetail_20' ) start [2024-12-28 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122282', 'tblTempUsageDetail_20' ) end [2024-12-28 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122282', 'tblTempVendorCDR_20' ) start [2024-12-28 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122282', 'tblTempVendorCDR_20' ) end [2024-12-28 14:55:18] Production.INFO: ProcessCDR(1,14122282,1,1,2) [2024-12-28 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122282', 'tblTempUsageDetail_20' ) start [2024-12-28 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122282', 'tblTempUsageDetail_20' ) end [2024-12-28 14:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:55:23] Production.INFO: ==25018== Releasing lock... [2024-12-28 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:55:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:56:06 [end_date_ymd] => 2024-12-28 14:56:06 [RateCDR] => 1 ) [2024-12-28 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 11:56:06' and `end` < '2024-12-28 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 14:56:19] Production.INFO: count ==1955 [2024-12-28 14:56:20] Production.ERROR: pbx CDR StartTime 2024-12-28 11:56:06 - End Time 2024-12-28 14:56:06 [2024-12-28 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122287', 'tblTempUsageDetail_20' ) start [2024-12-28 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122287', 'tblTempUsageDetail_20' ) end [2024-12-28 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122287', 'tblTempVendorCDR_20' ) start [2024-12-28 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122287', 'tblTempVendorCDR_20' ) end [2024-12-28 14:56:20] Production.INFO: ProcessCDR(1,14122287,1,1,2) [2024-12-28 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122287', 'tblTempUsageDetail_20' ) start [2024-12-28 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122287', 'tblTempUsageDetail_20' ) end [2024-12-28 14:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:56:23] Production.INFO: ==25091== Releasing lock... [2024-12-28 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:56:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:57:05 [end_date_ymd] => 2024-12-28 14:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:57:05' and `end` < '2024-12-28 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-28 14:57:18] Production.INFO: count ==1955 [2024-12-28 14:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:57:05 - End Time 2024-12-28 14:57:05 [2024-12-28 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122292', 'tblTempUsageDetail_20' ) start [2024-12-28 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122292', 'tblTempUsageDetail_20' ) end [2024-12-28 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122292', 'tblTempVendorCDR_20' ) start [2024-12-28 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122292', 'tblTempVendorCDR_20' ) end [2024-12-28 14:57:19] Production.INFO: ProcessCDR(1,14122292,1,1,2) [2024-12-28 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122292', 'tblTempUsageDetail_20' ) start [2024-12-28 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122292', 'tblTempUsageDetail_20' ) end [2024-12-28 14:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:57:24] Production.INFO: ==25161== Releasing lock... [2024-12-28 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:57:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:58:05 [end_date_ymd] => 2024-12-28 14:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 11:58:05' and `end` < '2024-12-28 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-28 14:58:18] Production.INFO: count ==1954 [2024-12-28 14:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 11:58:05 - End Time 2024-12-28 14:58:05 [2024-12-28 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122297', 'tblTempUsageDetail_20' ) start [2024-12-28 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122297', 'tblTempUsageDetail_20' ) end [2024-12-28 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122297', 'tblTempVendorCDR_20' ) start [2024-12-28 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122297', 'tblTempVendorCDR_20' ) end [2024-12-28 14:58:18] Production.INFO: ProcessCDR(1,14122297,1,1,2) [2024-12-28 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122297', 'tblTempUsageDetail_20' ) start [2024-12-28 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122297', 'tblTempUsageDetail_20' ) end [2024-12-28 14:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:58:23] Production.INFO: ==25272== Releasing lock... [2024-12-28 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:58:23] Production.INFO: 43 MB #Memory Used# [2024-12-28 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 11:59:04 [end_date_ymd] => 2024-12-28 14:59:04 [RateCDR] => 1 ) [2024-12-28 14: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-28 11:59:04' and `end` < '2024-12-28 14: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-28 14:59:18] Production.INFO: count ==1948 [2024-12-28 14:59:19] Production.ERROR: pbx CDR StartTime 2024-12-28 11:59:04 - End Time 2024-12-28 14:59:04 [2024-12-28 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122302', 'tblTempUsageDetail_20' ) start [2024-12-28 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122302', 'tblTempUsageDetail_20' ) end [2024-12-28 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122302', 'tblTempVendorCDR_20' ) start [2024-12-28 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122302', 'tblTempVendorCDR_20' ) end [2024-12-28 14:59:19] Production.INFO: ProcessCDR(1,14122302,1,1,2) [2024-12-28 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122302', 'tblTempUsageDetail_20' ) start [2024-12-28 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122302', 'tblTempUsageDetail_20' ) end [2024-12-28 14:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 14:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 14:59:22] Production.INFO: ==25343== Releasing lock... [2024-12-28 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 14:59:22] Production.INFO: 43 MB #Memory Used# [2024-12-28 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:00:05 [end_date_ymd] => 2024-12-28 15:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:00:05' and `end` < '2024-12-28 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-28 15:00:18] Production.INFO: count ==1954 [2024-12-28 15:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:00:05 - End Time 2024-12-28 15:00:05 [2024-12-28 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122308', 'tblTempUsageDetail_20' ) start [2024-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122308', 'tblTempUsageDetail_20' ) end [2024-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122308', 'tblTempVendorCDR_20' ) start [2024-12-28 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122308', 'tblTempVendorCDR_20' ) end [2024-12-28 15:00:19] Production.INFO: ProcessCDR(1,14122308,1,1,2) [2024-12-28 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122308', 'tblTempUsageDetail_20' ) start [2024-12-28 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122308', 'tblTempUsageDetail_20' ) end [2024-12-28 15:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:00:22] Production.INFO: ==25423== Releasing lock... [2024-12-28 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:00:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:01:04 [end_date_ymd] => 2024-12-28 15:01:04 [RateCDR] => 1 ) [2024-12-28 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:01:04' and `end` < '2024-12-28 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:01:17] Production.INFO: count ==1957 [2024-12-28 15:01:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:01:04 - End Time 2024-12-28 15:01:04 [2024-12-28 15:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122313', 'tblTempUsageDetail_20' ) start [2024-12-28 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122313', 'tblTempUsageDetail_20' ) end [2024-12-28 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122313', 'tblTempVendorCDR_20' ) start [2024-12-28 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122313', 'tblTempVendorCDR_20' ) end [2024-12-28 15:01:18] Production.INFO: ProcessCDR(1,14122313,1,1,2) [2024-12-28 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122313', 'tblTempUsageDetail_20' ) start [2024-12-28 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122313', 'tblTempUsageDetail_20' ) end [2024-12-28 15:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:01:22] Production.INFO: ==25507== Releasing lock... [2024-12-28 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:01:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:02:05 [end_date_ymd] => 2024-12-28 15:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:02:05' and `end` < '2024-12-28 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-28 15:02:19] Production.INFO: count ==1955 [2024-12-28 15:02:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:02:05 - End Time 2024-12-28 15:02:05 [2024-12-28 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122318', 'tblTempUsageDetail_20' ) start [2024-12-28 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122318', 'tblTempUsageDetail_20' ) end [2024-12-28 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122318', 'tblTempVendorCDR_20' ) start [2024-12-28 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122318', 'tblTempVendorCDR_20' ) end [2024-12-28 15:02:20] Production.INFO: ProcessCDR(1,14122318,1,1,2) [2024-12-28 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122318', 'tblTempUsageDetail_20' ) start [2024-12-28 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122318', 'tblTempUsageDetail_20' ) end [2024-12-28 15:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:02:23] Production.INFO: ==25658== Releasing lock... [2024-12-28 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:02:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:03:04 [end_date_ymd] => 2024-12-28 15:03:04 [RateCDR] => 1 ) [2024-12-28 15:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:03:04' and `end` < '2024-12-28 15:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:03:17] Production.INFO: count ==1950 [2024-12-28 15:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:03:04 - End Time 2024-12-28 15:03:04 [2024-12-28 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122323', 'tblTempUsageDetail_20' ) start [2024-12-28 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122323', 'tblTempUsageDetail_20' ) end [2024-12-28 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122323', 'tblTempVendorCDR_20' ) start [2024-12-28 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122323', 'tblTempVendorCDR_20' ) end [2024-12-28 15:03:17] Production.INFO: ProcessCDR(1,14122323,1,1,2) [2024-12-28 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122323', 'tblTempUsageDetail_20' ) start [2024-12-28 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122323', 'tblTempUsageDetail_20' ) end [2024-12-28 15:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:03:21] Production.INFO: ==25727== Releasing lock... [2024-12-28 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:03:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:04:05 [end_date_ymd] => 2024-12-28 15:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:04:05' and `end` < '2024-12-28 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-28 15:04:19] Production.INFO: count ==1944 [2024-12-28 15:04:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:04:05 - End Time 2024-12-28 15:04:05 [2024-12-28 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122328', 'tblTempUsageDetail_20' ) start [2024-12-28 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122328', 'tblTempUsageDetail_20' ) end [2024-12-28 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122328', 'tblTempVendorCDR_20' ) start [2024-12-28 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122328', 'tblTempVendorCDR_20' ) end [2024-12-28 15:04:20] Production.INFO: ProcessCDR(1,14122328,1,1,2) [2024-12-28 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122328', 'tblTempUsageDetail_20' ) start [2024-12-28 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122328', 'tblTempUsageDetail_20' ) end [2024-12-28 15:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:04:24] Production.INFO: ==25800== Releasing lock... [2024-12-28 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:04:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:05:05 [end_date_ymd] => 2024-12-28 15:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:05:05' and `end` < '2024-12-28 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-28 15:05:17] Production.INFO: count ==1940 [2024-12-28 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:05:05 - End Time 2024-12-28 15:05:05 [2024-12-28 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122333', 'tblTempUsageDetail_20' ) start [2024-12-28 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122333', 'tblTempUsageDetail_20' ) end [2024-12-28 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122333', 'tblTempVendorCDR_20' ) start [2024-12-28 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122333', 'tblTempVendorCDR_20' ) end [2024-12-28 15:05:18] Production.INFO: ProcessCDR(1,14122333,1,1,2) [2024-12-28 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122333', 'tblTempUsageDetail_20' ) start [2024-12-28 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122333', 'tblTempUsageDetail_20' ) end [2024-12-28 15:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:05:21] Production.INFO: ==25948== Releasing lock... [2024-12-28 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:05:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:06:05 [end_date_ymd] => 2024-12-28 15:06:05 [RateCDR] => 1 ) [2024-12-28 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:06:05' and `end` < '2024-12-28 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:06:18] Production.INFO: count ==1934 [2024-12-28 15:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:06:05 - End Time 2024-12-28 15:06:05 [2024-12-28 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122338', 'tblTempUsageDetail_20' ) start [2024-12-28 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122338', 'tblTempUsageDetail_20' ) end [2024-12-28 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122338', 'tblTempVendorCDR_20' ) start [2024-12-28 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122338', 'tblTempVendorCDR_20' ) end [2024-12-28 15:06:18] Production.INFO: ProcessCDR(1,14122338,1,1,2) [2024-12-28 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122338', 'tblTempUsageDetail_20' ) start [2024-12-28 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122338', 'tblTempUsageDetail_20' ) end [2024-12-28 15:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:06:23] Production.INFO: ==26022== Releasing lock... [2024-12-28 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:06:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:07:04 [end_date_ymd] => 2024-12-28 15:07:04 [RateCDR] => 1 ) [2024-12-28 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:07:04' and `end` < '2024-12-28 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:07:17] Production.INFO: count ==1916 [2024-12-28 15:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:07:04 - End Time 2024-12-28 15:07:04 [2024-12-28 15:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122343', 'tblTempUsageDetail_20' ) start [2024-12-28 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122343', 'tblTempUsageDetail_20' ) end [2024-12-28 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122343', 'tblTempVendorCDR_20' ) start [2024-12-28 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122343', 'tblTempVendorCDR_20' ) end [2024-12-28 15:07:18] Production.INFO: ProcessCDR(1,14122343,1,1,2) [2024-12-28 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122343', 'tblTempUsageDetail_20' ) start [2024-12-28 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122343', 'tblTempUsageDetail_20' ) end [2024-12-28 15:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:07:22] Production.INFO: ==26098== Releasing lock... [2024-12-28 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:07:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:08:05 [end_date_ymd] => 2024-12-28 15:08:05 [RateCDR] => 1 ) [2024-12-28 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:08:05' and `end` < '2024-12-28 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:08:19] Production.INFO: count ==1907 [2024-12-28 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:08:05 - End Time 2024-12-28 15:08:05 [2024-12-28 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122348', 'tblTempUsageDetail_20' ) start [2024-12-28 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122348', 'tblTempUsageDetail_20' ) end [2024-12-28 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122348', 'tblTempVendorCDR_20' ) start [2024-12-28 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122348', 'tblTempVendorCDR_20' ) end [2024-12-28 15:08:19] Production.INFO: ProcessCDR(1,14122348,1,1,2) [2024-12-28 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122348', 'tblTempUsageDetail_20' ) start [2024-12-28 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122348', 'tblTempUsageDetail_20' ) end [2024-12-28 15:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:08:23] Production.INFO: ==26206== Releasing lock... [2024-12-28 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:08:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:09:04 [end_date_ymd] => 2024-12-28 15:09:04 [RateCDR] => 1 ) [2024-12-28 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:09:04' and `end` < '2024-12-28 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:09:17] Production.INFO: count ==1908 [2024-12-28 15:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:09:04 - End Time 2024-12-28 15:09:04 [2024-12-28 15:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122353', 'tblTempUsageDetail_20' ) start [2024-12-28 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122353', 'tblTempUsageDetail_20' ) end [2024-12-28 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122353', 'tblTempVendorCDR_20' ) start [2024-12-28 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122353', 'tblTempVendorCDR_20' ) end [2024-12-28 15:09:17] Production.INFO: ProcessCDR(1,14122353,1,1,2) [2024-12-28 15:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122353', 'tblTempUsageDetail_20' ) start [2024-12-28 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122353', 'tblTempUsageDetail_20' ) end [2024-12-28 15:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:09:22] Production.INFO: ==26320== Releasing lock... [2024-12-28 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:09:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:10:05 [end_date_ymd] => 2024-12-28 15:10:05 [RateCDR] => 1 ) [2024-12-28 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:10:05' and `end` < '2024-12-28 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:10:18] Production.INFO: count ==1921 [2024-12-28 15:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:10:05 - End Time 2024-12-28 15:10:05 [2024-12-28 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122359', 'tblTempUsageDetail_20' ) start [2024-12-28 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122359', 'tblTempUsageDetail_20' ) end [2024-12-28 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122359', 'tblTempVendorCDR_20' ) start [2024-12-28 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122359', 'tblTempVendorCDR_20' ) end [2024-12-28 15:10:18] Production.INFO: ProcessCDR(1,14122359,1,1,2) [2024-12-28 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122359', 'tblTempUsageDetail_20' ) start [2024-12-28 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122359', 'tblTempUsageDetail_20' ) end [2024-12-28 15:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:10:23] Production.INFO: ==26391== Releasing lock... [2024-12-28 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:10:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:11:05 [end_date_ymd] => 2024-12-28 15:11:05 [RateCDR] => 1 ) [2024-12-28 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:11:05' and `end` < '2024-12-28 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:11:17] Production.INFO: count ==1907 [2024-12-28 15:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:11:05 - End Time 2024-12-28 15:11:05 [2024-12-28 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122364', 'tblTempUsageDetail_20' ) start [2024-12-28 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122364', 'tblTempUsageDetail_20' ) end [2024-12-28 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122364', 'tblTempVendorCDR_20' ) start [2024-12-28 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122364', 'tblTempVendorCDR_20' ) end [2024-12-28 15:11:18] Production.INFO: ProcessCDR(1,14122364,1,1,2) [2024-12-28 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122364', 'tblTempUsageDetail_20' ) start [2024-12-28 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122364', 'tblTempUsageDetail_20' ) end [2024-12-28 15:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:11:23] Production.INFO: ==26466== Releasing lock... [2024-12-28 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:11:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:12:05 [end_date_ymd] => 2024-12-28 15:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:12:05' and `end` < '2024-12-28 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-28 15:12:18] Production.INFO: count ==1908 [2024-12-28 15:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:12:05 - End Time 2024-12-28 15:12:05 [2024-12-28 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122369', 'tblTempUsageDetail_20' ) start [2024-12-28 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122369', 'tblTempUsageDetail_20' ) end [2024-12-28 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122369', 'tblTempVendorCDR_20' ) start [2024-12-28 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122369', 'tblTempVendorCDR_20' ) end [2024-12-28 15:12:18] Production.INFO: ProcessCDR(1,14122369,1,1,2) [2024-12-28 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122369', 'tblTempUsageDetail_20' ) start [2024-12-28 15:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122369', 'tblTempUsageDetail_20' ) end [2024-12-28 15:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:12:23] Production.INFO: ==26618== Releasing lock... [2024-12-28 15:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:12:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:13:05 [end_date_ymd] => 2024-12-28 15:13:05 [RateCDR] => 1 ) [2024-12-28 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:13:05' and `end` < '2024-12-28 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:13:18] Production.INFO: count ==1914 [2024-12-28 15:13:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:13:05 - End Time 2024-12-28 15:13:05 [2024-12-28 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122374', 'tblTempUsageDetail_20' ) start [2024-12-28 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122374', 'tblTempUsageDetail_20' ) end [2024-12-28 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122374', 'tblTempVendorCDR_20' ) start [2024-12-28 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122374', 'tblTempVendorCDR_20' ) end [2024-12-28 15:13:18] Production.INFO: ProcessCDR(1,14122374,1,1,2) [2024-12-28 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122374', 'tblTempUsageDetail_20' ) start [2024-12-28 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122374', 'tblTempUsageDetail_20' ) end [2024-12-28 15:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:13:21] Production.INFO: ==26690== Releasing lock... [2024-12-28 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:13:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:14:05 [end_date_ymd] => 2024-12-28 15:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:14:05' and `end` < '2024-12-28 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-28 15:14:20] Production.INFO: count ==1920 [2024-12-28 15:14:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:14:05 - End Time 2024-12-28 15:14:05 [2024-12-28 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122379', 'tblTempUsageDetail_20' ) start [2024-12-28 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122379', 'tblTempUsageDetail_20' ) end [2024-12-28 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122379', 'tblTempVendorCDR_20' ) start [2024-12-28 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122379', 'tblTempVendorCDR_20' ) end [2024-12-28 15:14:20] Production.INFO: ProcessCDR(1,14122379,1,1,2) [2024-12-28 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122379', 'tblTempUsageDetail_20' ) start [2024-12-28 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122379', 'tblTempUsageDetail_20' ) end [2024-12-28 15:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:14:23] Production.INFO: ==26806== Releasing lock... [2024-12-28 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:14:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:15:05 [end_date_ymd] => 2024-12-28 15:15:05 [RateCDR] => 1 ) [2024-12-28 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:15:05' and `end` < '2024-12-28 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:15:18] Production.INFO: count ==1923 [2024-12-28 15:15:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:15:05 - End Time 2024-12-28 15:15:05 [2024-12-28 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122384', 'tblTempUsageDetail_20' ) start [2024-12-28 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122384', 'tblTempUsageDetail_20' ) end [2024-12-28 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122384', 'tblTempVendorCDR_20' ) start [2024-12-28 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122384', 'tblTempVendorCDR_20' ) end [2024-12-28 15:15:19] Production.INFO: ProcessCDR(1,14122384,1,1,2) [2024-12-28 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122384', 'tblTempUsageDetail_20' ) start [2024-12-28 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122384', 'tblTempUsageDetail_20' ) end [2024-12-28 15:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:15:23] Production.INFO: ==26957== Releasing lock... [2024-12-28 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:15:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:16:05 [end_date_ymd] => 2024-12-28 15:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:16:05' and `end` < '2024-12-28 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-28 15:16:17] Production.INFO: count ==1927 [2024-12-28 15:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:16:05 - End Time 2024-12-28 15:16:05 [2024-12-28 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122389', 'tblTempUsageDetail_20' ) start [2024-12-28 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122389', 'tblTempUsageDetail_20' ) end [2024-12-28 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122389', 'tblTempVendorCDR_20' ) start [2024-12-28 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122389', 'tblTempVendorCDR_20' ) end [2024-12-28 15:16:18] Production.INFO: ProcessCDR(1,14122389,1,1,2) [2024-12-28 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122389', 'tblTempUsageDetail_20' ) start [2024-12-28 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122389', 'tblTempUsageDetail_20' ) end [2024-12-28 15:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:16:21] Production.INFO: ==27028== Releasing lock... [2024-12-28 15:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:16:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:17:05 [end_date_ymd] => 2024-12-28 15:17:05 [RateCDR] => 1 ) [2024-12-28 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:17:05' and `end` < '2024-12-28 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:17:19] Production.INFO: count ==1929 [2024-12-28 15:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:17:05 - End Time 2024-12-28 15:17:05 [2024-12-28 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122394', 'tblTempUsageDetail_20' ) start [2024-12-28 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122394', 'tblTempUsageDetail_20' ) end [2024-12-28 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122394', 'tblTempVendorCDR_20' ) start [2024-12-28 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122394', 'tblTempVendorCDR_20' ) end [2024-12-28 15:17:20] Production.INFO: ProcessCDR(1,14122394,1,1,2) [2024-12-28 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122394', 'tblTempUsageDetail_20' ) start [2024-12-28 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122394', 'tblTempUsageDetail_20' ) end [2024-12-28 15:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:17:23] Production.INFO: ==27098== Releasing lock... [2024-12-28 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:17:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:18:05 [end_date_ymd] => 2024-12-28 15:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:18:05' and `end` < '2024-12-28 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-28 15:18:17] Production.INFO: count ==1941 [2024-12-28 15:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:18:05 - End Time 2024-12-28 15:18:05 [2024-12-28 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122399', 'tblTempUsageDetail_20' ) start [2024-12-28 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122399', 'tblTempUsageDetail_20' ) end [2024-12-28 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122399', 'tblTempVendorCDR_20' ) start [2024-12-28 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122399', 'tblTempVendorCDR_20' ) end [2024-12-28 15:18:18] Production.INFO: ProcessCDR(1,14122399,1,1,2) [2024-12-28 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122399', 'tblTempUsageDetail_20' ) start [2024-12-28 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122399', 'tblTempUsageDetail_20' ) end [2024-12-28 15:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:18:21] Production.INFO: ==27171== Releasing lock... [2024-12-28 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:18:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:19:05 [end_date_ymd] => 2024-12-28 15:19:05 [RateCDR] => 1 ) [2024-12-28 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:19:05' and `end` < '2024-12-28 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:19:17] Production.INFO: count ==1934 [2024-12-28 15:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:19:05 - End Time 2024-12-28 15:19:05 [2024-12-28 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122404', 'tblTempUsageDetail_20' ) start [2024-12-28 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122404', 'tblTempUsageDetail_20' ) end [2024-12-28 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122404', 'tblTempVendorCDR_20' ) start [2024-12-28 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122404', 'tblTempVendorCDR_20' ) end [2024-12-28 15:19:18] Production.INFO: ProcessCDR(1,14122404,1,1,2) [2024-12-28 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122404', 'tblTempUsageDetail_20' ) start [2024-12-28 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122404', 'tblTempUsageDetail_20' ) end [2024-12-28 15:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:19:21] Production.INFO: ==27243== Releasing lock... [2024-12-28 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:19:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:20:05 [end_date_ymd] => 2024-12-28 15:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:20:05' and `end` < '2024-12-28 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-28 15:20:18] Production.INFO: count ==1920 [2024-12-28 15:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:20:05 - End Time 2024-12-28 15:20:05 [2024-12-28 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122410', 'tblTempUsageDetail_20' ) start [2024-12-28 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122410', 'tblTempUsageDetail_20' ) end [2024-12-28 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122410', 'tblTempVendorCDR_20' ) start [2024-12-28 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122410', 'tblTempVendorCDR_20' ) end [2024-12-28 15:20:19] Production.INFO: ProcessCDR(1,14122410,1,1,2) [2024-12-28 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122410', 'tblTempUsageDetail_20' ) start [2024-12-28 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122410', 'tblTempUsageDetail_20' ) end [2024-12-28 15:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:20:22] Production.INFO: ==27321== Releasing lock... [2024-12-28 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:20:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:21:05 [end_date_ymd] => 2024-12-28 15:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:21:05' and `end` < '2024-12-28 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-28 15:21:17] Production.INFO: count ==1937 [2024-12-28 15:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:21:05 - End Time 2024-12-28 15:21:05 [2024-12-28 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122415', 'tblTempUsageDetail_20' ) start [2024-12-28 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122415', 'tblTempUsageDetail_20' ) end [2024-12-28 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122415', 'tblTempVendorCDR_20' ) start [2024-12-28 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122415', 'tblTempVendorCDR_20' ) end [2024-12-28 15:21:18] Production.INFO: ProcessCDR(1,14122415,1,1,2) [2024-12-28 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122415', 'tblTempUsageDetail_20' ) start [2024-12-28 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122415', 'tblTempUsageDetail_20' ) end [2024-12-28 15:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:21:23] Production.INFO: ==27398== Releasing lock... [2024-12-28 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:21:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:22:05 [end_date_ymd] => 2024-12-28 15:22:05 [RateCDR] => 1 ) [2024-12-28 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:22:05' and `end` < '2024-12-28 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-28 15:22:18] Production.INFO: count ==1934 [2024-12-28 15:22:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:22:05 - End Time 2024-12-28 15:22:05 [2024-12-28 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122420', 'tblTempUsageDetail_20' ) start [2024-12-28 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122420', 'tblTempUsageDetail_20' ) end [2024-12-28 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122420', 'tblTempVendorCDR_20' ) start [2024-12-28 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122420', 'tblTempVendorCDR_20' ) end [2024-12-28 15:22:19] Production.INFO: ProcessCDR(1,14122420,1,1,2) [2024-12-28 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122420', 'tblTempUsageDetail_20' ) start [2024-12-28 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122420', 'tblTempUsageDetail_20' ) end [2024-12-28 15:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:22:23] Production.INFO: ==27474== Releasing lock... [2024-12-28 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:22:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:23:05 [end_date_ymd] => 2024-12-28 15:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:23:05' and `end` < '2024-12-28 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-28 15:23:18] Production.INFO: count ==1936 [2024-12-28 15:23:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:23:05 - End Time 2024-12-28 15:23:05 [2024-12-28 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122425', 'tblTempUsageDetail_20' ) start [2024-12-28 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122425', 'tblTempUsageDetail_20' ) end [2024-12-28 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122425', 'tblTempVendorCDR_20' ) start [2024-12-28 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122425', 'tblTempVendorCDR_20' ) end [2024-12-28 15:23:19] Production.INFO: ProcessCDR(1,14122425,1,1,2) [2024-12-28 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122425', 'tblTempUsageDetail_20' ) start [2024-12-28 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122425', 'tblTempUsageDetail_20' ) end [2024-12-28 15:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:23:23] Production.INFO: ==27553== Releasing lock... [2024-12-28 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:23:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:24:05 [end_date_ymd] => 2024-12-28 15:24:05 [RateCDR] => 1 ) [2024-12-28 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:24:05' and `end` < '2024-12-28 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:24:18] Production.INFO: count ==1938 [2024-12-28 15:24:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:24:05 - End Time 2024-12-28 15:24:05 [2024-12-28 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122430', 'tblTempUsageDetail_20' ) start [2024-12-28 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122430', 'tblTempUsageDetail_20' ) end [2024-12-28 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122430', 'tblTempVendorCDR_20' ) start [2024-12-28 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122430', 'tblTempVendorCDR_20' ) end [2024-12-28 15:24:19] Production.INFO: ProcessCDR(1,14122430,1,1,2) [2024-12-28 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122430', 'tblTempUsageDetail_20' ) start [2024-12-28 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122430', 'tblTempUsageDetail_20' ) end [2024-12-28 15:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:24:23] Production.INFO: ==27627== Releasing lock... [2024-12-28 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:24:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:25:05 [end_date_ymd] => 2024-12-28 15:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:25:05' and `end` < '2024-12-28 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-28 15:25:17] Production.INFO: count ==1939 [2024-12-28 15:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:25:05 - End Time 2024-12-28 15:25:05 [2024-12-28 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122435', 'tblTempUsageDetail_20' ) start [2024-12-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122435', 'tblTempUsageDetail_20' ) end [2024-12-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122435', 'tblTempVendorCDR_20' ) start [2024-12-28 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122435', 'tblTempVendorCDR_20' ) end [2024-12-28 15:25:18] Production.INFO: ProcessCDR(1,14122435,1,1,2) [2024-12-28 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122435', 'tblTempUsageDetail_20' ) start [2024-12-28 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122435', 'tblTempUsageDetail_20' ) end [2024-12-28 15:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:25:23] Production.INFO: ==27698== Releasing lock... [2024-12-28 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:25:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:26:05 [end_date_ymd] => 2024-12-28 15:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:26:05' and `end` < '2024-12-28 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-28 15:26:17] Production.INFO: count ==1938 [2024-12-28 15:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:26:05 - End Time 2024-12-28 15:26:05 [2024-12-28 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122440', 'tblTempUsageDetail_20' ) start [2024-12-28 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122440', 'tblTempUsageDetail_20' ) end [2024-12-28 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122440', 'tblTempVendorCDR_20' ) start [2024-12-28 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122440', 'tblTempVendorCDR_20' ) end [2024-12-28 15:26:18] Production.INFO: ProcessCDR(1,14122440,1,1,2) [2024-12-28 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122440', 'tblTempUsageDetail_20' ) start [2024-12-28 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122440', 'tblTempUsageDetail_20' ) end [2024-12-28 15:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:26:21] Production.INFO: ==27773== Releasing lock... [2024-12-28 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:26:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:27:05 [end_date_ymd] => 2024-12-28 15:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:27:05' and `end` < '2024-12-28 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-28 15:27:17] Production.INFO: count ==1939 [2024-12-28 15:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:27:05 - End Time 2024-12-28 15:27:05 [2024-12-28 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122445', 'tblTempUsageDetail_20' ) start [2024-12-28 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122445', 'tblTempUsageDetail_20' ) end [2024-12-28 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122445', 'tblTempVendorCDR_20' ) start [2024-12-28 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122445', 'tblTempVendorCDR_20' ) end [2024-12-28 15:27:18] Production.INFO: ProcessCDR(1,14122445,1,1,2) [2024-12-28 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122445', 'tblTempUsageDetail_20' ) start [2024-12-28 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122445', 'tblTempUsageDetail_20' ) end [2024-12-28 15:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:27:22] Production.INFO: ==27845== Releasing lock... [2024-12-28 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:27:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:28:04 [end_date_ymd] => 2024-12-28 15:28:04 [RateCDR] => 1 ) [2024-12-28 15: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-28 12:28:04' and `end` < '2024-12-28 15: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-28 15:28:19] Production.INFO: count ==1938 [2024-12-28 15:28:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:28:04 - End Time 2024-12-28 15:28:04 [2024-12-28 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122450', 'tblTempUsageDetail_20' ) start [2024-12-28 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122450', 'tblTempUsageDetail_20' ) end [2024-12-28 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122450', 'tblTempVendorCDR_20' ) start [2024-12-28 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122450', 'tblTempVendorCDR_20' ) end [2024-12-28 15:28:20] Production.INFO: ProcessCDR(1,14122450,1,1,2) [2024-12-28 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122450', 'tblTempUsageDetail_20' ) start [2024-12-28 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122450', 'tblTempUsageDetail_20' ) end [2024-12-28 15:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:28:23] Production.INFO: ==27920== Releasing lock... [2024-12-28 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:28:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:29:05 [end_date_ymd] => 2024-12-28 15:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:29:05' and `end` < '2024-12-28 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-28 15:29:20] Production.INFO: count ==1917 [2024-12-28 15:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:29:05 - End Time 2024-12-28 15:29:05 [2024-12-28 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122455', 'tblTempUsageDetail_20' ) start [2024-12-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122455', 'tblTempUsageDetail_20' ) end [2024-12-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122455', 'tblTempVendorCDR_20' ) start [2024-12-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122455', 'tblTempVendorCDR_20' ) end [2024-12-28 15:29:20] Production.INFO: ProcessCDR(1,14122455,1,1,2) [2024-12-28 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122455', 'tblTempUsageDetail_20' ) start [2024-12-28 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122455', 'tblTempUsageDetail_20' ) end [2024-12-28 15:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:29:23] Production.INFO: ==28035== Releasing lock... [2024-12-28 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:29:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-28 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:30:05 [end_date_ymd] => 2024-12-28 15:30:05 [RateCDR] => 1 ) [2024-12-28 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:30:05' and `end` < '2024-12-28 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:30:18] Production.INFO: count ==1899 [2024-12-28 15:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:30:05 - End Time 2024-12-28 15:30:05 [2024-12-28 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122460', 'tblTempUsageDetail_20' ) start [2024-12-28 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122460', 'tblTempUsageDetail_20' ) end [2024-12-28 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122460', 'tblTempVendorCDR_20' ) start [2024-12-28 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122460', 'tblTempVendorCDR_20' ) end [2024-12-28 15:30:18] Production.INFO: ProcessCDR(1,14122460,1,1,2) [2024-12-28 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122460', 'tblTempUsageDetail_20' ) start [2024-12-28 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122460', 'tblTempUsageDetail_20' ) end [2024-12-28 15:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:30:21] Production.INFO: ==28110== Releasing lock... [2024-12-28 15:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:30:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:31:05 [end_date_ymd] => 2024-12-28 15:31:05 [RateCDR] => 1 ) [2024-12-28 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:31:05' and `end` < '2024-12-28 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:31:18] Production.INFO: count ==1888 [2024-12-28 15:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:31:05 - End Time 2024-12-28 15:31:05 [2024-12-28 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122466', 'tblTempUsageDetail_20' ) start [2024-12-28 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122466', 'tblTempUsageDetail_20' ) end [2024-12-28 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122466', 'tblTempVendorCDR_20' ) start [2024-12-28 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122466', 'tblTempVendorCDR_20' ) end [2024-12-28 15:31:19] Production.INFO: ProcessCDR(1,14122466,1,1,2) [2024-12-28 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122466', 'tblTempUsageDetail_20' ) start [2024-12-28 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122466', 'tblTempUsageDetail_20' ) end [2024-12-28 15:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:31:22] Production.INFO: ==28183== Releasing lock... [2024-12-28 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:31:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:32:04 [end_date_ymd] => 2024-12-28 15:32:04 [RateCDR] => 1 ) [2024-12-28 15: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-28 12:32:04' and `end` < '2024-12-28 15: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-28 15:32:17] Production.INFO: count ==1882 [2024-12-28 15:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:32:04 - End Time 2024-12-28 15:32:04 [2024-12-28 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122471', 'tblTempUsageDetail_20' ) start [2024-12-28 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122471', 'tblTempUsageDetail_20' ) end [2024-12-28 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122471', 'tblTempVendorCDR_20' ) start [2024-12-28 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122471', 'tblTempVendorCDR_20' ) end [2024-12-28 15:32:17] Production.INFO: ProcessCDR(1,14122471,1,1,2) [2024-12-28 15:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122471', 'tblTempUsageDetail_20' ) start [2024-12-28 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122471', 'tblTempUsageDetail_20' ) end [2024-12-28 15:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:32:22] Production.INFO: ==28258== Releasing lock... [2024-12-28 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:32:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:33:05 [end_date_ymd] => 2024-12-28 15:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:33:05' and `end` < '2024-12-28 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-28 15:33:18] Production.INFO: count ==1880 [2024-12-28 15:33:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:33:05 - End Time 2024-12-28 15:33:05 [2024-12-28 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122476', 'tblTempUsageDetail_20' ) start [2024-12-28 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122476', 'tblTempUsageDetail_20' ) end [2024-12-28 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122476', 'tblTempVendorCDR_20' ) start [2024-12-28 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122476', 'tblTempVendorCDR_20' ) end [2024-12-28 15:33:19] Production.INFO: ProcessCDR(1,14122476,1,1,2) [2024-12-28 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122476', 'tblTempUsageDetail_20' ) start [2024-12-28 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122476', 'tblTempUsageDetail_20' ) end [2024-12-28 15:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:33:23] Production.INFO: ==28328== Releasing lock... [2024-12-28 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:33:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:34:05 [end_date_ymd] => 2024-12-28 15:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:34:05' and `end` < '2024-12-28 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-28 15:34:18] Production.INFO: count ==1881 [2024-12-28 15:34:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:34:05 - End Time 2024-12-28 15:34:05 [2024-12-28 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122481', 'tblTempUsageDetail_20' ) start [2024-12-28 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122481', 'tblTempUsageDetail_20' ) end [2024-12-28 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122481', 'tblTempVendorCDR_20' ) start [2024-12-28 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122481', 'tblTempVendorCDR_20' ) end [2024-12-28 15:34:19] Production.INFO: ProcessCDR(1,14122481,1,1,2) [2024-12-28 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122481', 'tblTempUsageDetail_20' ) start [2024-12-28 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122481', 'tblTempUsageDetail_20' ) end [2024-12-28 15:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:34:23] Production.INFO: ==28402== Releasing lock... [2024-12-28 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:34:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:35:05 [end_date_ymd] => 2024-12-28 15:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:35:05' and `end` < '2024-12-28 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-28 15:35:17] Production.INFO: count ==1872 [2024-12-28 15:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:35:05 - End Time 2024-12-28 15:35:05 [2024-12-28 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122486', 'tblTempUsageDetail_20' ) start [2024-12-28 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122486', 'tblTempUsageDetail_20' ) end [2024-12-28 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122486', 'tblTempVendorCDR_20' ) start [2024-12-28 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122486', 'tblTempVendorCDR_20' ) end [2024-12-28 15:35:18] Production.INFO: ProcessCDR(1,14122486,1,1,2) [2024-12-28 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122486', 'tblTempUsageDetail_20' ) start [2024-12-28 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122486', 'tblTempUsageDetail_20' ) end [2024-12-28 15:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:35:22] Production.INFO: ==28476== Releasing lock... [2024-12-28 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:35:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:36:05 [end_date_ymd] => 2024-12-28 15:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:36:05' and `end` < '2024-12-28 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-28 15:36:18] Production.INFO: count ==1867 [2024-12-28 15:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:36:05 - End Time 2024-12-28 15:36:05 [2024-12-28 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122491', 'tblTempUsageDetail_20' ) start [2024-12-28 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122491', 'tblTempUsageDetail_20' ) end [2024-12-28 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122491', 'tblTempVendorCDR_20' ) start [2024-12-28 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122491', 'tblTempVendorCDR_20' ) end [2024-12-28 15:36:18] Production.INFO: ProcessCDR(1,14122491,1,1,2) [2024-12-28 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122491', 'tblTempUsageDetail_20' ) start [2024-12-28 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122491', 'tblTempUsageDetail_20' ) end [2024-12-28 15:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:36:23] Production.INFO: ==28547== Releasing lock... [2024-12-28 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:36:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:37:04 [end_date_ymd] => 2024-12-28 15:37:04 [RateCDR] => 1 ) [2024-12-28 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:37:04' and `end` < '2024-12-28 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:37:17] Production.INFO: count ==1866 [2024-12-28 15:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:37:04 - End Time 2024-12-28 15:37:04 [2024-12-28 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122496', 'tblTempUsageDetail_20' ) start [2024-12-28 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122496', 'tblTempUsageDetail_20' ) end [2024-12-28 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122496', 'tblTempVendorCDR_20' ) start [2024-12-28 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122496', 'tblTempVendorCDR_20' ) end [2024-12-28 15:37:18] Production.INFO: ProcessCDR(1,14122496,1,1,2) [2024-12-28 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122496', 'tblTempUsageDetail_20' ) start [2024-12-28 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122496', 'tblTempUsageDetail_20' ) end [2024-12-28 15:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:37:22] Production.INFO: ==28617== Releasing lock... [2024-12-28 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:37:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:38:05 [end_date_ymd] => 2024-12-28 15:38:05 [RateCDR] => 1 ) [2024-12-28 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:38:05' and `end` < '2024-12-28 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:38:18] Production.INFO: count ==1865 [2024-12-28 15:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:38:05 - End Time 2024-12-28 15:38:05 [2024-12-28 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122501', 'tblTempUsageDetail_20' ) start [2024-12-28 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122501', 'tblTempUsageDetail_20' ) end [2024-12-28 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122501', 'tblTempVendorCDR_20' ) start [2024-12-28 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122501', 'tblTempVendorCDR_20' ) end [2024-12-28 15:38:18] Production.INFO: ProcessCDR(1,14122501,1,1,2) [2024-12-28 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122501', 'tblTempUsageDetail_20' ) start [2024-12-28 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122501', 'tblTempUsageDetail_20' ) end [2024-12-28 15:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:38:23] Production.INFO: ==28688== Releasing lock... [2024-12-28 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:38:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:39:05 [end_date_ymd] => 2024-12-28 15:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:39:05' and `end` < '2024-12-28 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-28 15:39:18] Production.INFO: count ==1863 [2024-12-28 15:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:39:05 - End Time 2024-12-28 15:39:05 [2024-12-28 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122506', 'tblTempUsageDetail_20' ) start [2024-12-28 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122506', 'tblTempUsageDetail_20' ) end [2024-12-28 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122506', 'tblTempVendorCDR_20' ) start [2024-12-28 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122506', 'tblTempVendorCDR_20' ) end [2024-12-28 15:39:18] Production.INFO: ProcessCDR(1,14122506,1,1,2) [2024-12-28 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122506', 'tblTempUsageDetail_20' ) start [2024-12-28 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122506', 'tblTempUsageDetail_20' ) end [2024-12-28 15:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:39:23] Production.INFO: ==28760== Releasing lock... [2024-12-28 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:39:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:40:05 [end_date_ymd] => 2024-12-28 15:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:40:05' and `end` < '2024-12-28 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-28 15:40:18] Production.INFO: count ==1855 [2024-12-28 15:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:40:05 - End Time 2024-12-28 15:40:05 [2024-12-28 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122512', 'tblTempUsageDetail_20' ) start [2024-12-28 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122512', 'tblTempUsageDetail_20' ) end [2024-12-28 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122512', 'tblTempVendorCDR_20' ) start [2024-12-28 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122512', 'tblTempVendorCDR_20' ) end [2024-12-28 15:40:19] Production.INFO: ProcessCDR(1,14122512,1,1,2) [2024-12-28 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122512', 'tblTempUsageDetail_20' ) start [2024-12-28 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122512', 'tblTempUsageDetail_20' ) end [2024-12-28 15:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:40:22] Production.INFO: ==28833== Releasing lock... [2024-12-28 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:40:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:41:05 [end_date_ymd] => 2024-12-28 15:41:05 [RateCDR] => 1 ) [2024-12-28 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:41:05' and `end` < '2024-12-28 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:41:18] Production.INFO: count ==1873 [2024-12-28 15:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:41:05 - End Time 2024-12-28 15:41:05 [2024-12-28 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122517', 'tblTempUsageDetail_20' ) start [2024-12-28 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122517', 'tblTempUsageDetail_20' ) end [2024-12-28 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122517', 'tblTempVendorCDR_20' ) start [2024-12-28 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122517', 'tblTempVendorCDR_20' ) end [2024-12-28 15:41:18] Production.INFO: ProcessCDR(1,14122517,1,1,2) [2024-12-28 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122517', 'tblTempUsageDetail_20' ) start [2024-12-28 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122517', 'tblTempUsageDetail_20' ) end [2024-12-28 15:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:41:23] Production.INFO: ==28906== Releasing lock... [2024-12-28 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:41:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:42:05 [end_date_ymd] => 2024-12-28 15:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:42:05' and `end` < '2024-12-28 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-28 15:42:17] Production.INFO: count ==1871 [2024-12-28 15:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:42:05 - End Time 2024-12-28 15:42:05 [2024-12-28 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122522', 'tblTempUsageDetail_20' ) start [2024-12-28 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122522', 'tblTempUsageDetail_20' ) end [2024-12-28 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122522', 'tblTempVendorCDR_20' ) start [2024-12-28 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122522', 'tblTempVendorCDR_20' ) end [2024-12-28 15:42:18] Production.INFO: ProcessCDR(1,14122522,1,1,2) [2024-12-28 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122522', 'tblTempUsageDetail_20' ) start [2024-12-28 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122522', 'tblTempUsageDetail_20' ) end [2024-12-28 15:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:42:22] Production.INFO: ==28995== Releasing lock... [2024-12-28 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:42:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:43:05 [end_date_ymd] => 2024-12-28 15:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:43:05' and `end` < '2024-12-28 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-28 15:43:17] Production.INFO: count ==1867 [2024-12-28 15:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:43:05 - End Time 2024-12-28 15:43:05 [2024-12-28 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122527', 'tblTempUsageDetail_20' ) start [2024-12-28 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122527', 'tblTempUsageDetail_20' ) end [2024-12-28 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122527', 'tblTempVendorCDR_20' ) start [2024-12-28 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122527', 'tblTempVendorCDR_20' ) end [2024-12-28 15:43:18] Production.INFO: ProcessCDR(1,14122527,1,1,2) [2024-12-28 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122527', 'tblTempUsageDetail_20' ) start [2024-12-28 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122527', 'tblTempUsageDetail_20' ) end [2024-12-28 15:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:43:21] Production.INFO: ==29098== Releasing lock... [2024-12-28 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:43:21] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:44:04 [end_date_ymd] => 2024-12-28 15:44:04 [RateCDR] => 1 ) [2024-12-28 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:44:04' and `end` < '2024-12-28 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:44:18] Production.INFO: count ==1870 [2024-12-28 15:44:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:44:04 - End Time 2024-12-28 15:44:04 [2024-12-28 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122532', 'tblTempUsageDetail_20' ) start [2024-12-28 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122532', 'tblTempUsageDetail_20' ) end [2024-12-28 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122532', 'tblTempVendorCDR_20' ) start [2024-12-28 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122532', 'tblTempVendorCDR_20' ) end [2024-12-28 15:44:18] Production.INFO: ProcessCDR(1,14122532,1,1,2) [2024-12-28 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122532', 'tblTempUsageDetail_20' ) start [2024-12-28 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122532', 'tblTempUsageDetail_20' ) end [2024-12-28 15:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:44:23] Production.INFO: ==29199== Releasing lock... [2024-12-28 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:44:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:45:05 [end_date_ymd] => 2024-12-28 15:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:45:05' and `end` < '2024-12-28 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-28 15:45:17] Production.INFO: count ==1864 [2024-12-28 15:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:45:05 - End Time 2024-12-28 15:45:05 [2024-12-28 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122537', 'tblTempUsageDetail_20' ) start [2024-12-28 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122537', 'tblTempUsageDetail_20' ) end [2024-12-28 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122537', 'tblTempVendorCDR_20' ) start [2024-12-28 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122537', 'tblTempVendorCDR_20' ) end [2024-12-28 15:45:18] Production.INFO: ProcessCDR(1,14122537,1,1,2) [2024-12-28 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122537', 'tblTempUsageDetail_20' ) start [2024-12-28 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122537', 'tblTempUsageDetail_20' ) end [2024-12-28 15:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:45:22] Production.INFO: ==29344== Releasing lock... [2024-12-28 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:45:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:46:05 [end_date_ymd] => 2024-12-28 15:46:05 [RateCDR] => 1 ) [2024-12-28 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:46:05' and `end` < '2024-12-28 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:46:18] Production.INFO: count ==1868 [2024-12-28 15:46:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:46:05 - End Time 2024-12-28 15:46:05 [2024-12-28 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122542', 'tblTempUsageDetail_20' ) start [2024-12-28 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122542', 'tblTempUsageDetail_20' ) end [2024-12-28 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122542', 'tblTempVendorCDR_20' ) start [2024-12-28 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122542', 'tblTempVendorCDR_20' ) end [2024-12-28 15:46:19] Production.INFO: ProcessCDR(1,14122542,1,1,2) [2024-12-28 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122542', 'tblTempUsageDetail_20' ) start [2024-12-28 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122542', 'tblTempUsageDetail_20' ) end [2024-12-28 15:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:46:24] Production.INFO: ==29447== Releasing lock... [2024-12-28 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:46:24] Production.INFO: 42 MB #Memory Used# [2024-12-28 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:47:05 [end_date_ymd] => 2024-12-28 15:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:47:05' and `end` < '2024-12-28 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-28 15:47:18] Production.INFO: count ==1867 [2024-12-28 15:47:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:47:05 - End Time 2024-12-28 15:47:05 [2024-12-28 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122547', 'tblTempUsageDetail_20' ) start [2024-12-28 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122547', 'tblTempUsageDetail_20' ) end [2024-12-28 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122547', 'tblTempVendorCDR_20' ) start [2024-12-28 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122547', 'tblTempVendorCDR_20' ) end [2024-12-28 15:47:19] Production.INFO: ProcessCDR(1,14122547,1,1,2) [2024-12-28 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122547', 'tblTempUsageDetail_20' ) start [2024-12-28 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122547', 'tblTempUsageDetail_20' ) end [2024-12-28 15:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:47:22] Production.INFO: ==29552== Releasing lock... [2024-12-28 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:47:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:48:05 [end_date_ymd] => 2024-12-28 15:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:48:05' and `end` < '2024-12-28 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-28 15:48:18] Production.INFO: count ==1878 [2024-12-28 15:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:48:05 - End Time 2024-12-28 15:48:05 [2024-12-28 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122552', 'tblTempUsageDetail_20' ) start [2024-12-28 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122552', 'tblTempUsageDetail_20' ) end [2024-12-28 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122552', 'tblTempVendorCDR_20' ) start [2024-12-28 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122552', 'tblTempVendorCDR_20' ) end [2024-12-28 15:48:18] Production.INFO: ProcessCDR(1,14122552,1,1,2) [2024-12-28 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122552', 'tblTempUsageDetail_20' ) start [2024-12-28 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122552', 'tblTempUsageDetail_20' ) end [2024-12-28 15:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:48:22] Production.INFO: ==29659== Releasing lock... [2024-12-28 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:48:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:49:04 [end_date_ymd] => 2024-12-28 15:49:04 [RateCDR] => 1 ) [2024-12-28 15: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-28 12:49:04' and `end` < '2024-12-28 15: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-28 15:49:17] Production.INFO: count ==1883 [2024-12-28 15:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:49:04 - End Time 2024-12-28 15:49:04 [2024-12-28 15:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122554', 'tblTempUsageDetail_20' ) start [2024-12-28 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122554', 'tblTempUsageDetail_20' ) end [2024-12-28 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122554', 'tblTempVendorCDR_20' ) start [2024-12-28 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122554', 'tblTempVendorCDR_20' ) end [2024-12-28 15:49:18] Production.INFO: ProcessCDR(1,14122554,1,1,2) [2024-12-28 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122554', 'tblTempUsageDetail_20' ) start [2024-12-28 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122554', 'tblTempUsageDetail_20' ) end [2024-12-28 15:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:49:22] Production.INFO: ==29759== Releasing lock... [2024-12-28 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:49:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:50:05 [end_date_ymd] => 2024-12-28 15:50:05 [RateCDR] => 1 ) [2024-12-28 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:50:05' and `end` < '2024-12-28 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:50:18] Production.INFO: count ==1884 [2024-12-28 15:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:50:05 - End Time 2024-12-28 15:50:05 [2024-12-28 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122562', 'tblTempUsageDetail_20' ) start [2024-12-28 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122562', 'tblTempUsageDetail_20' ) end [2024-12-28 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122562', 'tblTempVendorCDR_20' ) start [2024-12-28 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122562', 'tblTempVendorCDR_20' ) end [2024-12-28 15:50:19] Production.INFO: ProcessCDR(1,14122562,1,1,2) [2024-12-28 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122562', 'tblTempUsageDetail_20' ) start [2024-12-28 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122562', 'tblTempUsageDetail_20' ) end [2024-12-28 15:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:50:23] Production.INFO: ==29864== Releasing lock... [2024-12-28 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:50:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:51:05 [end_date_ymd] => 2024-12-28 15:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:51:05' and `end` < '2024-12-28 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-28 15:51:18] Production.INFO: count ==1881 [2024-12-28 15:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:51:05 - End Time 2024-12-28 15:51:05 [2024-12-28 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122568', 'tblTempUsageDetail_20' ) start [2024-12-28 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122568', 'tblTempUsageDetail_20' ) end [2024-12-28 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122568', 'tblTempVendorCDR_20' ) start [2024-12-28 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122568', 'tblTempVendorCDR_20' ) end [2024-12-28 15:51:18] Production.INFO: ProcessCDR(1,14122568,1,1,2) [2024-12-28 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122568', 'tblTempUsageDetail_20' ) start [2024-12-28 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122568', 'tblTempUsageDetail_20' ) end [2024-12-28 15:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:51:23] Production.INFO: ==29971== Releasing lock... [2024-12-28 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:51:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:52:04 [end_date_ymd] => 2024-12-28 15:52:04 [RateCDR] => 1 ) [2024-12-28 15:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:52:04' and `end` < '2024-12-28 15:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:52:17] Production.INFO: count ==1880 [2024-12-28 15:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:52:04 - End Time 2024-12-28 15:52:04 [2024-12-28 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122573', 'tblTempUsageDetail_20' ) start [2024-12-28 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122573', 'tblTempUsageDetail_20' ) end [2024-12-28 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122573', 'tblTempVendorCDR_20' ) start [2024-12-28 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122573', 'tblTempVendorCDR_20' ) end [2024-12-28 15:52:18] Production.INFO: ProcessCDR(1,14122573,1,1,2) [2024-12-28 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122573', 'tblTempUsageDetail_20' ) start [2024-12-28 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122573', 'tblTempUsageDetail_20' ) end [2024-12-28 15:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:52:22] Production.INFO: ==30072== Releasing lock... [2024-12-28 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:52:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:53:05 [end_date_ymd] => 2024-12-28 15:53:05 [RateCDR] => 1 ) [2024-12-28 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 12:53:05' and `end` < '2024-12-28 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 15:53:20] Production.INFO: count ==1881 [2024-12-28 15:53:21] Production.ERROR: pbx CDR StartTime 2024-12-28 12:53:05 - End Time 2024-12-28 15:53:05 [2024-12-28 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122578', 'tblTempUsageDetail_20' ) start [2024-12-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122578', 'tblTempUsageDetail_20' ) end [2024-12-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122578', 'tblTempVendorCDR_20' ) start [2024-12-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122578', 'tblTempVendorCDR_20' ) end [2024-12-28 15:53:21] Production.INFO: ProcessCDR(1,14122578,1,1,2) [2024-12-28 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122578', 'tblTempUsageDetail_20' ) start [2024-12-28 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122578', 'tblTempUsageDetail_20' ) end [2024-12-28 15:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:53:24] Production.INFO: ==30175== Releasing lock... [2024-12-28 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:53:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:54:04 [end_date_ymd] => 2024-12-28 15:54:04 [RateCDR] => 1 ) [2024-12-28 15: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-28 12:54:04' and `end` < '2024-12-28 15: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-28 15:54:17] Production.INFO: count ==1875 [2024-12-28 15:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 12:54:04 - End Time 2024-12-28 15:54:04 [2024-12-28 15:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122583', 'tblTempUsageDetail_20' ) start [2024-12-28 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122583', 'tblTempUsageDetail_20' ) end [2024-12-28 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122583', 'tblTempVendorCDR_20' ) start [2024-12-28 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122583', 'tblTempVendorCDR_20' ) end [2024-12-28 15:54:17] Production.INFO: ProcessCDR(1,14122583,1,1,2) [2024-12-28 15:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122583', 'tblTempUsageDetail_20' ) start [2024-12-28 15:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122583', 'tblTempUsageDetail_20' ) end [2024-12-28 15:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:54:20] Production.INFO: ==30279== Releasing lock... [2024-12-28 15:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:54:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:55:05 [end_date_ymd] => 2024-12-28 15:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:55:05' and `end` < '2024-12-28 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-28 15:55:17] Production.INFO: count ==1894 [2024-12-28 15:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:55:05 - End Time 2024-12-28 15:55:05 [2024-12-28 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122588', 'tblTempUsageDetail_20' ) start [2024-12-28 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122588', 'tblTempUsageDetail_20' ) end [2024-12-28 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122588', 'tblTempVendorCDR_20' ) start [2024-12-28 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122588', 'tblTempVendorCDR_20' ) end [2024-12-28 15:55:18] Production.INFO: ProcessCDR(1,14122588,1,1,2) [2024-12-28 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122588', 'tblTempUsageDetail_20' ) start [2024-12-28 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122588', 'tblTempUsageDetail_20' ) end [2024-12-28 15:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:55:21] Production.INFO: ==30380== Releasing lock... [2024-12-28 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:55:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:56:05 [end_date_ymd] => 2024-12-28 15:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:56:05' and `end` < '2024-12-28 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-28 15:56:18] Production.INFO: count ==1894 [2024-12-28 15:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:56:05 - End Time 2024-12-28 15:56:05 [2024-12-28 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122593', 'tblTempUsageDetail_20' ) start [2024-12-28 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122593', 'tblTempUsageDetail_20' ) end [2024-12-28 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122593', 'tblTempVendorCDR_20' ) start [2024-12-28 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122593', 'tblTempVendorCDR_20' ) end [2024-12-28 15:56:18] Production.INFO: ProcessCDR(1,14122593,1,1,2) [2024-12-28 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122593', 'tblTempUsageDetail_20' ) start [2024-12-28 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122593', 'tblTempUsageDetail_20' ) end [2024-12-28 15:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:56:23] Production.INFO: ==30484== Releasing lock... [2024-12-28 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:56:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:57:05 [end_date_ymd] => 2024-12-28 15:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:57:05' and `end` < '2024-12-28 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-28 15:57:17] Production.INFO: count ==1895 [2024-12-28 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 12:57:05 - End Time 2024-12-28 15:57:05 [2024-12-28 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122598', 'tblTempUsageDetail_20' ) start [2024-12-28 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122598', 'tblTempUsageDetail_20' ) end [2024-12-28 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122598', 'tblTempVendorCDR_20' ) start [2024-12-28 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122598', 'tblTempVendorCDR_20' ) end [2024-12-28 15:57:18] Production.INFO: ProcessCDR(1,14122598,1,1,2) [2024-12-28 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122598', 'tblTempUsageDetail_20' ) start [2024-12-28 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122598', 'tblTempUsageDetail_20' ) end [2024-12-28 15:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:57:21] Production.INFO: ==30589== Releasing lock... [2024-12-28 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:57:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:58:05 [end_date_ymd] => 2024-12-28 15:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:58:05' and `end` < '2024-12-28 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-28 15:58:19] Production.INFO: count ==1891 [2024-12-28 15:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 12:58:05 - End Time 2024-12-28 15:58:05 [2024-12-28 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122603', 'tblTempUsageDetail_20' ) start [2024-12-28 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122603', 'tblTempUsageDetail_20' ) end [2024-12-28 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122603', 'tblTempVendorCDR_20' ) start [2024-12-28 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122603', 'tblTempVendorCDR_20' ) end [2024-12-28 15:58:19] Production.INFO: ProcessCDR(1,14122603,1,1,2) [2024-12-28 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122603', 'tblTempUsageDetail_20' ) start [2024-12-28 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122603', 'tblTempUsageDetail_20' ) end [2024-12-28 15:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:58:24] Production.INFO: ==30701== Releasing lock... [2024-12-28 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:58:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 12:59:05 [end_date_ymd] => 2024-12-28 15:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 12:59:05' and `end` < '2024-12-28 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-28 15:59:19] Production.INFO: count ==1890 [2024-12-28 15:59:20] Production.ERROR: pbx CDR StartTime 2024-12-28 12:59:05 - End Time 2024-12-28 15:59:05 [2024-12-28 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122608', 'tblTempUsageDetail_20' ) start [2024-12-28 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122608', 'tblTempUsageDetail_20' ) end [2024-12-28 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122608', 'tblTempVendorCDR_20' ) start [2024-12-28 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122608', 'tblTempVendorCDR_20' ) end [2024-12-28 15:59:20] Production.INFO: ProcessCDR(1,14122608,1,1,2) [2024-12-28 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122608', 'tblTempUsageDetail_20' ) start [2024-12-28 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122608', 'tblTempUsageDetail_20' ) end [2024-12-28 15:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 15:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 15:59:25] Production.INFO: ==30804== Releasing lock... [2024-12-28 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 15:59:25] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:00:06 [end_date_ymd] => 2024-12-28 16:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 13:00:06' and `end` < '2024-12-28 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-28 16:00:19] Production.INFO: count ==1890 [2024-12-28 16:00:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:00:06 - End Time 2024-12-28 16:00:06 [2024-12-28 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122613', 'tblTempUsageDetail_20' ) start [2024-12-28 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122613', 'tblTempUsageDetail_20' ) end [2024-12-28 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122613', 'tblTempVendorCDR_20' ) start [2024-12-28 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122613', 'tblTempVendorCDR_20' ) end [2024-12-28 16:00:20] Production.INFO: ProcessCDR(1,14122613,1,1,2) [2024-12-28 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122613', 'tblTempUsageDetail_20' ) start [2024-12-28 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122613', 'tblTempUsageDetail_20' ) end [2024-12-28 16:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:00:23] Production.INFO: ==30912== Releasing lock... [2024-12-28 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:00:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:01:05 [end_date_ymd] => 2024-12-28 16:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:01:05' and `end` < '2024-12-28 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-28 16:01:20] Production.INFO: count ==1906 [2024-12-28 16:01:21] Production.ERROR: pbx CDR StartTime 2024-12-28 13:01:05 - End Time 2024-12-28 16:01:05 [2024-12-28 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122619', 'tblTempUsageDetail_20' ) start [2024-12-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122619', 'tblTempUsageDetail_20' ) end [2024-12-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122619', 'tblTempVendorCDR_20' ) start [2024-12-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122619', 'tblTempVendorCDR_20' ) end [2024-12-28 16:01:21] Production.INFO: ProcessCDR(1,14122619,1,1,2) [2024-12-28 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122619', 'tblTempUsageDetail_20' ) start [2024-12-28 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122619', 'tblTempUsageDetail_20' ) end [2024-12-28 16:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:01:24] Production.INFO: ==31071== Releasing lock... [2024-12-28 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:01:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:02:05 [end_date_ymd] => 2024-12-28 16:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:02:05' and `end` < '2024-12-28 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-28 16:02:19] Production.INFO: count ==1906 [2024-12-28 16:02:20] Production.ERROR: pbx CDR StartTime 2024-12-28 13:02:05 - End Time 2024-12-28 16:02:05 [2024-12-28 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122624', 'tblTempUsageDetail_20' ) start [2024-12-28 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122624', 'tblTempUsageDetail_20' ) end [2024-12-28 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122624', 'tblTempVendorCDR_20' ) start [2024-12-28 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122624', 'tblTempVendorCDR_20' ) end [2024-12-28 16:02:20] Production.INFO: ProcessCDR(1,14122624,1,1,2) [2024-12-28 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122624', 'tblTempUsageDetail_20' ) start [2024-12-28 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122624', 'tblTempUsageDetail_20' ) end [2024-12-28 16:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:02:24] Production.INFO: ==31173== Releasing lock... [2024-12-28 16:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:02:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:03:05 [end_date_ymd] => 2024-12-28 16:03:05 [RateCDR] => 1 ) [2024-12-28 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:03:05' and `end` < '2024-12-28 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:03:17] Production.INFO: count ==1902 [2024-12-28 16:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:03:05 - End Time 2024-12-28 16:03:05 [2024-12-28 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122629', 'tblTempUsageDetail_20' ) start [2024-12-28 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122629', 'tblTempUsageDetail_20' ) end [2024-12-28 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122629', 'tblTempVendorCDR_20' ) start [2024-12-28 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122629', 'tblTempVendorCDR_20' ) end [2024-12-28 16:03:18] Production.INFO: ProcessCDR(1,14122629,1,1,2) [2024-12-28 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122629', 'tblTempUsageDetail_20' ) start [2024-12-28 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122629', 'tblTempUsageDetail_20' ) end [2024-12-28 16:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:03:21] Production.INFO: ==31275== Releasing lock... [2024-12-28 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:03:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:04:05 [end_date_ymd] => 2024-12-28 16:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:04:05' and `end` < '2024-12-28 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-28 16:04:18] Production.INFO: count ==1904 [2024-12-28 16:04:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:04:05 - End Time 2024-12-28 16:04:05 [2024-12-28 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122634', 'tblTempUsageDetail_20' ) start [2024-12-28 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122634', 'tblTempUsageDetail_20' ) end [2024-12-28 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122634', 'tblTempVendorCDR_20' ) start [2024-12-28 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122634', 'tblTempVendorCDR_20' ) end [2024-12-28 16:04:18] Production.INFO: ProcessCDR(1,14122634,1,1,2) [2024-12-28 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122634', 'tblTempUsageDetail_20' ) start [2024-12-28 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122634', 'tblTempUsageDetail_20' ) end [2024-12-28 16:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:04:23] Production.INFO: ==31380== Releasing lock... [2024-12-28 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:04:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:05:04 [end_date_ymd] => 2024-12-28 16:05:04 [RateCDR] => 1 ) [2024-12-28 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:05:04' and `end` < '2024-12-28 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:05:17] Production.INFO: count ==1877 [2024-12-28 16:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 13:05:04 - End Time 2024-12-28 16:05:04 [2024-12-28 16:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122639', 'tblTempUsageDetail_20' ) start [2024-12-28 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122639', 'tblTempUsageDetail_20' ) end [2024-12-28 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122639', 'tblTempVendorCDR_20' ) start [2024-12-28 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122639', 'tblTempVendorCDR_20' ) end [2024-12-28 16:05:17] Production.INFO: ProcessCDR(1,14122639,1,1,2) [2024-12-28 16:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122639', 'tblTempUsageDetail_20' ) start [2024-12-28 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122639', 'tblTempUsageDetail_20' ) end [2024-12-28 16:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:05:20] Production.INFO: ==31485== Releasing lock... [2024-12-28 16:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:05:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:06:04 [end_date_ymd] => 2024-12-28 16:06:04 [RateCDR] => 1 ) [2024-12-28 16: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-28 13:06:04' and `end` < '2024-12-28 16: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-28 16:06:17] Production.INFO: count ==1873 [2024-12-28 16:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:06:04 - End Time 2024-12-28 16:06:04 [2024-12-28 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122644', 'tblTempUsageDetail_20' ) start [2024-12-28 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122644', 'tblTempUsageDetail_20' ) end [2024-12-28 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122644', 'tblTempVendorCDR_20' ) start [2024-12-28 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122644', 'tblTempVendorCDR_20' ) end [2024-12-28 16:06:18] Production.INFO: ProcessCDR(1,14122644,1,1,2) [2024-12-28 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122644', 'tblTempUsageDetail_20' ) start [2024-12-28 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122644', 'tblTempUsageDetail_20' ) end [2024-12-28 16:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:06:21] Production.INFO: ==31591== Releasing lock... [2024-12-28 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:06:21] Production.INFO: 42 MB #Memory Used# [2024-12-28 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:07:06 [end_date_ymd] => 2024-12-28 16:07:06 [RateCDR] => 1 ) [2024-12-28 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:07:06' and `end` < '2024-12-28 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:07:19] Production.INFO: count ==1872 [2024-12-28 16:07:20] Production.ERROR: pbx CDR StartTime 2024-12-28 13:07:06 - End Time 2024-12-28 16:07:06 [2024-12-28 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122649', 'tblTempUsageDetail_20' ) start [2024-12-28 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122649', 'tblTempUsageDetail_20' ) end [2024-12-28 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122649', 'tblTempVendorCDR_20' ) start [2024-12-28 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122649', 'tblTempVendorCDR_20' ) end [2024-12-28 16:07:20] Production.INFO: ProcessCDR(1,14122649,1,1,2) [2024-12-28 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122649', 'tblTempUsageDetail_20' ) start [2024-12-28 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122649', 'tblTempUsageDetail_20' ) end [2024-12-28 16:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:07:23] Production.INFO: ==31694== Releasing lock... [2024-12-28 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:07:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:08:05 [end_date_ymd] => 2024-12-28 16:08:05 [RateCDR] => 1 ) [2024-12-28 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:08:05' and `end` < '2024-12-28 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:08:18] Production.INFO: count ==1867 [2024-12-28 16:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:08:05 - End Time 2024-12-28 16:08:05 [2024-12-28 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122654', 'tblTempUsageDetail_20' ) start [2024-12-28 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122654', 'tblTempUsageDetail_20' ) end [2024-12-28 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122654', 'tblTempVendorCDR_20' ) start [2024-12-28 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122654', 'tblTempVendorCDR_20' ) end [2024-12-28 16:08:18] Production.INFO: ProcessCDR(1,14122654,1,1,2) [2024-12-28 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122654', 'tblTempUsageDetail_20' ) start [2024-12-28 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122654', 'tblTempUsageDetail_20' ) end [2024-12-28 16:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:08:21] Production.INFO: ==31792== Releasing lock... [2024-12-28 16:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:08:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:09:04 [end_date_ymd] => 2024-12-28 16:09:04 [RateCDR] => 1 ) [2024-12-28 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:09:04' and `end` < '2024-12-28 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:09:17] Production.INFO: count ==1861 [2024-12-28 16:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 13:09:04 - End Time 2024-12-28 16:09:04 [2024-12-28 16:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122659', 'tblTempUsageDetail_20' ) start [2024-12-28 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122659', 'tblTempUsageDetail_20' ) end [2024-12-28 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122659', 'tblTempVendorCDR_20' ) start [2024-12-28 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122659', 'tblTempVendorCDR_20' ) end [2024-12-28 16:09:17] Production.INFO: ProcessCDR(1,14122659,1,1,2) [2024-12-28 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122659', 'tblTempUsageDetail_20' ) start [2024-12-28 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122659', 'tblTempUsageDetail_20' ) end [2024-12-28 16:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:09:21] Production.INFO: ==31863== Releasing lock... [2024-12-28 16:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:09:21] Production.INFO: 42 MB #Memory Used# [2024-12-28 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:10:05 [end_date_ymd] => 2024-12-28 16:10:05 [RateCDR] => 1 ) [2024-12-28 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:10:05' and `end` < '2024-12-28 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:10:18] Production.INFO: count ==1850 [2024-12-28 16:10:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:10:05 - End Time 2024-12-28 16:10:05 [2024-12-28 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122665', 'tblTempUsageDetail_20' ) start [2024-12-28 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122665', 'tblTempUsageDetail_20' ) end [2024-12-28 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122665', 'tblTempVendorCDR_20' ) start [2024-12-28 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122665', 'tblTempVendorCDR_20' ) end [2024-12-28 16:10:19] Production.INFO: ProcessCDR(1,14122665,1,1,2) [2024-12-28 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122665', 'tblTempUsageDetail_20' ) start [2024-12-28 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122665', 'tblTempUsageDetail_20' ) end [2024-12-28 16:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:10:23] Production.INFO: ==31938== Releasing lock... [2024-12-28 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:10:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-28 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:11:05 [end_date_ymd] => 2024-12-28 16:11:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:11:05' and `end` < '2024-12-28 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-28 16:11:20] Production.INFO: count ==1854 [2024-12-28 16:11:21] Production.ERROR: pbx CDR StartTime 2024-12-28 13:11:05 - End Time 2024-12-28 16:11:05 [2024-12-28 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122670', 'tblTempUsageDetail_20' ) start [2024-12-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122670', 'tblTempUsageDetail_20' ) end [2024-12-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122670', 'tblTempVendorCDR_20' ) start [2024-12-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122670', 'tblTempVendorCDR_20' ) end [2024-12-28 16:11:21] Production.INFO: ProcessCDR(1,14122670,1,1,2) [2024-12-28 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122670', 'tblTempUsageDetail_20' ) start [2024-12-28 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122670', 'tblTempUsageDetail_20' ) end [2024-12-28 16:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:11:24] Production.INFO: ==32012== Releasing lock... [2024-12-28 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:11:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-28 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:12:05 [end_date_ymd] => 2024-12-28 16:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:12:05' and `end` < '2024-12-28 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-28 16:12:18] Production.INFO: count ==1837 [2024-12-28 16:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:12:05 - End Time 2024-12-28 16:12:05 [2024-12-28 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122675', 'tblTempUsageDetail_20' ) start [2024-12-28 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122675', 'tblTempUsageDetail_20' ) end [2024-12-28 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122675', 'tblTempVendorCDR_20' ) start [2024-12-28 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122675', 'tblTempVendorCDR_20' ) end [2024-12-28 16:12:18] Production.INFO: ProcessCDR(1,14122675,1,1,2) [2024-12-28 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122675', 'tblTempUsageDetail_20' ) start [2024-12-28 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122675', 'tblTempUsageDetail_20' ) end [2024-12-28 16:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:12:21] Production.INFO: ==32083== Releasing lock... [2024-12-28 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:12:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:13:06 [end_date_ymd] => 2024-12-28 16:13:06 [RateCDR] => 1 ) [2024-12-28 16: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-28 13:13:06' and `end` < '2024-12-28 16: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-28 16:13:20] Production.INFO: count ==1821 [2024-12-28 16:13:21] Production.ERROR: pbx CDR StartTime 2024-12-28 13:13:06 - End Time 2024-12-28 16:13:06 [2024-12-28 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122680', 'tblTempUsageDetail_20' ) start [2024-12-28 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122680', 'tblTempUsageDetail_20' ) end [2024-12-28 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122680', 'tblTempVendorCDR_20' ) start [2024-12-28 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122680', 'tblTempVendorCDR_20' ) end [2024-12-28 16:13:21] Production.INFO: ProcessCDR(1,14122680,1,1,2) [2024-12-28 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122680', 'tblTempUsageDetail_20' ) start [2024-12-28 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122680', 'tblTempUsageDetail_20' ) end [2024-12-28 16:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:13:25] Production.INFO: ==32157== Releasing lock... [2024-12-28 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:13:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:14:05 [end_date_ymd] => 2024-12-28 16:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:14:05' and `end` < '2024-12-28 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-28 16:14:19] Production.INFO: count ==1817 [2024-12-28 16:14:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:14:05 - End Time 2024-12-28 16:14:05 [2024-12-28 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122685', 'tblTempUsageDetail_20' ) start [2024-12-28 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122685', 'tblTempUsageDetail_20' ) end [2024-12-28 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122685', 'tblTempVendorCDR_20' ) start [2024-12-28 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122685', 'tblTempVendorCDR_20' ) end [2024-12-28 16:14:19] Production.INFO: ProcessCDR(1,14122685,1,1,2) [2024-12-28 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122685', 'tblTempUsageDetail_20' ) start [2024-12-28 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122685', 'tblTempUsageDetail_20' ) end [2024-12-28 16:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:14:24] Production.INFO: ==32228== Releasing lock... [2024-12-28 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:14:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:15:05 [end_date_ymd] => 2024-12-28 16:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:15:05' and `end` < '2024-12-28 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-28 16:15:17] Production.INFO: count ==1810 [2024-12-28 16:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:15:05 - End Time 2024-12-28 16:15:05 [2024-12-28 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122690', 'tblTempUsageDetail_20' ) start [2024-12-28 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122690', 'tblTempUsageDetail_20' ) end [2024-12-28 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122690', 'tblTempVendorCDR_20' ) start [2024-12-28 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122690', 'tblTempVendorCDR_20' ) end [2024-12-28 16:15:18] Production.INFO: ProcessCDR(1,14122690,1,1,2) [2024-12-28 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122690', 'tblTempUsageDetail_20' ) start [2024-12-28 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122690', 'tblTempUsageDetail_20' ) end [2024-12-28 16:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:15:22] Production.INFO: ==32299== Releasing lock... [2024-12-28 16:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:15:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-28 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:16:05 [end_date_ymd] => 2024-12-28 16:16:05 [RateCDR] => 1 ) [2024-12-28 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:16:05' and `end` < '2024-12-28 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:16:17] Production.INFO: count ==1840 [2024-12-28 16:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:16:05 - End Time 2024-12-28 16:16:05 [2024-12-28 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122695', 'tblTempUsageDetail_20' ) start [2024-12-28 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122695', 'tblTempUsageDetail_20' ) end [2024-12-28 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122695', 'tblTempVendorCDR_20' ) start [2024-12-28 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122695', 'tblTempVendorCDR_20' ) end [2024-12-28 16:16:18] Production.INFO: ProcessCDR(1,14122695,1,1,2) [2024-12-28 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122695', 'tblTempUsageDetail_20' ) start [2024-12-28 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122695', 'tblTempUsageDetail_20' ) end [2024-12-28 16:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:16:23] Production.INFO: ==32372== Releasing lock... [2024-12-28 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:16:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:17:05 [end_date_ymd] => 2024-12-28 16:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:17:05' and `end` < '2024-12-28 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-28 16:17:19] Production.INFO: count ==1842 [2024-12-28 16:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:17:05 - End Time 2024-12-28 16:17:05 [2024-12-28 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122700', 'tblTempUsageDetail_20' ) start [2024-12-28 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122700', 'tblTempUsageDetail_20' ) end [2024-12-28 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122700', 'tblTempVendorCDR_20' ) start [2024-12-28 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122700', 'tblTempVendorCDR_20' ) end [2024-12-28 16:17:19] Production.INFO: ProcessCDR(1,14122700,1,1,2) [2024-12-28 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122700', 'tblTempUsageDetail_20' ) start [2024-12-28 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122700', 'tblTempUsageDetail_20' ) end [2024-12-28 16:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:17:23] Production.INFO: ==32493== Releasing lock... [2024-12-28 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:17:23] Production.INFO: 42 MB #Memory Used# [2024-12-28 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:18:05 [end_date_ymd] => 2024-12-28 16:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:18:05' and `end` < '2024-12-28 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-28 16:18:18] Production.INFO: count ==1826 [2024-12-28 16:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:18:05 - End Time 2024-12-28 16:18:05 [2024-12-28 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122705', 'tblTempUsageDetail_20' ) start [2024-12-28 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122705', 'tblTempUsageDetail_20' ) end [2024-12-28 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122705', 'tblTempVendorCDR_20' ) start [2024-12-28 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122705', 'tblTempVendorCDR_20' ) end [2024-12-28 16:18:18] Production.INFO: ProcessCDR(1,14122705,1,1,2) [2024-12-28 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122705', 'tblTempUsageDetail_20' ) start [2024-12-28 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122705', 'tblTempUsageDetail_20' ) end [2024-12-28 16:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:18:21] Production.INFO: ==32567== Releasing lock... [2024-12-28 16:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:18:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-28 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:19:05 [end_date_ymd] => 2024-12-28 16:19:05 [RateCDR] => 1 ) [2024-12-28 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:19:05' and `end` < '2024-12-28 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:19:20] Production.INFO: count ==1827 [2024-12-28 16:19:21] Production.ERROR: pbx CDR StartTime 2024-12-28 13:19:05 - End Time 2024-12-28 16:19:05 [2024-12-28 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122710', 'tblTempUsageDetail_20' ) start [2024-12-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122710', 'tblTempUsageDetail_20' ) end [2024-12-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122710', 'tblTempVendorCDR_20' ) start [2024-12-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122710', 'tblTempVendorCDR_20' ) end [2024-12-28 16:19:21] Production.INFO: ProcessCDR(1,14122710,1,1,2) [2024-12-28 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122710', 'tblTempUsageDetail_20' ) start [2024-12-28 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122710', 'tblTempUsageDetail_20' ) end [2024-12-28 16:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:19:24] Production.INFO: ==32637== Releasing lock... [2024-12-28 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:19:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-28 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:20:06 [end_date_ymd] => 2024-12-28 16:20:06 [RateCDR] => 1 ) [2024-12-28 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-28 13:20:06' and `end` < '2024-12-28 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-28 16:20:18] Production.INFO: count ==1813 [2024-12-28 16:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:20:06 - End Time 2024-12-28 16:20:06 [2024-12-28 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122715', 'tblTempUsageDetail_20' ) start [2024-12-28 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122715', 'tblTempUsageDetail_20' ) end [2024-12-28 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122715', 'tblTempVendorCDR_20' ) start [2024-12-28 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122715', 'tblTempVendorCDR_20' ) end [2024-12-28 16:20:19] Production.INFO: ProcessCDR(1,14122715,1,1,2) [2024-12-28 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122715', 'tblTempUsageDetail_20' ) start [2024-12-28 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122715', 'tblTempUsageDetail_20' ) end [2024-12-28 16:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:20:22] Production.INFO: ==317== Releasing lock... [2024-12-28 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:20:22] Production.INFO: 42 MB #Memory Used# [2024-12-28 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:21:05 [end_date_ymd] => 2024-12-28 16:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:21:05' and `end` < '2024-12-28 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-28 16:21:18] Production.INFO: count ==1781 [2024-12-28 16:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:21:05 - End Time 2024-12-28 16:21:05 [2024-12-28 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122721', 'tblTempUsageDetail_20' ) start [2024-12-28 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122721', 'tblTempUsageDetail_20' ) end [2024-12-28 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122721', 'tblTempVendorCDR_20' ) start [2024-12-28 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122721', 'tblTempVendorCDR_20' ) end [2024-12-28 16:21:18] Production.INFO: ProcessCDR(1,14122721,1,1,2) [2024-12-28 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122721', 'tblTempUsageDetail_20' ) start [2024-12-28 16:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122721', 'tblTempUsageDetail_20' ) end [2024-12-28 16:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:21:21] Production.INFO: ==484== Releasing lock... [2024-12-28 16:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:21:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-28 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:22:05 [end_date_ymd] => 2024-12-28 16:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:22:05' and `end` < '2024-12-28 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-28 16:22:18] Production.INFO: count ==1774 [2024-12-28 16:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:22:05 - End Time 2024-12-28 16:22:05 [2024-12-28 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122726', 'tblTempUsageDetail_20' ) start [2024-12-28 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122726', 'tblTempUsageDetail_20' ) end [2024-12-28 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122726', 'tblTempVendorCDR_20' ) start [2024-12-28 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122726', 'tblTempVendorCDR_20' ) end [2024-12-28 16:22:18] Production.INFO: ProcessCDR(1,14122726,1,1,2) [2024-12-28 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122726', 'tblTempUsageDetail_20' ) start [2024-12-28 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122726', 'tblTempUsageDetail_20' ) end [2024-12-28 16:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:22:22] Production.INFO: ==642== Releasing lock... [2024-12-28 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:22:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-28 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:23:05 [end_date_ymd] => 2024-12-28 16:23:05 [RateCDR] => 1 ) [2024-12-28 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:23:05' and `end` < '2024-12-28 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:23:18] Production.INFO: count ==1765 [2024-12-28 16:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:23:05 - End Time 2024-12-28 16:23:05 [2024-12-28 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122731', 'tblTempUsageDetail_20' ) start [2024-12-28 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122731', 'tblTempUsageDetail_20' ) end [2024-12-28 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122731', 'tblTempVendorCDR_20' ) start [2024-12-28 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122731', 'tblTempVendorCDR_20' ) end [2024-12-28 16:23:18] Production.INFO: ProcessCDR(1,14122731,1,1,2) [2024-12-28 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122731', 'tblTempUsageDetail_20' ) start [2024-12-28 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122731', 'tblTempUsageDetail_20' ) end [2024-12-28 16:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:23:23] Production.INFO: ==826== Releasing lock... [2024-12-28 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:23:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:24:05 [end_date_ymd] => 2024-12-28 16:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:24:05' and `end` < '2024-12-28 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-28 16:24:18] Production.INFO: count ==1762 [2024-12-28 16:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:24:05 - End Time 2024-12-28 16:24:05 [2024-12-28 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122736', 'tblTempUsageDetail_20' ) start [2024-12-28 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122736', 'tblTempUsageDetail_20' ) end [2024-12-28 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122736', 'tblTempVendorCDR_20' ) start [2024-12-28 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122736', 'tblTempVendorCDR_20' ) end [2024-12-28 16:24:18] Production.INFO: ProcessCDR(1,14122736,1,1,2) [2024-12-28 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122736', 'tblTempUsageDetail_20' ) start [2024-12-28 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122736', 'tblTempUsageDetail_20' ) end [2024-12-28 16:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:24:21] Production.INFO: ==981== Releasing lock... [2024-12-28 16:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:24:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:25:05 [end_date_ymd] => 2024-12-28 16:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:25:05' and `end` < '2024-12-28 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-28 16:25:19] Production.INFO: count ==1763 [2024-12-28 16:25:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:25:05 - End Time 2024-12-28 16:25:05 [2024-12-28 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122741', 'tblTempUsageDetail_20' ) start [2024-12-28 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122741', 'tblTempUsageDetail_20' ) end [2024-12-28 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122741', 'tblTempVendorCDR_20' ) start [2024-12-28 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122741', 'tblTempVendorCDR_20' ) end [2024-12-28 16:25:19] Production.INFO: ProcessCDR(1,14122741,1,1,2) [2024-12-28 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122741', 'tblTempUsageDetail_20' ) start [2024-12-28 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122741', 'tblTempUsageDetail_20' ) end [2024-12-28 16:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:25:22] Production.INFO: ==1141== Releasing lock... [2024-12-28 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:25:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:26:04 [end_date_ymd] => 2024-12-28 16:26:04 [RateCDR] => 1 ) [2024-12-28 16:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:26:04' and `end` < '2024-12-28 16:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:26:18] Production.INFO: count ==1750 [2024-12-28 16:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:26:04 - End Time 2024-12-28 16:26:04 [2024-12-28 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122746', 'tblTempUsageDetail_20' ) start [2024-12-28 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122746', 'tblTempUsageDetail_20' ) end [2024-12-28 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122746', 'tblTempVendorCDR_20' ) start [2024-12-28 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122746', 'tblTempVendorCDR_20' ) end [2024-12-28 16:26:18] Production.INFO: ProcessCDR(1,14122746,1,1,2) [2024-12-28 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122746', 'tblTempUsageDetail_20' ) start [2024-12-28 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122746', 'tblTempUsageDetail_20' ) end [2024-12-28 16:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:26:21] Production.INFO: ==1313== Releasing lock... [2024-12-28 16:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:26:21] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:27:05 [end_date_ymd] => 2024-12-28 16:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:27:05' and `end` < '2024-12-28 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-28 16:27:18] Production.INFO: count ==1742 [2024-12-28 16:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:27:05 - End Time 2024-12-28 16:27:05 [2024-12-28 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122751', 'tblTempUsageDetail_20' ) start [2024-12-28 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122751', 'tblTempUsageDetail_20' ) end [2024-12-28 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122751', 'tblTempVendorCDR_20' ) start [2024-12-28 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122751', 'tblTempVendorCDR_20' ) end [2024-12-28 16:27:18] Production.INFO: ProcessCDR(1,14122751,1,1,2) [2024-12-28 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122751', 'tblTempUsageDetail_20' ) start [2024-12-28 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122751', 'tblTempUsageDetail_20' ) end [2024-12-28 16:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:27:21] Production.INFO: ==1469== Releasing lock... [2024-12-28 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:27:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:28:05 [end_date_ymd] => 2024-12-28 16:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:28:05' and `end` < '2024-12-28 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-28 16:28:18] Production.INFO: count ==1730 [2024-12-28 16:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:28:05 - End Time 2024-12-28 16:28:05 [2024-12-28 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122756', 'tblTempUsageDetail_20' ) start [2024-12-28 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122756', 'tblTempUsageDetail_20' ) end [2024-12-28 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122756', 'tblTempVendorCDR_20' ) start [2024-12-28 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122756', 'tblTempVendorCDR_20' ) end [2024-12-28 16:28:18] Production.INFO: ProcessCDR(1,14122756,1,1,2) [2024-12-28 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122756', 'tblTempUsageDetail_20' ) start [2024-12-28 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122756', 'tblTempUsageDetail_20' ) end [2024-12-28 16:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:28:22] Production.INFO: ==1662== Releasing lock... [2024-12-28 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:28:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:29:05 [end_date_ymd] => 2024-12-28 16:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:29:05' and `end` < '2024-12-28 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-28 16:29:18] Production.INFO: count ==1729 [2024-12-28 16:29:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:29:05 - End Time 2024-12-28 16:29:05 [2024-12-28 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122761', 'tblTempUsageDetail_20' ) start [2024-12-28 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122761', 'tblTempUsageDetail_20' ) end [2024-12-28 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122761', 'tblTempVendorCDR_20' ) start [2024-12-28 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122761', 'tblTempVendorCDR_20' ) end [2024-12-28 16:29:18] Production.INFO: ProcessCDR(1,14122761,1,1,2) [2024-12-28 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122761', 'tblTempUsageDetail_20' ) start [2024-12-28 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122761', 'tblTempUsageDetail_20' ) end [2024-12-28 16:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:29:23] Production.INFO: ==1815== Releasing lock... [2024-12-28 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:29:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:30:06 [end_date_ymd] => 2024-12-28 16:30:06 [RateCDR] => 1 ) [2024-12-28 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:30:06' and `end` < '2024-12-28 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:30:18] Production.INFO: count ==1729 [2024-12-28 16:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:30:06 - End Time 2024-12-28 16:30:06 [2024-12-28 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122767', 'tblTempUsageDetail_20' ) start [2024-12-28 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122767', 'tblTempUsageDetail_20' ) end [2024-12-28 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122767', 'tblTempVendorCDR_20' ) start [2024-12-28 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122767', 'tblTempVendorCDR_20' ) end [2024-12-28 16:30:19] Production.INFO: ProcessCDR(1,14122767,1,1,2) [2024-12-28 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122767', 'tblTempUsageDetail_20' ) start [2024-12-28 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122767', 'tblTempUsageDetail_20' ) end [2024-12-28 16:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:30:22] Production.INFO: ==1983== Releasing lock... [2024-12-28 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:30:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:31:05 [end_date_ymd] => 2024-12-28 16:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:31:05' and `end` < '2024-12-28 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-28 16:31:19] Production.INFO: count ==1721 [2024-12-28 16:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:31:05 - End Time 2024-12-28 16:31:05 [2024-12-28 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122772', 'tblTempUsageDetail_20' ) start [2024-12-28 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122772', 'tblTempUsageDetail_20' ) end [2024-12-28 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122772', 'tblTempVendorCDR_20' ) start [2024-12-28 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122772', 'tblTempVendorCDR_20' ) end [2024-12-28 16:31:19] Production.INFO: ProcessCDR(1,14122772,1,1,2) [2024-12-28 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122772', 'tblTempUsageDetail_20' ) start [2024-12-28 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122772', 'tblTempUsageDetail_20' ) end [2024-12-28 16:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:31:22] Production.INFO: ==2144== Releasing lock... [2024-12-28 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:31:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:32:05 [end_date_ymd] => 2024-12-28 16:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:32:05' and `end` < '2024-12-28 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-28 16:32:19] Production.INFO: count ==1720 [2024-12-28 16:32:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:32:05 - End Time 2024-12-28 16:32:05 [2024-12-28 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122777', 'tblTempUsageDetail_20' ) start [2024-12-28 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122777', 'tblTempUsageDetail_20' ) end [2024-12-28 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122777', 'tblTempVendorCDR_20' ) start [2024-12-28 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122777', 'tblTempVendorCDR_20' ) end [2024-12-28 16:32:19] Production.INFO: ProcessCDR(1,14122777,1,1,2) [2024-12-28 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122777', 'tblTempUsageDetail_20' ) start [2024-12-28 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122777', 'tblTempUsageDetail_20' ) end [2024-12-28 16:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:32:22] Production.INFO: ==2335== Releasing lock... [2024-12-28 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:32:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:33:05 [end_date_ymd] => 2024-12-28 16:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:33:05' and `end` < '2024-12-28 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-28 16:33:18] Production.INFO: count ==1734 [2024-12-28 16:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:33:05 - End Time 2024-12-28 16:33:05 [2024-12-28 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122782', 'tblTempUsageDetail_20' ) start [2024-12-28 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122782', 'tblTempUsageDetail_20' ) end [2024-12-28 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122782', 'tblTempVendorCDR_20' ) start [2024-12-28 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122782', 'tblTempVendorCDR_20' ) end [2024-12-28 16:33:18] Production.INFO: ProcessCDR(1,14122782,1,1,2) [2024-12-28 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122782', 'tblTempUsageDetail_20' ) start [2024-12-28 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122782', 'tblTempUsageDetail_20' ) end [2024-12-28 16:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:33:21] Production.INFO: ==2487== Releasing lock... [2024-12-28 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:33:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:34:05 [end_date_ymd] => 2024-12-28 16:34:05 [RateCDR] => 1 ) [2024-12-28 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:34:05' and `end` < '2024-12-28 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:34:17] Production.INFO: count ==1742 [2024-12-28 16:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:34:05 - End Time 2024-12-28 16:34:05 [2024-12-28 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122787', 'tblTempUsageDetail_20' ) start [2024-12-28 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122787', 'tblTempUsageDetail_20' ) end [2024-12-28 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122787', 'tblTempVendorCDR_20' ) start [2024-12-28 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122787', 'tblTempVendorCDR_20' ) end [2024-12-28 16:34:18] Production.INFO: ProcessCDR(1,14122787,1,1,2) [2024-12-28 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122787', 'tblTempUsageDetail_20' ) start [2024-12-28 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122787', 'tblTempUsageDetail_20' ) end [2024-12-28 16:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:34:22] Production.INFO: ==2649== Releasing lock... [2024-12-28 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:34:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:35:05 [end_date_ymd] => 2024-12-28 16:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:35:05' and `end` < '2024-12-28 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-28 16:35:17] Production.INFO: count ==1724 [2024-12-28 16:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:35:05 - End Time 2024-12-28 16:35:05 [2024-12-28 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122792', 'tblTempUsageDetail_20' ) start [2024-12-28 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122792', 'tblTempUsageDetail_20' ) end [2024-12-28 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122792', 'tblTempVendorCDR_20' ) start [2024-12-28 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122792', 'tblTempVendorCDR_20' ) end [2024-12-28 16:35:18] Production.INFO: ProcessCDR(1,14122792,1,1,2) [2024-12-28 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122792', 'tblTempUsageDetail_20' ) start [2024-12-28 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122792', 'tblTempUsageDetail_20' ) end [2024-12-28 16:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:35:22] Production.INFO: ==2821== Releasing lock... [2024-12-28 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:35:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:36:05 [end_date_ymd] => 2024-12-28 16:36:05 [RateCDR] => 1 ) [2024-12-28 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:36:05' and `end` < '2024-12-28 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:36:19] Production.INFO: count ==1719 [2024-12-28 16:36:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:36:05 - End Time 2024-12-28 16:36:05 [2024-12-28 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122797', 'tblTempUsageDetail_20' ) start [2024-12-28 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122797', 'tblTempUsageDetail_20' ) end [2024-12-28 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122797', 'tblTempVendorCDR_20' ) start [2024-12-28 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122797', 'tblTempVendorCDR_20' ) end [2024-12-28 16:36:20] Production.INFO: ProcessCDR(1,14122797,1,1,2) [2024-12-28 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122797', 'tblTempUsageDetail_20' ) start [2024-12-28 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122797', 'tblTempUsageDetail_20' ) end [2024-12-28 16:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:36:23] Production.INFO: ==3002== Releasing lock... [2024-12-28 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:36:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:37:05 [end_date_ymd] => 2024-12-28 16:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:37:05' and `end` < '2024-12-28 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-28 16:37:18] Production.INFO: count ==1719 [2024-12-28 16:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:37:05 - End Time 2024-12-28 16:37:05 [2024-12-28 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122802', 'tblTempUsageDetail_20' ) start [2024-12-28 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122802', 'tblTempUsageDetail_20' ) end [2024-12-28 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122802', 'tblTempVendorCDR_20' ) start [2024-12-28 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122802', 'tblTempVendorCDR_20' ) end [2024-12-28 16:37:18] Production.INFO: ProcessCDR(1,14122802,1,1,2) [2024-12-28 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122802', 'tblTempUsageDetail_20' ) start [2024-12-28 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122802', 'tblTempUsageDetail_20' ) end [2024-12-28 16:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:37:22] Production.INFO: ==3181== Releasing lock... [2024-12-28 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:37:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:38:05 [end_date_ymd] => 2024-12-28 16:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:38:05' and `end` < '2024-12-28 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-28 16:38:20] Production.INFO: count ==1699 [2024-12-28 16:38:21] Production.ERROR: pbx CDR StartTime 2024-12-28 13:38:05 - End Time 2024-12-28 16:38:05 [2024-12-28 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122807', 'tblTempUsageDetail_20' ) start [2024-12-28 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122807', 'tblTempUsageDetail_20' ) end [2024-12-28 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122807', 'tblTempVendorCDR_20' ) start [2024-12-28 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122807', 'tblTempVendorCDR_20' ) end [2024-12-28 16:38:21] Production.INFO: ProcessCDR(1,14122807,1,1,2) [2024-12-28 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122807', 'tblTempUsageDetail_20' ) start [2024-12-28 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122807', 'tblTempUsageDetail_20' ) end [2024-12-28 16:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:38:24] Production.INFO: ==3355== Releasing lock... [2024-12-28 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:38:24] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:39:05 [end_date_ymd] => 2024-12-28 16:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:39:05' and `end` < '2024-12-28 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:39:18] Production.INFO: count ==1696 [2024-12-28 16:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:39:05 - End Time 2024-12-28 16:39:05 [2024-12-28 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122812', 'tblTempUsageDetail_20' ) start [2024-12-28 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122812', 'tblTempUsageDetail_20' ) end [2024-12-28 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122812', 'tblTempVendorCDR_20' ) start [2024-12-28 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122812', 'tblTempVendorCDR_20' ) end [2024-12-28 16:39:18] Production.INFO: ProcessCDR(1,14122812,1,1,2) [2024-12-28 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122812', 'tblTempUsageDetail_20' ) start [2024-12-28 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122812', 'tblTempUsageDetail_20' ) end [2024-12-28 16:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:39:22] Production.INFO: ==3516== Releasing lock... [2024-12-28 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:39:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:40:05 [end_date_ymd] => 2024-12-28 16:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:40:05' and `end` < '2024-12-28 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-28 16:40:18] Production.INFO: count ==1691 [2024-12-28 16:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:40:05 - End Time 2024-12-28 16:40:05 [2024-12-28 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122817', 'tblTempUsageDetail_20' ) start [2024-12-28 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122817', 'tblTempUsageDetail_20' ) end [2024-12-28 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122817', 'tblTempVendorCDR_20' ) start [2024-12-28 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122817', 'tblTempVendorCDR_20' ) end [2024-12-28 16:40:19] Production.INFO: ProcessCDR(1,14122817,1,1,2) [2024-12-28 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122817', 'tblTempUsageDetail_20' ) start [2024-12-28 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122817', 'tblTempUsageDetail_20' ) end [2024-12-28 16:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:40:22] Production.INFO: ==3674== Releasing lock... [2024-12-28 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:40:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:41:05 [end_date_ymd] => 2024-12-28 16:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:41:05' and `end` < '2024-12-28 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-28 16:41:18] Production.INFO: count ==1728 [2024-12-28 16:41:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:41:05 - End Time 2024-12-28 16:41:05 [2024-12-28 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122823', 'tblTempUsageDetail_20' ) start [2024-12-28 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122823', 'tblTempUsageDetail_20' ) end [2024-12-28 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122823', 'tblTempVendorCDR_20' ) start [2024-12-28 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122823', 'tblTempVendorCDR_20' ) end [2024-12-28 16:41:19] Production.INFO: ProcessCDR(1,14122823,1,1,2) [2024-12-28 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122823', 'tblTempUsageDetail_20' ) start [2024-12-28 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122823', 'tblTempUsageDetail_20' ) end [2024-12-28 16:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:41:22] Production.INFO: ==3832== Releasing lock... [2024-12-28 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:41:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:42:05 [end_date_ymd] => 2024-12-28 16:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:42:05' and `end` < '2024-12-28 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-28 16:42:18] Production.INFO: count ==1735 [2024-12-28 16:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:42:05 - End Time 2024-12-28 16:42:05 [2024-12-28 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122828', 'tblTempUsageDetail_20' ) start [2024-12-28 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122828', 'tblTempUsageDetail_20' ) end [2024-12-28 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122828', 'tblTempVendorCDR_20' ) start [2024-12-28 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122828', 'tblTempVendorCDR_20' ) end [2024-12-28 16:42:19] Production.INFO: ProcessCDR(1,14122828,1,1,2) [2024-12-28 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122828', 'tblTempUsageDetail_20' ) start [2024-12-28 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122828', 'tblTempUsageDetail_20' ) end [2024-12-28 16:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:42:22] Production.INFO: ==3994== Releasing lock... [2024-12-28 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:42:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:43:04 [end_date_ymd] => 2024-12-28 16:43:04 [RateCDR] => 1 ) [2024-12-28 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-28 13:43:04' and `end` < '2024-12-28 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-28 16:43:17] Production.INFO: count ==1733 [2024-12-28 16:43:17] Production.ERROR: pbx CDR StartTime 2024-12-28 13:43:04 - End Time 2024-12-28 16:43:04 [2024-12-28 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122833', 'tblTempUsageDetail_20' ) start [2024-12-28 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122833', 'tblTempUsageDetail_20' ) end [2024-12-28 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122833', 'tblTempVendorCDR_20' ) start [2024-12-28 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122833', 'tblTempVendorCDR_20' ) end [2024-12-28 16:43:17] Production.INFO: ProcessCDR(1,14122833,1,1,2) [2024-12-28 16:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122833', 'tblTempUsageDetail_20' ) start [2024-12-28 16:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122833', 'tblTempUsageDetail_20' ) end [2024-12-28 16:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:43:20] Production.INFO: ==4156== Releasing lock... [2024-12-28 16:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:43:20] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:44:04 [end_date_ymd] => 2024-12-28 16:44:04 [RateCDR] => 1 ) [2024-12-28 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-28 13:44:04' and `end` < '2024-12-28 16:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:44:18] Production.INFO: count ==1726 [2024-12-28 16:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:44:04 - End Time 2024-12-28 16:44:04 [2024-12-28 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122838', 'tblTempUsageDetail_20' ) start [2024-12-28 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122838', 'tblTempUsageDetail_20' ) end [2024-12-28 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122838', 'tblTempVendorCDR_20' ) start [2024-12-28 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122838', 'tblTempVendorCDR_20' ) end [2024-12-28 16:44:19] Production.INFO: ProcessCDR(1,14122838,1,1,2) [2024-12-28 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122838', 'tblTempUsageDetail_20' ) start [2024-12-28 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122838', 'tblTempUsageDetail_20' ) end [2024-12-28 16:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:44:22] Production.INFO: ==4319== Releasing lock... [2024-12-28 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:44:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:45:05 [end_date_ymd] => 2024-12-28 16:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:45:05' and `end` < '2024-12-28 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-28 16:45:17] Production.INFO: count ==1726 [2024-12-28 16:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:45:05 - End Time 2024-12-28 16:45:05 [2024-12-28 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122843', 'tblTempUsageDetail_20' ) start [2024-12-28 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122843', 'tblTempUsageDetail_20' ) end [2024-12-28 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122843', 'tblTempVendorCDR_20' ) start [2024-12-28 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122843', 'tblTempVendorCDR_20' ) end [2024-12-28 16:45:18] Production.INFO: ProcessCDR(1,14122843,1,1,2) [2024-12-28 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122843', 'tblTempUsageDetail_20' ) start [2024-12-28 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122843', 'tblTempUsageDetail_20' ) end [2024-12-28 16:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:45:23] Production.INFO: ==4478== Releasing lock... [2024-12-28 16:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:45:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:46:05 [end_date_ymd] => 2024-12-28 16:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:46:05' and `end` < '2024-12-28 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-28 16:46:17] Production.INFO: count ==1722 [2024-12-28 16:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:46:05 - End Time 2024-12-28 16:46:05 [2024-12-28 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122848', 'tblTempUsageDetail_20' ) start [2024-12-28 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122848', 'tblTempUsageDetail_20' ) end [2024-12-28 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122848', 'tblTempVendorCDR_20' ) start [2024-12-28 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122848', 'tblTempVendorCDR_20' ) end [2024-12-28 16:46:18] Production.INFO: ProcessCDR(1,14122848,1,1,2) [2024-12-28 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122848', 'tblTempUsageDetail_20' ) start [2024-12-28 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122848', 'tblTempUsageDetail_20' ) end [2024-12-28 16:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:46:21] Production.INFO: ==4646== Releasing lock... [2024-12-28 16:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:46:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:47:04 [end_date_ymd] => 2024-12-28 16:47:04 [RateCDR] => 1 ) [2024-12-28 16: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-28 13:47:04' and `end` < '2024-12-28 16: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-28 16:47:17] Production.INFO: count ==1713 [2024-12-28 16:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:47:04 - End Time 2024-12-28 16:47:04 [2024-12-28 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122853', 'tblTempUsageDetail_20' ) start [2024-12-28 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122853', 'tblTempUsageDetail_20' ) end [2024-12-28 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122853', 'tblTempVendorCDR_20' ) start [2024-12-28 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122853', 'tblTempVendorCDR_20' ) end [2024-12-28 16:47:18] Production.INFO: ProcessCDR(1,14122853,1,1,2) [2024-12-28 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122853', 'tblTempUsageDetail_20' ) start [2024-12-28 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122853', 'tblTempUsageDetail_20' ) end [2024-12-28 16:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:47:21] Production.INFO: ==4800== Releasing lock... [2024-12-28 16:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:47:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:48:05 [end_date_ymd] => 2024-12-28 16:48:05 [RateCDR] => 1 ) [2024-12-28 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:48:05' and `end` < '2024-12-28 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:48:18] Production.INFO: count ==1698 [2024-12-28 16:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:48:05 - End Time 2024-12-28 16:48:05 [2024-12-28 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122858', 'tblTempUsageDetail_20' ) start [2024-12-28 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122858', 'tblTempUsageDetail_20' ) end [2024-12-28 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122858', 'tblTempVendorCDR_20' ) start [2024-12-28 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122858', 'tblTempVendorCDR_20' ) end [2024-12-28 16:48:19] Production.INFO: ProcessCDR(1,14122858,1,1,2) [2024-12-28 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122858', 'tblTempUsageDetail_20' ) start [2024-12-28 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122858', 'tblTempUsageDetail_20' ) end [2024-12-28 16:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:48:22] Production.INFO: ==4994== Releasing lock... [2024-12-28 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:48:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:49:04 [end_date_ymd] => 2024-12-28 16:49:04 [RateCDR] => 1 ) [2024-12-28 16:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:49:04' and `end` < '2024-12-28 16:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:49:17] Production.INFO: count ==1695 [2024-12-28 16:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 13:49:04 - End Time 2024-12-28 16:49:04 [2024-12-28 16:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122863', 'tblTempUsageDetail_20' ) start [2024-12-28 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122863', 'tblTempUsageDetail_20' ) end [2024-12-28 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122863', 'tblTempVendorCDR_20' ) start [2024-12-28 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122863', 'tblTempVendorCDR_20' ) end [2024-12-28 16:49:17] Production.INFO: ProcessCDR(1,14122863,1,1,2) [2024-12-28 16:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122863', 'tblTempUsageDetail_20' ) start [2024-12-28 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122863', 'tblTempUsageDetail_20' ) end [2024-12-28 16:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:49:20] Production.INFO: ==5088== Releasing lock... [2024-12-28 16:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:49:20] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:50:05 [end_date_ymd] => 2024-12-28 16:50:05 [RateCDR] => 1 ) [2024-12-28 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:50:05' and `end` < '2024-12-28 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:50:18] Production.INFO: count ==1689 [2024-12-28 16:50:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:50:05 - End Time 2024-12-28 16:50:05 [2024-12-28 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122869', 'tblTempUsageDetail_20' ) start [2024-12-28 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122869', 'tblTempUsageDetail_20' ) end [2024-12-28 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122869', 'tblTempVendorCDR_20' ) start [2024-12-28 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122869', 'tblTempVendorCDR_20' ) end [2024-12-28 16:50:19] Production.INFO: ProcessCDR(1,14122869,1,1,2) [2024-12-28 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122869', 'tblTempUsageDetail_20' ) start [2024-12-28 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122869', 'tblTempUsageDetail_20' ) end [2024-12-28 16:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:50:22] Production.INFO: ==5167== Releasing lock... [2024-12-28 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:50:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:51:05 [end_date_ymd] => 2024-12-28 16:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:51:05' and `end` < '2024-12-28 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-28 16:51:17] Production.INFO: count ==1718 [2024-12-28 16:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 13:51:05 - End Time 2024-12-28 16:51:05 [2024-12-28 16:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122874', 'tblTempUsageDetail_20' ) start [2024-12-28 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122874', 'tblTempUsageDetail_20' ) end [2024-12-28 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122874', 'tblTempVendorCDR_20' ) start [2024-12-28 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122874', 'tblTempVendorCDR_20' ) end [2024-12-28 16:51:18] Production.INFO: ProcessCDR(1,14122874,1,1,2) [2024-12-28 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122874', 'tblTempUsageDetail_20' ) start [2024-12-28 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122874', 'tblTempUsageDetail_20' ) end [2024-12-28 16:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:51:22] Production.INFO: ==5244== Releasing lock... [2024-12-28 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:51:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:52:05 [end_date_ymd] => 2024-12-28 16:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:52:05' and `end` < '2024-12-28 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-28 16:52:18] Production.INFO: count ==1687 [2024-12-28 16:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:52:05 - End Time 2024-12-28 16:52:05 [2024-12-28 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122879', 'tblTempUsageDetail_20' ) start [2024-12-28 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122879', 'tblTempUsageDetail_20' ) end [2024-12-28 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122879', 'tblTempVendorCDR_20' ) start [2024-12-28 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122879', 'tblTempVendorCDR_20' ) end [2024-12-28 16:52:18] Production.INFO: ProcessCDR(1,14122879,1,1,2) [2024-12-28 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122879', 'tblTempUsageDetail_20' ) start [2024-12-28 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122879', 'tblTempUsageDetail_20' ) end [2024-12-28 16:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:52:21] Production.INFO: ==5324== Releasing lock... [2024-12-28 16:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:52:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:53:05 [end_date_ymd] => 2024-12-28 16:53:05 [RateCDR] => 1 ) [2024-12-28 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:53:05' and `end` < '2024-12-28 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:53:18] Production.INFO: count ==1684 [2024-12-28 16:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:53:05 - End Time 2024-12-28 16:53:05 [2024-12-28 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122884', 'tblTempUsageDetail_20' ) start [2024-12-28 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122884', 'tblTempUsageDetail_20' ) end [2024-12-28 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122884', 'tblTempVendorCDR_20' ) start [2024-12-28 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122884', 'tblTempVendorCDR_20' ) end [2024-12-28 16:53:19] Production.INFO: ProcessCDR(1,14122884,1,1,2) [2024-12-28 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122884', 'tblTempUsageDetail_20' ) start [2024-12-28 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122884', 'tblTempUsageDetail_20' ) end [2024-12-28 16:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:53:22] Production.INFO: ==5406== Releasing lock... [2024-12-28 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:53:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:54:05 [end_date_ymd] => 2024-12-28 16:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:54:05' and `end` < '2024-12-28 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-28 16:54:17] Production.INFO: count ==1680 [2024-12-28 16:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:54:05 - End Time 2024-12-28 16:54:05 [2024-12-28 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122889', 'tblTempUsageDetail_20' ) start [2024-12-28 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122889', 'tblTempUsageDetail_20' ) end [2024-12-28 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122889', 'tblTempVendorCDR_20' ) start [2024-12-28 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122889', 'tblTempVendorCDR_20' ) end [2024-12-28 16:54:18] Production.INFO: ProcessCDR(1,14122889,1,1,2) [2024-12-28 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122889', 'tblTempUsageDetail_20' ) start [2024-12-28 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122889', 'tblTempUsageDetail_20' ) end [2024-12-28 16:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:54:21] Production.INFO: ==5479== Releasing lock... [2024-12-28 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:54:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:55:05 [end_date_ymd] => 2024-12-28 16:55:05 [RateCDR] => 1 ) [2024-12-28 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:55:05' and `end` < '2024-12-28 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:55:18] Production.INFO: count ==1672 [2024-12-28 16:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:55:05 - End Time 2024-12-28 16:55:05 [2024-12-28 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122894', 'tblTempUsageDetail_20' ) start [2024-12-28 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122894', 'tblTempUsageDetail_20' ) end [2024-12-28 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122894', 'tblTempVendorCDR_20' ) start [2024-12-28 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122894', 'tblTempVendorCDR_20' ) end [2024-12-28 16:55:18] Production.INFO: ProcessCDR(1,14122894,1,1,2) [2024-12-28 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122894', 'tblTempUsageDetail_20' ) start [2024-12-28 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122894', 'tblTempUsageDetail_20' ) end [2024-12-28 16:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:55:22] Production.INFO: ==5570== Releasing lock... [2024-12-28 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:55:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:56:05 [end_date_ymd] => 2024-12-28 16:56:05 [RateCDR] => 1 ) [2024-12-28 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 13:56:05' and `end` < '2024-12-28 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 16:56:18] Production.INFO: count ==1671 [2024-12-28 16:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 13:56:05 - End Time 2024-12-28 16:56:05 [2024-12-28 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122899', 'tblTempUsageDetail_20' ) start [2024-12-28 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122899', 'tblTempUsageDetail_20' ) end [2024-12-28 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122899', 'tblTempVendorCDR_20' ) start [2024-12-28 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122899', 'tblTempVendorCDR_20' ) end [2024-12-28 16:56:18] Production.INFO: ProcessCDR(1,14122899,1,1,2) [2024-12-28 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122899', 'tblTempUsageDetail_20' ) start [2024-12-28 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122899', 'tblTempUsageDetail_20' ) end [2024-12-28 16:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:56:22] Production.INFO: ==5655== Releasing lock... [2024-12-28 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:56:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:57:05 [end_date_ymd] => 2024-12-28 16:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:57:05' and `end` < '2024-12-28 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-28 16:57:18] Production.INFO: count ==1674 [2024-12-28 16:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:57:05 - End Time 2024-12-28 16:57:05 [2024-12-28 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122904', 'tblTempUsageDetail_20' ) start [2024-12-28 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122904', 'tblTempUsageDetail_20' ) end [2024-12-28 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122904', 'tblTempVendorCDR_20' ) start [2024-12-28 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122904', 'tblTempVendorCDR_20' ) end [2024-12-28 16:57:19] Production.INFO: ProcessCDR(1,14122904,1,1,2) [2024-12-28 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122904', 'tblTempUsageDetail_20' ) start [2024-12-28 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122904', 'tblTempUsageDetail_20' ) end [2024-12-28 16:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:57:23] Production.INFO: ==5730== Releasing lock... [2024-12-28 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:57:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:58:05 [end_date_ymd] => 2024-12-28 16:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:58:05' and `end` < '2024-12-28 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-28 16:58:18] Production.INFO: count ==1663 [2024-12-28 16:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:58:05 - End Time 2024-12-28 16:58:05 [2024-12-28 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122909', 'tblTempUsageDetail_20' ) start [2024-12-28 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122909', 'tblTempUsageDetail_20' ) end [2024-12-28 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122909', 'tblTempVendorCDR_20' ) start [2024-12-28 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122909', 'tblTempVendorCDR_20' ) end [2024-12-28 16:58:19] Production.INFO: ProcessCDR(1,14122909,1,1,2) [2024-12-28 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122909', 'tblTempUsageDetail_20' ) start [2024-12-28 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122909', 'tblTempUsageDetail_20' ) end [2024-12-28 16:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:58:22] Production.INFO: ==5813== Releasing lock... [2024-12-28 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:58:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 13:59:05 [end_date_ymd] => 2024-12-28 16:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 13:59:05' and `end` < '2024-12-28 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-28 16:59:19] Production.INFO: count ==1655 [2024-12-28 16:59:19] Production.ERROR: pbx CDR StartTime 2024-12-28 13:59:05 - End Time 2024-12-28 16:59:05 [2024-12-28 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122914', 'tblTempUsageDetail_20' ) start [2024-12-28 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122914', 'tblTempUsageDetail_20' ) end [2024-12-28 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122914', 'tblTempVendorCDR_20' ) start [2024-12-28 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122914', 'tblTempVendorCDR_20' ) end [2024-12-28 16:59:19] Production.INFO: ProcessCDR(1,14122914,1,1,2) [2024-12-28 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122914', 'tblTempUsageDetail_20' ) start [2024-12-28 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122914', 'tblTempUsageDetail_20' ) end [2024-12-28 16:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 16:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 16:59:22] Production.INFO: ==5896== Releasing lock... [2024-12-28 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 16:59:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:00:05 [end_date_ymd] => 2024-12-28 17:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:00:05' and `end` < '2024-12-28 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-28 17:00:18] Production.INFO: count ==1657 [2024-12-28 17:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:00:05 - End Time 2024-12-28 17:00:05 [2024-12-28 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122919', 'tblTempUsageDetail_20' ) start [2024-12-28 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122919', 'tblTempUsageDetail_20' ) end [2024-12-28 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122919', 'tblTempVendorCDR_20' ) start [2024-12-28 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122919', 'tblTempVendorCDR_20' ) end [2024-12-28 17:00:18] Production.INFO: ProcessCDR(1,14122919,1,1,2) [2024-12-28 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122919', 'tblTempUsageDetail_20' ) start [2024-12-28 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122919', 'tblTempUsageDetail_20' ) end [2024-12-28 17:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:00:23] Production.INFO: ==5975== Releasing lock... [2024-12-28 17:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:00:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:01:05 [end_date_ymd] => 2024-12-28 17:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:01:05' and `end` < '2024-12-28 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-28 17:01:18] Production.INFO: count ==1680 [2024-12-28 17:01:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:01:05 - End Time 2024-12-28 17:01:05 [2024-12-28 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122925', 'tblTempUsageDetail_20' ) start [2024-12-28 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122925', 'tblTempUsageDetail_20' ) end [2024-12-28 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122925', 'tblTempVendorCDR_20' ) start [2024-12-28 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122925', 'tblTempVendorCDR_20' ) end [2024-12-28 17:01:19] Production.INFO: ProcessCDR(1,14122925,1,1,2) [2024-12-28 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122925', 'tblTempUsageDetail_20' ) start [2024-12-28 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122925', 'tblTempUsageDetail_20' ) end [2024-12-28 17:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:01:22] Production.INFO: ==6069== Releasing lock... [2024-12-28 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:01:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:02:05 [end_date_ymd] => 2024-12-28 17:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:02:05' and `end` < '2024-12-28 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-28 17:02:18] Production.INFO: count ==1705 [2024-12-28 17:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:02:05 - End Time 2024-12-28 17:02:05 [2024-12-28 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122930', 'tblTempUsageDetail_20' ) start [2024-12-28 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122930', 'tblTempUsageDetail_20' ) end [2024-12-28 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122930', 'tblTempVendorCDR_20' ) start [2024-12-28 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122930', 'tblTempVendorCDR_20' ) end [2024-12-28 17:02:18] Production.INFO: ProcessCDR(1,14122930,1,1,2) [2024-12-28 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122930', 'tblTempUsageDetail_20' ) start [2024-12-28 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122930', 'tblTempUsageDetail_20' ) end [2024-12-28 17:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:02:21] Production.INFO: ==6148== Releasing lock... [2024-12-28 17:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:02:21] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:03:05 [end_date_ymd] => 2024-12-28 17:03:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:03:05' and `end` < '2024-12-28 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-28 17:03:19] Production.INFO: count ==1718 [2024-12-28 17:03:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:03:05 - End Time 2024-12-28 17:03:05 [2024-12-28 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122935', 'tblTempUsageDetail_20' ) start [2024-12-28 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122935', 'tblTempUsageDetail_20' ) end [2024-12-28 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122935', 'tblTempVendorCDR_20' ) start [2024-12-28 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122935', 'tblTempVendorCDR_20' ) end [2024-12-28 17:03:19] Production.INFO: ProcessCDR(1,14122935,1,1,2) [2024-12-28 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122935', 'tblTempUsageDetail_20' ) start [2024-12-28 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122935', 'tblTempUsageDetail_20' ) end [2024-12-28 17:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:03:24] Production.INFO: ==6229== Releasing lock... [2024-12-28 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:03:24] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:04:05 [end_date_ymd] => 2024-12-28 17:04:05 [RateCDR] => 1 ) [2024-12-28 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:04:05' and `end` < '2024-12-28 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:04:18] Production.INFO: count ==1711 [2024-12-28 17:04:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:04:05 - End Time 2024-12-28 17:04:05 [2024-12-28 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122940', 'tblTempUsageDetail_20' ) start [2024-12-28 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122940', 'tblTempUsageDetail_20' ) end [2024-12-28 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122940', 'tblTempVendorCDR_20' ) start [2024-12-28 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122940', 'tblTempVendorCDR_20' ) end [2024-12-28 17:04:18] Production.INFO: ProcessCDR(1,14122940,1,1,2) [2024-12-28 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122940', 'tblTempUsageDetail_20' ) start [2024-12-28 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122940', 'tblTempUsageDetail_20' ) end [2024-12-28 17:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:04:21] Production.INFO: ==6350== Releasing lock... [2024-12-28 17:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:04:21] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:05:04 [end_date_ymd] => 2024-12-28 17:05:04 [RateCDR] => 1 ) [2024-12-28 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:05:04' and `end` < '2024-12-28 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:05:17] Production.INFO: count ==1706 [2024-12-28 17:05:17] Production.ERROR: pbx CDR StartTime 2024-12-28 14:05:04 - End Time 2024-12-28 17:05:04 [2024-12-28 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122945', 'tblTempUsageDetail_20' ) start [2024-12-28 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122945', 'tblTempUsageDetail_20' ) end [2024-12-28 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122945', 'tblTempVendorCDR_20' ) start [2024-12-28 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122945', 'tblTempVendorCDR_20' ) end [2024-12-28 17:05:17] Production.INFO: ProcessCDR(1,14122945,1,1,2) [2024-12-28 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122945', 'tblTempUsageDetail_20' ) start [2024-12-28 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122945', 'tblTempUsageDetail_20' ) end [2024-12-28 17:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:05:21] Production.INFO: ==6429== Releasing lock... [2024-12-28 17:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:05:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:06:05 [end_date_ymd] => 2024-12-28 17:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:06:05' and `end` < '2024-12-28 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-28 17:06:18] Production.INFO: count ==1706 [2024-12-28 17:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:06:05 - End Time 2024-12-28 17:06:05 [2024-12-28 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122950', 'tblTempUsageDetail_20' ) start [2024-12-28 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122950', 'tblTempUsageDetail_20' ) end [2024-12-28 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122950', 'tblTempVendorCDR_20' ) start [2024-12-28 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122950', 'tblTempVendorCDR_20' ) end [2024-12-28 17:06:19] Production.INFO: ProcessCDR(1,14122950,1,1,2) [2024-12-28 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122950', 'tblTempUsageDetail_20' ) start [2024-12-28 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122950', 'tblTempUsageDetail_20' ) end [2024-12-28 17:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:06:22] Production.INFO: ==6508== Releasing lock... [2024-12-28 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:06:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:07:06 [end_date_ymd] => 2024-12-28 17:07:06 [RateCDR] => 1 ) [2024-12-28 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:07:06' and `end` < '2024-12-28 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:07:18] Production.INFO: count ==1695 [2024-12-28 17:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:07:06 - End Time 2024-12-28 17:07:06 [2024-12-28 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122955', 'tblTempUsageDetail_20' ) start [2024-12-28 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122955', 'tblTempUsageDetail_20' ) end [2024-12-28 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122955', 'tblTempVendorCDR_20' ) start [2024-12-28 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122955', 'tblTempVendorCDR_20' ) end [2024-12-28 17:07:19] Production.INFO: ProcessCDR(1,14122955,1,1,2) [2024-12-28 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122955', 'tblTempUsageDetail_20' ) start [2024-12-28 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122955', 'tblTempUsageDetail_20' ) end [2024-12-28 17:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:07:22] Production.INFO: ==6592== Releasing lock... [2024-12-28 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:07:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:08:05 [end_date_ymd] => 2024-12-28 17:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:08:05' and `end` < '2024-12-28 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-28 17:08:17] Production.INFO: count ==1690 [2024-12-28 17:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:08:05 - End Time 2024-12-28 17:08:05 [2024-12-28 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122960', 'tblTempUsageDetail_20' ) start [2024-12-28 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122960', 'tblTempUsageDetail_20' ) end [2024-12-28 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122960', 'tblTempVendorCDR_20' ) start [2024-12-28 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122960', 'tblTempVendorCDR_20' ) end [2024-12-28 17:08:18] Production.INFO: ProcessCDR(1,14122960,1,1,2) [2024-12-28 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122960', 'tblTempUsageDetail_20' ) start [2024-12-28 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122960', 'tblTempUsageDetail_20' ) end [2024-12-28 17:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:08:22] Production.INFO: ==6672== Releasing lock... [2024-12-28 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:08:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:09:05 [end_date_ymd] => 2024-12-28 17:09:05 [RateCDR] => 1 ) [2024-12-28 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:09:05' and `end` < '2024-12-28 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:09:18] Production.INFO: count ==1687 [2024-12-28 17:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:09:05 - End Time 2024-12-28 17:09:05 [2024-12-28 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122965', 'tblTempUsageDetail_20' ) start [2024-12-28 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122965', 'tblTempUsageDetail_20' ) end [2024-12-28 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122965', 'tblTempVendorCDR_20' ) start [2024-12-28 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122965', 'tblTempVendorCDR_20' ) end [2024-12-28 17:09:18] Production.INFO: ProcessCDR(1,14122965,1,1,2) [2024-12-28 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122965', 'tblTempUsageDetail_20' ) start [2024-12-28 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122965', 'tblTempUsageDetail_20' ) end [2024-12-28 17:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:09:22] Production.INFO: ==6752== Releasing lock... [2024-12-28 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:09:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:10:05 [end_date_ymd] => 2024-12-28 17:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:10:05' and `end` < '2024-12-28 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-28 17:10:18] Production.INFO: count ==1688 [2024-12-28 17:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:10:05 - End Time 2024-12-28 17:10:05 [2024-12-28 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122971', 'tblTempUsageDetail_20' ) start [2024-12-28 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122971', 'tblTempUsageDetail_20' ) end [2024-12-28 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122971', 'tblTempVendorCDR_20' ) start [2024-12-28 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122971', 'tblTempVendorCDR_20' ) end [2024-12-28 17:10:18] Production.INFO: ProcessCDR(1,14122971,1,1,2) [2024-12-28 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122971', 'tblTempUsageDetail_20' ) start [2024-12-28 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122971', 'tblTempUsageDetail_20' ) end [2024-12-28 17:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:10:23] Production.INFO: ==6833== Releasing lock... [2024-12-28 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:10:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:11:05 [end_date_ymd] => 2024-12-28 17:11:05 [RateCDR] => 1 ) [2024-12-28 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:11:05' and `end` < '2024-12-28 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:11:18] Production.INFO: count ==1720 [2024-12-28 17:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:11:05 - End Time 2024-12-28 17:11:05 [2024-12-28 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122976', 'tblTempUsageDetail_20' ) start [2024-12-28 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122976', 'tblTempUsageDetail_20' ) end [2024-12-28 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122976', 'tblTempVendorCDR_20' ) start [2024-12-28 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122976', 'tblTempVendorCDR_20' ) end [2024-12-28 17:11:18] Production.INFO: ProcessCDR(1,14122976,1,1,2) [2024-12-28 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122976', 'tblTempUsageDetail_20' ) start [2024-12-28 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122976', 'tblTempUsageDetail_20' ) end [2024-12-28 17:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:11:23] Production.INFO: ==6922== Releasing lock... [2024-12-28 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:11:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:12:05 [end_date_ymd] => 2024-12-28 17:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:12:05' and `end` < '2024-12-28 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-28 17:12:17] Production.INFO: count ==1719 [2024-12-28 17:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:12:05 - End Time 2024-12-28 17:12:05 [2024-12-28 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122981', 'tblTempUsageDetail_20' ) start [2024-12-28 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122981', 'tblTempUsageDetail_20' ) end [2024-12-28 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122981', 'tblTempVendorCDR_20' ) start [2024-12-28 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122981', 'tblTempVendorCDR_20' ) end [2024-12-28 17:12:18] Production.INFO: ProcessCDR(1,14122981,1,1,2) [2024-12-28 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122981', 'tblTempUsageDetail_20' ) start [2024-12-28 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122981', 'tblTempUsageDetail_20' ) end [2024-12-28 17:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:12:21] Production.INFO: ==7005== Releasing lock... [2024-12-28 17:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:12:21] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:13:05 [end_date_ymd] => 2024-12-28 17:13:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:13:05' and `end` < '2024-12-28 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-28 17:13:19] Production.INFO: count ==1721 [2024-12-28 17:13:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:13:05 - End Time 2024-12-28 17:13:05 [2024-12-28 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122986', 'tblTempUsageDetail_20' ) start [2024-12-28 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122986', 'tblTempUsageDetail_20' ) end [2024-12-28 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122986', 'tblTempVendorCDR_20' ) start [2024-12-28 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122986', 'tblTempVendorCDR_20' ) end [2024-12-28 17:13:19] Production.INFO: ProcessCDR(1,14122986,1,1,2) [2024-12-28 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122986', 'tblTempUsageDetail_20' ) start [2024-12-28 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122986', 'tblTempUsageDetail_20' ) end [2024-12-28 17:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:13:24] Production.INFO: ==7083== Releasing lock... [2024-12-28 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:13:24] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:14:06 [end_date_ymd] => 2024-12-28 17:14:06 [RateCDR] => 1 ) [2024-12-28 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:14:06' and `end` < '2024-12-28 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:14:18] Production.INFO: count ==1725 [2024-12-28 17:14:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:14:06 - End Time 2024-12-28 17:14:06 [2024-12-28 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122991', 'tblTempUsageDetail_20' ) start [2024-12-28 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122991', 'tblTempUsageDetail_20' ) end [2024-12-28 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122991', 'tblTempVendorCDR_20' ) start [2024-12-28 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122991', 'tblTempVendorCDR_20' ) end [2024-12-28 17:14:19] Production.INFO: ProcessCDR(1,14122991,1,1,2) [2024-12-28 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122991', 'tblTempUsageDetail_20' ) start [2024-12-28 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122991', 'tblTempUsageDetail_20' ) end [2024-12-28 17:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:14:23] Production.INFO: ==7171== Releasing lock... [2024-12-28 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:14:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:15:04 [end_date_ymd] => 2024-12-28 17:15:04 [RateCDR] => 1 ) [2024-12-28 17:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:15:04' and `end` < '2024-12-28 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:15:17] Production.INFO: count ==1724 [2024-12-28 17:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:15:04 - End Time 2024-12-28 17:15:04 [2024-12-28 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122996', 'tblTempUsageDetail_20' ) start [2024-12-28 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14122996', 'tblTempUsageDetail_20' ) end [2024-12-28 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122996', 'tblTempVendorCDR_20' ) start [2024-12-28 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14122996', 'tblTempVendorCDR_20' ) end [2024-12-28 17:15:18] Production.INFO: ProcessCDR(1,14122996,1,1,2) [2024-12-28 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14122996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14122996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14122996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14122996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122996', 'tblTempUsageDetail_20' ) start [2024-12-28 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14122996', 'tblTempUsageDetail_20' ) end [2024-12-28 17:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:15:22] Production.INFO: ==7249== Releasing lock... [2024-12-28 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:15:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:16:05 [end_date_ymd] => 2024-12-28 17:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:16:05' and `end` < '2024-12-28 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-28 17:16:18] Production.INFO: count ==1719 [2024-12-28 17:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:16:05 - End Time 2024-12-28 17:16:05 [2024-12-28 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123001', 'tblTempUsageDetail_20' ) start [2024-12-28 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123001', 'tblTempUsageDetail_20' ) end [2024-12-28 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123001', 'tblTempVendorCDR_20' ) start [2024-12-28 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123001', 'tblTempVendorCDR_20' ) end [2024-12-28 17:16:18] Production.INFO: ProcessCDR(1,14123001,1,1,2) [2024-12-28 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123001', 'tblTempUsageDetail_20' ) start [2024-12-28 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123001', 'tblTempUsageDetail_20' ) end [2024-12-28 17:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:16:22] Production.INFO: ==7333== Releasing lock... [2024-12-28 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:16:22] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:17:05 [end_date_ymd] => 2024-12-28 17:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:17:05' and `end` < '2024-12-28 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-28 17:17:18] Production.INFO: count ==1723 [2024-12-28 17:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:17:05 - End Time 2024-12-28 17:17:05 [2024-12-28 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123006', 'tblTempUsageDetail_20' ) start [2024-12-28 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123006', 'tblTempUsageDetail_20' ) end [2024-12-28 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123006', 'tblTempVendorCDR_20' ) start [2024-12-28 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123006', 'tblTempVendorCDR_20' ) end [2024-12-28 17:17:18] Production.INFO: ProcessCDR(1,14123006,1,1,2) [2024-12-28 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123006', 'tblTempUsageDetail_20' ) start [2024-12-28 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123006', 'tblTempUsageDetail_20' ) end [2024-12-28 17:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:17:23] Production.INFO: ==7415== Releasing lock... [2024-12-28 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:17:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:18:05 [end_date_ymd] => 2024-12-28 17:18:05 [RateCDR] => 1 ) [2024-12-28 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:18:05' and `end` < '2024-12-28 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:18:20] Production.INFO: count ==1729 [2024-12-28 17:18:20] Production.ERROR: pbx CDR StartTime 2024-12-28 14:18:05 - End Time 2024-12-28 17:18:05 [2024-12-28 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123011', 'tblTempUsageDetail_20' ) start [2024-12-28 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123011', 'tblTempUsageDetail_20' ) end [2024-12-28 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123011', 'tblTempVendorCDR_20' ) start [2024-12-28 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123011', 'tblTempVendorCDR_20' ) end [2024-12-28 17:18:20] Production.INFO: ProcessCDR(1,14123011,1,1,2) [2024-12-28 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123011', 'tblTempUsageDetail_20' ) start [2024-12-28 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123011', 'tblTempUsageDetail_20' ) end [2024-12-28 17:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:18:25] Production.INFO: ==7489== Releasing lock... [2024-12-28 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:18:25] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:19:05 [end_date_ymd] => 2024-12-28 17:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:19:05' and `end` < '2024-12-28 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-28 17:19:18] Production.INFO: count ==1727 [2024-12-28 17:19:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:19:05 - End Time 2024-12-28 17:19:05 [2024-12-28 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123016', 'tblTempUsageDetail_20' ) start [2024-12-28 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123016', 'tblTempUsageDetail_20' ) end [2024-12-28 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123016', 'tblTempVendorCDR_20' ) start [2024-12-28 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123016', 'tblTempVendorCDR_20' ) end [2024-12-28 17:19:19] Production.INFO: ProcessCDR(1,14123016,1,1,2) [2024-12-28 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123016', 'tblTempUsageDetail_20' ) start [2024-12-28 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123016', 'tblTempUsageDetail_20' ) end [2024-12-28 17:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:19:23] Production.INFO: ==7607== Releasing lock... [2024-12-28 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:19:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:20:06 [end_date_ymd] => 2024-12-28 17:20:06 [RateCDR] => 1 ) [2024-12-28 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-28 14:20:06' and `end` < '2024-12-28 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-28 17:20:18] Production.INFO: count ==1725 [2024-12-28 17:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:20:06 - End Time 2024-12-28 17:20:06 [2024-12-28 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123022', 'tblTempUsageDetail_20' ) start [2024-12-28 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123022', 'tblTempUsageDetail_20' ) end [2024-12-28 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123022', 'tblTempVendorCDR_20' ) start [2024-12-28 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123022', 'tblTempVendorCDR_20' ) end [2024-12-28 17:20:19] Production.INFO: ProcessCDR(1,14123022,1,1,2) [2024-12-28 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123022', 'tblTempUsageDetail_20' ) start [2024-12-28 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123022', 'tblTempUsageDetail_20' ) end [2024-12-28 17:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:20:22] Production.INFO: ==7689== Releasing lock... [2024-12-28 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:20:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:21:05 [end_date_ymd] => 2024-12-28 17:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:21:05' and `end` < '2024-12-28 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-28 17:21:18] Production.INFO: count ==1732 [2024-12-28 17:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:21:05 - End Time 2024-12-28 17:21:05 [2024-12-28 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123027', 'tblTempUsageDetail_20' ) start [2024-12-28 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123027', 'tblTempUsageDetail_20' ) end [2024-12-28 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123027', 'tblTempVendorCDR_20' ) start [2024-12-28 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123027', 'tblTempVendorCDR_20' ) end [2024-12-28 17:21:18] Production.INFO: ProcessCDR(1,14123027,1,1,2) [2024-12-28 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123027', 'tblTempUsageDetail_20' ) start [2024-12-28 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123027', 'tblTempUsageDetail_20' ) end [2024-12-28 17:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:21:21] Production.INFO: ==7768== Releasing lock... [2024-12-28 17:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:21:21] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:22:05 [end_date_ymd] => 2024-12-28 17:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:22:05' and `end` < '2024-12-28 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-28 17:22:17] Production.INFO: count ==1730 [2024-12-28 17:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:22:05 - End Time 2024-12-28 17:22:05 [2024-12-28 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123032', 'tblTempUsageDetail_20' ) start [2024-12-28 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123032', 'tblTempUsageDetail_20' ) end [2024-12-28 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123032', 'tblTempVendorCDR_20' ) start [2024-12-28 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123032', 'tblTempVendorCDR_20' ) end [2024-12-28 17:22:18] Production.INFO: ProcessCDR(1,14123032,1,1,2) [2024-12-28 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123032', 'tblTempUsageDetail_20' ) start [2024-12-28 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123032', 'tblTempUsageDetail_20' ) end [2024-12-28 17:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:22:21] Production.INFO: ==7846== Releasing lock... [2024-12-28 17:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:22:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-28 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:23:05 [end_date_ymd] => 2024-12-28 17:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:23:05' and `end` < '2024-12-28 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-28 17:23:19] Production.INFO: count ==1697 [2024-12-28 17:23:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:23:05 - End Time 2024-12-28 17:23:05 [2024-12-28 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123037', 'tblTempUsageDetail_20' ) start [2024-12-28 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123037', 'tblTempUsageDetail_20' ) end [2024-12-28 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123037', 'tblTempVendorCDR_20' ) start [2024-12-28 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123037', 'tblTempVendorCDR_20' ) end [2024-12-28 17:23:19] Production.INFO: ProcessCDR(1,14123037,1,1,2) [2024-12-28 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123037', 'tblTempUsageDetail_20' ) start [2024-12-28 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123037', 'tblTempUsageDetail_20' ) end [2024-12-28 17:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:23:24] Production.INFO: ==7922== Releasing lock... [2024-12-28 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:23:24] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:24:04 [end_date_ymd] => 2024-12-28 17:24:04 [RateCDR] => 1 ) [2024-12-28 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-28 14:24:04' and `end` < '2024-12-28 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-28 17:24:17] Production.INFO: count ==1686 [2024-12-28 17:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:24:04 - End Time 2024-12-28 17:24:04 [2024-12-28 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123042', 'tblTempUsageDetail_20' ) start [2024-12-28 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123042', 'tblTempUsageDetail_20' ) end [2024-12-28 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123042', 'tblTempVendorCDR_20' ) start [2024-12-28 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123042', 'tblTempVendorCDR_20' ) end [2024-12-28 17:24:18] Production.INFO: ProcessCDR(1,14123042,1,1,2) [2024-12-28 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123042', 'tblTempUsageDetail_20' ) start [2024-12-28 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123042', 'tblTempUsageDetail_20' ) end [2024-12-28 17:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:24:23] Production.INFO: ==7999== Releasing lock... [2024-12-28 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:24:23] Production.INFO: 41 MB #Memory Used# [2024-12-28 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:25:05 [end_date_ymd] => 2024-12-28 17:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:25:05' and `end` < '2024-12-28 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-28 17:25:18] Production.INFO: count ==1691 [2024-12-28 17:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:25:05 - End Time 2024-12-28 17:25:05 [2024-12-28 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123047', 'tblTempUsageDetail_20' ) start [2024-12-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123047', 'tblTempUsageDetail_20' ) end [2024-12-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123047', 'tblTempVendorCDR_20' ) start [2024-12-28 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123047', 'tblTempVendorCDR_20' ) end [2024-12-28 17:25:18] Production.INFO: ProcessCDR(1,14123047,1,1,2) [2024-12-28 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123047', 'tblTempUsageDetail_20' ) start [2024-12-28 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123047', 'tblTempUsageDetail_20' ) end [2024-12-28 17:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:25:23] Production.INFO: ==8080== Releasing lock... [2024-12-28 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:25:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:26:19 [end_date_ymd] => 2024-12-28 17:26:19 [RateCDR] => 1 ) [2024-12-28 17:26: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-28 14:26:19' and `end` < '2024-12-28 17:26: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-28 17:26:32] Production.INFO: count ==1673 [2024-12-28 17:26:34] Production.ERROR: pbx CDR StartTime 2024-12-28 14:26:19 - End Time 2024-12-28 17:26:19 [2024-12-28 17:26:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123052', 'tblTempUsageDetail_20' ) start [2024-12-28 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123052', 'tblTempUsageDetail_20' ) end [2024-12-28 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123052', 'tblTempVendorCDR_20' ) start [2024-12-28 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123052', 'tblTempVendorCDR_20' ) end [2024-12-28 17:26:34] Production.INFO: ProcessCDR(1,14123052,1,1,2) [2024-12-28 17:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:26:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:26:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:26:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:26:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123052', 'tblTempUsageDetail_20' ) start [2024-12-28 17:26:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123052', 'tblTempUsageDetail_20' ) end [2024-12-28 17:26:57] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:26:57] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:26:57] Production.INFO: ==8164== Releasing lock... [2024-12-28 17:26:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:26:57] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:27:24] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:27:24 [end_date_ymd] => 2024-12-28 17:27:24 [RateCDR] => 1 ) [2024-12-28 17:27:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:27:24' and `end` < '2024-12-28 17:27:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:27:38] Production.INFO: count ==1672 [2024-12-28 17:27:41] Production.ERROR: pbx CDR StartTime 2024-12-28 14:27:24 - End Time 2024-12-28 17:27:24 [2024-12-28 17:27:41] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123056', 'tblTempUsageDetail_20' ) start [2024-12-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123056', 'tblTempUsageDetail_20' ) end [2024-12-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123056', 'tblTempVendorCDR_20' ) start [2024-12-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123056', 'tblTempVendorCDR_20' ) end [2024-12-28 17:27:41] Production.INFO: ProcessCDR(1,14123056,1,1,2) [2024-12-28 17:27:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:27:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:27:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:27:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:27:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123056', 'tblTempUsageDetail_20' ) start [2024-12-28 17:27:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123056', 'tblTempUsageDetail_20' ) end [2024-12-28 17:27:58] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:27:58] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:27:58] Production.INFO: ==8266== Releasing lock... [2024-12-28 17:27:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:27:58] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:28:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:28:17 [end_date_ymd] => 2024-12-28 17:28:17 [RateCDR] => 1 ) [2024-12-28 17:28: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-28 14:28:17' and `end` < '2024-12-28 17:28: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-28 17:28:30] Production.INFO: count ==1672 [2024-12-28 17:28:33] Production.ERROR: pbx CDR StartTime 2024-12-28 14:28:17 - End Time 2024-12-28 17:28:17 [2024-12-28 17:28:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123061', 'tblTempUsageDetail_20' ) start [2024-12-28 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123061', 'tblTempUsageDetail_20' ) end [2024-12-28 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123061', 'tblTempVendorCDR_20' ) start [2024-12-28 17:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123061', 'tblTempVendorCDR_20' ) end [2024-12-28 17:28:34] Production.INFO: ProcessCDR(1,14123061,1,1,2) [2024-12-28 17:28:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:28:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:28:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:28:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123061', 'tblTempUsageDetail_20' ) start [2024-12-28 17:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123061', 'tblTempUsageDetail_20' ) end [2024-12-28 17:28:51] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:28:51] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:28:51] Production.INFO: ==8355== Releasing lock... [2024-12-28 17:28:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:28:51] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:29:14] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:29:14 [end_date_ymd] => 2024-12-28 17:29:14 [RateCDR] => 1 ) [2024-12-28 17:29:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:29:14' and `end` < '2024-12-28 17:29:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:29:27] Production.INFO: count ==1672 [2024-12-28 17:29:37] Production.ERROR: pbx CDR StartTime 2024-12-28 14:29:14 - End Time 2024-12-28 17:29:14 [2024-12-28 17:29:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123065', 'tblTempUsageDetail_20' ) start [2024-12-28 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123065', 'tblTempUsageDetail_20' ) end [2024-12-28 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123065', 'tblTempVendorCDR_20' ) start [2024-12-28 17:29:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123065', 'tblTempVendorCDR_20' ) end [2024-12-28 17:29:41] Production.INFO: ProcessCDR(1,14123065,1,1,2) [2024-12-28 17:29:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:29:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:29:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:29:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:29:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123065', 'tblTempUsageDetail_20' ) start [2024-12-28 17:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123065', 'tblTempUsageDetail_20' ) end [2024-12-28 17:29:56] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:29:56] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:29:59] Production.INFO: ==8449== Releasing lock... [2024-12-28 17:29:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:29:59] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:30:22] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:30:22 [end_date_ymd] => 2024-12-28 17:30:22 [RateCDR] => 1 ) [2024-12-28 17:30: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-28 14:30:22' and `end` < '2024-12-28 17:30:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:30:36] Production.INFO: count ==1669 [2024-12-28 17:30:43] Production.ERROR: pbx CDR StartTime 2024-12-28 14:30:22 - End Time 2024-12-28 17:30:22 [2024-12-28 17:30:43] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123071', 'tblTempUsageDetail_20' ) start [2024-12-28 17:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123071', 'tblTempUsageDetail_20' ) end [2024-12-28 17:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123071', 'tblTempVendorCDR_20' ) start [2024-12-28 17:30:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123071', 'tblTempVendorCDR_20' ) end [2024-12-28 17:30:47] Production.INFO: ProcessCDR(1,14123071,1,1,2) [2024-12-28 17:30:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:30:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:30:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:31:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:31:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123071', 'tblTempUsageDetail_20' ) start [2024-12-28 17:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123071', 'tblTempUsageDetail_20' ) end [2024-12-28 17:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:31:22] Production.INFO: ==8541== Releasing lock... [2024-12-28 17:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:31:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:32:23] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:32:23 [end_date_ymd] => 2024-12-28 17:32:23 [RateCDR] => 1 ) [2024-12-28 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-28 14:32:23' and `end` < '2024-12-28 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-28 17:32:37] Production.INFO: count ==1663 [2024-12-28 17:32:48] Production.ERROR: pbx CDR StartTime 2024-12-28 14:32:23 - End Time 2024-12-28 17:32:23 [2024-12-28 17:32:48] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:32:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123079', 'tblTempUsageDetail_20' ) start [2024-12-28 17:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123079', 'tblTempUsageDetail_20' ) end [2024-12-28 17:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123079', 'tblTempVendorCDR_20' ) start [2024-12-28 17:32:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123079', 'tblTempVendorCDR_20' ) end [2024-12-28 17:32:53] Production.INFO: ProcessCDR(1,14123079,1,1,2) [2024-12-28 17:32:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:32:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:32:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123079', 'tblTempUsageDetail_20' ) start [2024-12-28 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123079', 'tblTempUsageDetail_20' ) end [2024-12-28 17:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:33:25] Production.INFO: ==8697== Releasing lock... [2024-12-28 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:33:25] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:34:05 [end_date_ymd] => 2024-12-28 17:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:34:05' and `end` < '2024-12-28 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-28 17:34:17] Production.INFO: count ==1659 [2024-12-28 17:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:34:05 - End Time 2024-12-28 17:34:05 [2024-12-28 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123087', 'tblTempUsageDetail_20' ) start [2024-12-28 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123087', 'tblTempUsageDetail_20' ) end [2024-12-28 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123087', 'tblTempVendorCDR_20' ) start [2024-12-28 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123087', 'tblTempVendorCDR_20' ) end [2024-12-28 17:34:18] Production.INFO: ProcessCDR(1,14123087,1,1,2) [2024-12-28 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123087', 'tblTempUsageDetail_20' ) start [2024-12-28 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123087', 'tblTempUsageDetail_20' ) end [2024-12-28 17:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:34:21] Production.INFO: ==8841== Releasing lock... [2024-12-28 17:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:34:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:35:05 [end_date_ymd] => 2024-12-28 17:35:05 [RateCDR] => 1 ) [2024-12-28 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:35:05' and `end` < '2024-12-28 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:35:18] Production.INFO: count ==1663 [2024-12-28 17:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:35:05 - End Time 2024-12-28 17:35:05 [2024-12-28 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123092', 'tblTempUsageDetail_20' ) start [2024-12-28 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123092', 'tblTempUsageDetail_20' ) end [2024-12-28 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123092', 'tblTempVendorCDR_20' ) start [2024-12-28 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123092', 'tblTempVendorCDR_20' ) end [2024-12-28 17:35:18] Production.INFO: ProcessCDR(1,14123092,1,1,2) [2024-12-28 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123092', 'tblTempUsageDetail_20' ) start [2024-12-28 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123092', 'tblTempUsageDetail_20' ) end [2024-12-28 17:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:35:23] Production.INFO: ==8953== Releasing lock... [2024-12-28 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:35:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:36:05 [end_date_ymd] => 2024-12-28 17:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:36:05' and `end` < '2024-12-28 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-28 17:36:18] Production.INFO: count ==1663 [2024-12-28 17:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:36:05 - End Time 2024-12-28 17:36:05 [2024-12-28 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123097', 'tblTempUsageDetail_20' ) start [2024-12-28 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123097', 'tblTempUsageDetail_20' ) end [2024-12-28 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123097', 'tblTempVendorCDR_20' ) start [2024-12-28 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123097', 'tblTempVendorCDR_20' ) end [2024-12-28 17:36:18] Production.INFO: ProcessCDR(1,14123097,1,1,2) [2024-12-28 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123097', 'tblTempUsageDetail_20' ) start [2024-12-28 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123097', 'tblTempUsageDetail_20' ) end [2024-12-28 17:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:36:21] Production.INFO: ==9027== Releasing lock... [2024-12-28 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:36:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:37:05 [end_date_ymd] => 2024-12-28 17:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:37:05' and `end` < '2024-12-28 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-28 17:37:19] Production.INFO: count ==1665 [2024-12-28 17:37:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:37:05 - End Time 2024-12-28 17:37:05 [2024-12-28 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123102', 'tblTempUsageDetail_20' ) start [2024-12-28 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123102', 'tblTempUsageDetail_20' ) end [2024-12-28 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123102', 'tblTempVendorCDR_20' ) start [2024-12-28 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123102', 'tblTempVendorCDR_20' ) end [2024-12-28 17:37:19] Production.INFO: ProcessCDR(1,14123102,1,1,2) [2024-12-28 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123102', 'tblTempUsageDetail_20' ) start [2024-12-28 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123102', 'tblTempUsageDetail_20' ) end [2024-12-28 17:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:37:23] Production.INFO: ==9103== Releasing lock... [2024-12-28 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:37:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:38:05 [end_date_ymd] => 2024-12-28 17:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:38:05' and `end` < '2024-12-28 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-28 17:38:18] Production.INFO: count ==1659 [2024-12-28 17:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:38:05 - End Time 2024-12-28 17:38:05 [2024-12-28 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123107', 'tblTempUsageDetail_20' ) start [2024-12-28 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123107', 'tblTempUsageDetail_20' ) end [2024-12-28 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123107', 'tblTempVendorCDR_20' ) start [2024-12-28 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123107', 'tblTempVendorCDR_20' ) end [2024-12-28 17:38:18] Production.INFO: ProcessCDR(1,14123107,1,1,2) [2024-12-28 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123107', 'tblTempUsageDetail_20' ) start [2024-12-28 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123107', 'tblTempUsageDetail_20' ) end [2024-12-28 17:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:38:21] Production.INFO: ==9178== Releasing lock... [2024-12-28 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:38:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:39:04 [end_date_ymd] => 2024-12-28 17:39:04 [RateCDR] => 1 ) [2024-12-28 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:39:04' and `end` < '2024-12-28 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:39:19] Production.INFO: count ==1658 [2024-12-28 17:39:20] Production.ERROR: pbx CDR StartTime 2024-12-28 14:39:04 - End Time 2024-12-28 17:39:04 [2024-12-28 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123112', 'tblTempUsageDetail_20' ) start [2024-12-28 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123112', 'tblTempUsageDetail_20' ) end [2024-12-28 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123112', 'tblTempVendorCDR_20' ) start [2024-12-28 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123112', 'tblTempVendorCDR_20' ) end [2024-12-28 17:39:20] Production.INFO: ProcessCDR(1,14123112,1,1,2) [2024-12-28 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123112', 'tblTempUsageDetail_20' ) start [2024-12-28 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123112', 'tblTempUsageDetail_20' ) end [2024-12-28 17:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:39:23] Production.INFO: ==9254== Releasing lock... [2024-12-28 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:39:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:40:05 [end_date_ymd] => 2024-12-28 17:40:05 [RateCDR] => 1 ) [2024-12-28 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:40:05' and `end` < '2024-12-28 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:40:18] Production.INFO: count ==1651 [2024-12-28 17:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:40:05 - End Time 2024-12-28 17:40:05 [2024-12-28 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123117', 'tblTempUsageDetail_20' ) start [2024-12-28 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123117', 'tblTempUsageDetail_20' ) end [2024-12-28 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123117', 'tblTempVendorCDR_20' ) start [2024-12-28 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123117', 'tblTempVendorCDR_20' ) end [2024-12-28 17:40:19] Production.INFO: ProcessCDR(1,14123117,1,1,2) [2024-12-28 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123117', 'tblTempUsageDetail_20' ) start [2024-12-28 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123117', 'tblTempUsageDetail_20' ) end [2024-12-28 17:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:40:22] Production.INFO: ==9336== Releasing lock... [2024-12-28 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:40:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:41:04 [end_date_ymd] => 2024-12-28 17:41:04 [RateCDR] => 1 ) [2024-12-28 17:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:41:04' and `end` < '2024-12-28 17:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:41:17] Production.INFO: count ==1643 [2024-12-28 17:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 14:41:04 - End Time 2024-12-28 17:41:04 [2024-12-28 17:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123121', 'tblTempUsageDetail_20' ) start [2024-12-28 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123121', 'tblTempUsageDetail_20' ) end [2024-12-28 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123121', 'tblTempVendorCDR_20' ) start [2024-12-28 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123121', 'tblTempVendorCDR_20' ) end [2024-12-28 17:41:17] Production.INFO: ProcessCDR(1,14123121,1,1,2) [2024-12-28 17:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123121', 'tblTempUsageDetail_20' ) start [2024-12-28 17:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123121', 'tblTempUsageDetail_20' ) end [2024-12-28 17:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:41:20] Production.INFO: ==9413== Releasing lock... [2024-12-28 17:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:41:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:42:04 [end_date_ymd] => 2024-12-28 17:42:04 [RateCDR] => 1 ) [2024-12-28 17: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-28 14:42:04' and `end` < '2024-12-28 17: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-28 17:42:17] Production.INFO: count ==1634 [2024-12-28 17:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 14:42:04 - End Time 2024-12-28 17:42:04 [2024-12-28 17:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123128', 'tblTempUsageDetail_20' ) start [2024-12-28 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123128', 'tblTempUsageDetail_20' ) end [2024-12-28 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123128', 'tblTempVendorCDR_20' ) start [2024-12-28 17:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123128', 'tblTempVendorCDR_20' ) end [2024-12-28 17:42:17] Production.INFO: ProcessCDR(1,14123128,1,1,2) [2024-12-28 17:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123128', 'tblTempUsageDetail_20' ) start [2024-12-28 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123128', 'tblTempUsageDetail_20' ) end [2024-12-28 17:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:42:21] Production.INFO: ==9485== Releasing lock... [2024-12-28 17:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:42:21] Production.INFO: 40 MB #Memory Used# [2024-12-28 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:43:05 [end_date_ymd] => 2024-12-28 17:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:43:05' and `end` < '2024-12-28 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-28 17:43:18] Production.INFO: count ==1632 [2024-12-28 17:43:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:43:05 - End Time 2024-12-28 17:43:05 [2024-12-28 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123133', 'tblTempUsageDetail_20' ) start [2024-12-28 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123133', 'tblTempUsageDetail_20' ) end [2024-12-28 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123133', 'tblTempVendorCDR_20' ) start [2024-12-28 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123133', 'tblTempVendorCDR_20' ) end [2024-12-28 17:43:19] Production.INFO: ProcessCDR(1,14123133,1,1,2) [2024-12-28 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123133', 'tblTempUsageDetail_20' ) start [2024-12-28 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123133', 'tblTempUsageDetail_20' ) end [2024-12-28 17:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:43:22] Production.INFO: ==9561== Releasing lock... [2024-12-28 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:43:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:44:05 [end_date_ymd] => 2024-12-28 17:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:44:05' and `end` < '2024-12-28 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-28 17:44:19] Production.INFO: count ==1632 [2024-12-28 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:44:05 - End Time 2024-12-28 17:44:05 [2024-12-28 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123138', 'tblTempUsageDetail_20' ) start [2024-12-28 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123138', 'tblTempUsageDetail_20' ) end [2024-12-28 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123138', 'tblTempVendorCDR_20' ) start [2024-12-28 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123138', 'tblTempVendorCDR_20' ) end [2024-12-28 17:44:19] Production.INFO: ProcessCDR(1,14123138,1,1,2) [2024-12-28 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123138', 'tblTempUsageDetail_20' ) start [2024-12-28 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123138', 'tblTempUsageDetail_20' ) end [2024-12-28 17:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:44:23] Production.INFO: ==9633== Releasing lock... [2024-12-28 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:44:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:45:05 [end_date_ymd] => 2024-12-28 17:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:45:05' and `end` < '2024-12-28 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-28 17:45:18] Production.INFO: count ==1633 [2024-12-28 17:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:45:05 - End Time 2024-12-28 17:45:05 [2024-12-28 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123143', 'tblTempUsageDetail_20' ) start [2024-12-28 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123143', 'tblTempUsageDetail_20' ) end [2024-12-28 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123143', 'tblTempVendorCDR_20' ) start [2024-12-28 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123143', 'tblTempVendorCDR_20' ) end [2024-12-28 17:45:18] Production.INFO: ProcessCDR(1,14123143,1,1,2) [2024-12-28 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123143', 'tblTempUsageDetail_20' ) start [2024-12-28 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123143', 'tblTempUsageDetail_20' ) end [2024-12-28 17:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:45:22] Production.INFO: ==9706== Releasing lock... [2024-12-28 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:45:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:46:05 [end_date_ymd] => 2024-12-28 17:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:46:05' and `end` < '2024-12-28 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-28 17:46:18] Production.INFO: count ==1633 [2024-12-28 17:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:46:05 - End Time 2024-12-28 17:46:05 [2024-12-28 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123148', 'tblTempUsageDetail_20' ) start [2024-12-28 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123148', 'tblTempUsageDetail_20' ) end [2024-12-28 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123148', 'tblTempVendorCDR_20' ) start [2024-12-28 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123148', 'tblTempVendorCDR_20' ) end [2024-12-28 17:46:18] Production.INFO: ProcessCDR(1,14123148,1,1,2) [2024-12-28 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123148', 'tblTempUsageDetail_20' ) start [2024-12-28 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123148', 'tblTempUsageDetail_20' ) end [2024-12-28 17:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:46:21] Production.INFO: ==9781== Releasing lock... [2024-12-28 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:46:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:47:05 [end_date_ymd] => 2024-12-28 17:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:47:05' and `end` < '2024-12-28 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-28 17:47:18] Production.INFO: count ==1633 [2024-12-28 17:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:47:05 - End Time 2024-12-28 17:47:05 [2024-12-28 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123153', 'tblTempUsageDetail_20' ) start [2024-12-28 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123153', 'tblTempUsageDetail_20' ) end [2024-12-28 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123153', 'tblTempVendorCDR_20' ) start [2024-12-28 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123153', 'tblTempVendorCDR_20' ) end [2024-12-28 17:47:18] Production.INFO: ProcessCDR(1,14123153,1,1,2) [2024-12-28 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123153', 'tblTempUsageDetail_20' ) start [2024-12-28 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123153', 'tblTempUsageDetail_20' ) end [2024-12-28 17:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:47:22] Production.INFO: ==9852== Releasing lock... [2024-12-28 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:47:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:48:06 [end_date_ymd] => 2024-12-28 17:48:06 [RateCDR] => 1 ) [2024-12-28 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:48:06' and `end` < '2024-12-28 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:48:19] Production.INFO: count ==1621 [2024-12-28 17:48:20] Production.ERROR: pbx CDR StartTime 2024-12-28 14:48:06 - End Time 2024-12-28 17:48:06 [2024-12-28 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123158', 'tblTempUsageDetail_20' ) start [2024-12-28 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123158', 'tblTempUsageDetail_20' ) end [2024-12-28 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123158', 'tblTempVendorCDR_20' ) start [2024-12-28 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123158', 'tblTempVendorCDR_20' ) end [2024-12-28 17:48:20] Production.INFO: ProcessCDR(1,14123158,1,1,2) [2024-12-28 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123158', 'tblTempUsageDetail_20' ) start [2024-12-28 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123158', 'tblTempUsageDetail_20' ) end [2024-12-28 17:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:48:23] Production.INFO: ==9927== Releasing lock... [2024-12-28 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:48:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:49:05 [end_date_ymd] => 2024-12-28 17:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:49:05' and `end` < '2024-12-28 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-28 17:49:17] Production.INFO: count ==1631 [2024-12-28 17:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:49:05 - End Time 2024-12-28 17:49:05 [2024-12-28 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123163', 'tblTempUsageDetail_20' ) start [2024-12-28 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123163', 'tblTempUsageDetail_20' ) end [2024-12-28 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123163', 'tblTempVendorCDR_20' ) start [2024-12-28 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123163', 'tblTempVendorCDR_20' ) end [2024-12-28 17:49:18] Production.INFO: ProcessCDR(1,14123163,1,1,2) [2024-12-28 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123163', 'tblTempUsageDetail_20' ) start [2024-12-28 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123163', 'tblTempUsageDetail_20' ) end [2024-12-28 17:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:49:23] Production.INFO: ==9998== Releasing lock... [2024-12-28 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:49:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:50:05 [end_date_ymd] => 2024-12-28 17:50:05 [RateCDR] => 1 ) [2024-12-28 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:50:05' and `end` < '2024-12-28 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:50:21] Production.INFO: count ==1636 [2024-12-28 17:50:21] Production.ERROR: pbx CDR StartTime 2024-12-28 14:50:05 - End Time 2024-12-28 17:50:05 [2024-12-28 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123168', 'tblTempUsageDetail_20' ) start [2024-12-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123168', 'tblTempUsageDetail_20' ) end [2024-12-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123168', 'tblTempVendorCDR_20' ) start [2024-12-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123168', 'tblTempVendorCDR_20' ) end [2024-12-28 17:50:21] Production.INFO: ProcessCDR(1,14123168,1,1,2) [2024-12-28 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123168', 'tblTempUsageDetail_20' ) start [2024-12-28 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123168', 'tblTempUsageDetail_20' ) end [2024-12-28 17:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:50:25] Production.INFO: ==10073== Releasing lock... [2024-12-28 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:50:25] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:51:05 [end_date_ymd] => 2024-12-28 17:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:51:05' and `end` < '2024-12-28 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-28 17:51:18] Production.INFO: count ==1670 [2024-12-28 17:51:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:51:05 - End Time 2024-12-28 17:51:05 [2024-12-28 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123174', 'tblTempUsageDetail_20' ) start [2024-12-28 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123174', 'tblTempUsageDetail_20' ) end [2024-12-28 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123174', 'tblTempVendorCDR_20' ) start [2024-12-28 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123174', 'tblTempVendorCDR_20' ) end [2024-12-28 17:51:18] Production.INFO: ProcessCDR(1,14123174,1,1,2) [2024-12-28 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123174', 'tblTempUsageDetail_20' ) start [2024-12-28 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123174', 'tblTempUsageDetail_20' ) end [2024-12-28 17:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:51:23] Production.INFO: ==10184== Releasing lock... [2024-12-28 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:51:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:52:04 [end_date_ymd] => 2024-12-28 17:52:04 [RateCDR] => 1 ) [2024-12-28 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:52:04' and `end` < '2024-12-28 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:52:18] Production.INFO: count ==1670 [2024-12-28 17:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:52:04 - End Time 2024-12-28 17:52:04 [2024-12-28 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123179', 'tblTempUsageDetail_20' ) start [2024-12-28 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123179', 'tblTempUsageDetail_20' ) end [2024-12-28 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123179', 'tblTempVendorCDR_20' ) start [2024-12-28 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123179', 'tblTempVendorCDR_20' ) end [2024-12-28 17:52:18] Production.INFO: ProcessCDR(1,14123179,1,1,2) [2024-12-28 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123179', 'tblTempUsageDetail_20' ) start [2024-12-28 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123179', 'tblTempUsageDetail_20' ) end [2024-12-28 17:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:52:22] Production.INFO: ==10262== Releasing lock... [2024-12-28 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:52:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:53:05 [end_date_ymd] => 2024-12-28 17:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:53:05' and `end` < '2024-12-28 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-28 17:53:18] Production.INFO: count ==1670 [2024-12-28 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 14:53:05 - End Time 2024-12-28 17:53:05 [2024-12-28 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123184', 'tblTempUsageDetail_20' ) start [2024-12-28 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123184', 'tblTempUsageDetail_20' ) end [2024-12-28 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123184', 'tblTempVendorCDR_20' ) start [2024-12-28 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123184', 'tblTempVendorCDR_20' ) end [2024-12-28 17:53:19] Production.INFO: ProcessCDR(1,14123184,1,1,2) [2024-12-28 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123184', 'tblTempUsageDetail_20' ) start [2024-12-28 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123184', 'tblTempUsageDetail_20' ) end [2024-12-28 17:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:53:23] Production.INFO: ==10359== Releasing lock... [2024-12-28 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:53:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-28 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:54:05 [end_date_ymd] => 2024-12-28 17:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:54:05' and `end` < '2024-12-28 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-28 17:54:18] Production.INFO: count ==1665 [2024-12-28 17:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:54:05 - End Time 2024-12-28 17:54:05 [2024-12-28 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123189', 'tblTempUsageDetail_20' ) start [2024-12-28 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123189', 'tblTempUsageDetail_20' ) end [2024-12-28 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123189', 'tblTempVendorCDR_20' ) start [2024-12-28 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123189', 'tblTempVendorCDR_20' ) end [2024-12-28 17:54:18] Production.INFO: ProcessCDR(1,14123189,1,1,2) [2024-12-28 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123189', 'tblTempUsageDetail_20' ) start [2024-12-28 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123189', 'tblTempUsageDetail_20' ) end [2024-12-28 17:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:54:21] Production.INFO: ==10436== Releasing lock... [2024-12-28 17:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:54:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:55:05 [end_date_ymd] => 2024-12-28 17:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:55:05' and `end` < '2024-12-28 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-28 17:55:18] Production.INFO: count ==1656 [2024-12-28 17:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:55:05 - End Time 2024-12-28 17:55:05 [2024-12-28 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123194', 'tblTempUsageDetail_20' ) start [2024-12-28 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123194', 'tblTempUsageDetail_20' ) end [2024-12-28 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123194', 'tblTempVendorCDR_20' ) start [2024-12-28 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123194', 'tblTempVendorCDR_20' ) end [2024-12-28 17:55:18] Production.INFO: ProcessCDR(1,14123194,1,1,2) [2024-12-28 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123194', 'tblTempUsageDetail_20' ) start [2024-12-28 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123194', 'tblTempUsageDetail_20' ) end [2024-12-28 17:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:55:21] Production.INFO: ==10516== Releasing lock... [2024-12-28 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:55:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:56:04 [end_date_ymd] => 2024-12-28 17:56:04 [RateCDR] => 1 ) [2024-12-28 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-28 14:56:04' and `end` < '2024-12-28 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-28 17:56:17] Production.INFO: count ==1656 [2024-12-28 17:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 14:56:04 - End Time 2024-12-28 17:56:04 [2024-12-28 17:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123199', 'tblTempUsageDetail_20' ) start [2024-12-28 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123199', 'tblTempUsageDetail_20' ) end [2024-12-28 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123199', 'tblTempVendorCDR_20' ) start [2024-12-28 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123199', 'tblTempVendorCDR_20' ) end [2024-12-28 17:56:17] Production.INFO: ProcessCDR(1,14123199,1,1,2) [2024-12-28 17:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123199', 'tblTempUsageDetail_20' ) start [2024-12-28 17:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123199', 'tblTempUsageDetail_20' ) end [2024-12-28 17:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:56:20] Production.INFO: ==10610== Releasing lock... [2024-12-28 17:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:56:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:57:05 [end_date_ymd] => 2024-12-28 17:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 14:57:05' and `end` < '2024-12-28 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-28 17:57:18] Production.INFO: count ==1659 [2024-12-28 17:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:57:05 - End Time 2024-12-28 17:57:05 [2024-12-28 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123204', 'tblTempUsageDetail_20' ) start [2024-12-28 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123204', 'tblTempUsageDetail_20' ) end [2024-12-28 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123204', 'tblTempVendorCDR_20' ) start [2024-12-28 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123204', 'tblTempVendorCDR_20' ) end [2024-12-28 17:57:18] Production.INFO: ProcessCDR(1,14123204,1,1,2) [2024-12-28 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123204', 'tblTempUsageDetail_20' ) start [2024-12-28 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123204', 'tblTempUsageDetail_20' ) end [2024-12-28 17:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:57:21] Production.INFO: ==10695== Releasing lock... [2024-12-28 17:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:57:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:58:04 [end_date_ymd] => 2024-12-28 17:58:04 [RateCDR] => 1 ) [2024-12-28 17: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-28 14:58:04' and `end` < '2024-12-28 17: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-28 17:58:18] Production.INFO: count ==1658 [2024-12-28 17:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:58:04 - End Time 2024-12-28 17:58:04 [2024-12-28 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123209', 'tblTempUsageDetail_20' ) start [2024-12-28 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123209', 'tblTempUsageDetail_20' ) end [2024-12-28 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123209', 'tblTempVendorCDR_20' ) start [2024-12-28 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123209', 'tblTempVendorCDR_20' ) end [2024-12-28 17:58:18] Production.INFO: ProcessCDR(1,14123209,1,1,2) [2024-12-28 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123209', 'tblTempUsageDetail_20' ) start [2024-12-28 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123209', 'tblTempUsageDetail_20' ) end [2024-12-28 17:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:58:21] Production.INFO: ==10789== Releasing lock... [2024-12-28 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:58:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 14:59:04 [end_date_ymd] => 2024-12-28 17:59:04 [RateCDR] => 1 ) [2024-12-28 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 14:59:04' and `end` < '2024-12-28 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 17:59:18] Production.INFO: count ==1664 [2024-12-28 17:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 14:59:04 - End Time 2024-12-28 17:59:04 [2024-12-28 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123214', 'tblTempUsageDetail_20' ) start [2024-12-28 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123214', 'tblTempUsageDetail_20' ) end [2024-12-28 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123214', 'tblTempVendorCDR_20' ) start [2024-12-28 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123214', 'tblTempVendorCDR_20' ) end [2024-12-28 17:59:18] Production.INFO: ProcessCDR(1,14123214,1,1,2) [2024-12-28 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123214', 'tblTempUsageDetail_20' ) start [2024-12-28 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123214', 'tblTempUsageDetail_20' ) end [2024-12-28 17:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 17:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 17:59:21] Production.INFO: ==10877== Releasing lock... [2024-12-28 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 17:59:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:00:06 [end_date_ymd] => 2024-12-28 18:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 15:00:06' and `end` < '2024-12-28 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-28 18:00:21] Production.INFO: count ==1648 [2024-12-28 18:00:22] Production.ERROR: pbx CDR StartTime 2024-12-28 15:00:06 - End Time 2024-12-28 18:00:06 [2024-12-28 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123220', 'tblTempUsageDetail_20' ) start [2024-12-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123220', 'tblTempUsageDetail_20' ) end [2024-12-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123220', 'tblTempVendorCDR_20' ) start [2024-12-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123220', 'tblTempVendorCDR_20' ) end [2024-12-28 18:00:22] Production.INFO: ProcessCDR(1,14123220,1,1,2) [2024-12-28 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123220', 'tblTempUsageDetail_20' ) start [2024-12-28 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123220', 'tblTempUsageDetail_20' ) end [2024-12-28 18:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:00:25] Production.INFO: ==10970== Releasing lock... [2024-12-28 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:00:25] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:01:04 [end_date_ymd] => 2024-12-28 18:01:04 [RateCDR] => 1 ) [2024-12-28 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-28 15:01:04' and `end` < '2024-12-28 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-28 18:01:18] Production.INFO: count ==1639 [2024-12-28 18:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:01:04 - End Time 2024-12-28 18:01:04 [2024-12-28 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123225', 'tblTempUsageDetail_20' ) start [2024-12-28 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123225', 'tblTempUsageDetail_20' ) end [2024-12-28 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123225', 'tblTempVendorCDR_20' ) start [2024-12-28 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123225', 'tblTempVendorCDR_20' ) end [2024-12-28 18:01:18] Production.INFO: ProcessCDR(1,14123225,1,1,2) [2024-12-28 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123225', 'tblTempUsageDetail_20' ) start [2024-12-28 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123225', 'tblTempUsageDetail_20' ) end [2024-12-28 18:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:01:22] Production.INFO: ==11065== Releasing lock... [2024-12-28 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:01:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:02:05 [end_date_ymd] => 2024-12-28 18:02:05 [RateCDR] => 1 ) [2024-12-28 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:02:05' and `end` < '2024-12-28 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:02:18] Production.INFO: count ==1640 [2024-12-28 18:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:02:05 - End Time 2024-12-28 18:02:05 [2024-12-28 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123230', 'tblTempUsageDetail_20' ) start [2024-12-28 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123230', 'tblTempUsageDetail_20' ) end [2024-12-28 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123230', 'tblTempVendorCDR_20' ) start [2024-12-28 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123230', 'tblTempVendorCDR_20' ) end [2024-12-28 18:02:18] Production.INFO: ProcessCDR(1,14123230,1,1,2) [2024-12-28 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123230', 'tblTempUsageDetail_20' ) start [2024-12-28 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123230', 'tblTempUsageDetail_20' ) end [2024-12-28 18:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:02:22] Production.INFO: ==11154== Releasing lock... [2024-12-28 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:02:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:03:04 [end_date_ymd] => 2024-12-28 18:03:04 [RateCDR] => 1 ) [2024-12-28 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:03:04' and `end` < '2024-12-28 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:03:17] Production.INFO: count ==1641 [2024-12-28 18:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:03:04 - End Time 2024-12-28 18:03:04 [2024-12-28 18:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123235', 'tblTempUsageDetail_20' ) start [2024-12-28 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123235', 'tblTempUsageDetail_20' ) end [2024-12-28 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123235', 'tblTempVendorCDR_20' ) start [2024-12-28 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123235', 'tblTempVendorCDR_20' ) end [2024-12-28 18:03:17] Production.INFO: ProcessCDR(1,14123235,1,1,2) [2024-12-28 18:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123235', 'tblTempUsageDetail_20' ) start [2024-12-28 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123235', 'tblTempUsageDetail_20' ) end [2024-12-28 18:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:03:22] Production.INFO: ==11238== Releasing lock... [2024-12-28 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:03:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:04:04 [end_date_ymd] => 2024-12-28 18:04:04 [RateCDR] => 1 ) [2024-12-28 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-28 15:04:04' and `end` < '2024-12-28 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-28 18:04:20] Production.INFO: count ==1640 [2024-12-28 18:04:20] Production.ERROR: pbx CDR StartTime 2024-12-28 15:04:04 - End Time 2024-12-28 18:04:04 [2024-12-28 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123240', 'tblTempUsageDetail_20' ) start [2024-12-28 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123240', 'tblTempUsageDetail_20' ) end [2024-12-28 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123240', 'tblTempVendorCDR_20' ) start [2024-12-28 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123240', 'tblTempVendorCDR_20' ) end [2024-12-28 18:04:20] Production.INFO: ProcessCDR(1,14123240,1,1,2) [2024-12-28 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123240', 'tblTempUsageDetail_20' ) start [2024-12-28 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123240', 'tblTempUsageDetail_20' ) end [2024-12-28 18:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:04:23] Production.INFO: ==11331== Releasing lock... [2024-12-28 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:04:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:05:05 [end_date_ymd] => 2024-12-28 18:05:05 [RateCDR] => 1 ) [2024-12-28 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:05:05' and `end` < '2024-12-28 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:05:18] Production.INFO: count ==1635 [2024-12-28 18:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:05:05 - End Time 2024-12-28 18:05:05 [2024-12-28 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123245', 'tblTempUsageDetail_20' ) start [2024-12-28 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123245', 'tblTempUsageDetail_20' ) end [2024-12-28 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123245', 'tblTempVendorCDR_20' ) start [2024-12-28 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123245', 'tblTempVendorCDR_20' ) end [2024-12-28 18:05:18] Production.INFO: ProcessCDR(1,14123245,1,1,2) [2024-12-28 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123245', 'tblTempUsageDetail_20' ) start [2024-12-28 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123245', 'tblTempUsageDetail_20' ) end [2024-12-28 18:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:05:21] Production.INFO: ==11416== Releasing lock... [2024-12-28 18:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:05:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:06:04 [end_date_ymd] => 2024-12-28 18:06:04 [RateCDR] => 1 ) [2024-12-28 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-28 15:06:04' and `end` < '2024-12-28 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-28 18:06:17] Production.INFO: count ==1632 [2024-12-28 18:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:06:04 - End Time 2024-12-28 18:06:04 [2024-12-28 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123250', 'tblTempUsageDetail_20' ) start [2024-12-28 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123250', 'tblTempUsageDetail_20' ) end [2024-12-28 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123250', 'tblTempVendorCDR_20' ) start [2024-12-28 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123250', 'tblTempVendorCDR_20' ) end [2024-12-28 18:06:18] Production.INFO: ProcessCDR(1,14123250,1,1,2) [2024-12-28 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123250', 'tblTempUsageDetail_20' ) start [2024-12-28 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123250', 'tblTempUsageDetail_20' ) end [2024-12-28 18:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:06:21] Production.INFO: ==11540== Releasing lock... [2024-12-28 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:06:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:07:05 [end_date_ymd] => 2024-12-28 18:07:05 [RateCDR] => 1 ) [2024-12-28 18: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-28 15:07:05' and `end` < '2024-12-28 18: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-28 18:07:18] Production.INFO: count ==1629 [2024-12-28 18:07:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:07:05 - End Time 2024-12-28 18:07:05 [2024-12-28 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123255', 'tblTempUsageDetail_20' ) start [2024-12-28 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123255', 'tblTempUsageDetail_20' ) end [2024-12-28 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123255', 'tblTempVendorCDR_20' ) start [2024-12-28 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123255', 'tblTempVendorCDR_20' ) end [2024-12-28 18:07:18] Production.INFO: ProcessCDR(1,14123255,1,1,2) [2024-12-28 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123255', 'tblTempUsageDetail_20' ) start [2024-12-28 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123255', 'tblTempUsageDetail_20' ) end [2024-12-28 18:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:07:21] Production.INFO: ==11626== Releasing lock... [2024-12-28 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:07:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-28 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:08:05 [end_date_ymd] => 2024-12-28 18:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:08:05' and `end` < '2024-12-28 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-28 18:08:18] Production.INFO: count ==1633 [2024-12-28 18:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:08:05 - End Time 2024-12-28 18:08:05 [2024-12-28 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123260', 'tblTempUsageDetail_20' ) start [2024-12-28 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123260', 'tblTempUsageDetail_20' ) end [2024-12-28 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123260', 'tblTempVendorCDR_20' ) start [2024-12-28 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123260', 'tblTempVendorCDR_20' ) end [2024-12-28 18:08:18] Production.INFO: ProcessCDR(1,14123260,1,1,2) [2024-12-28 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123260', 'tblTempUsageDetail_20' ) start [2024-12-28 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123260', 'tblTempUsageDetail_20' ) end [2024-12-28 18:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:08:23] Production.INFO: ==11715== Releasing lock... [2024-12-28 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:08:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:09:04 [end_date_ymd] => 2024-12-28 18:09:04 [RateCDR] => 1 ) [2024-12-28 18: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-28 15:09:04' and `end` < '2024-12-28 18: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-28 18:09:18] Production.INFO: count ==1624 [2024-12-28 18:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:09:04 - End Time 2024-12-28 18:09:04 [2024-12-28 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123265', 'tblTempUsageDetail_20' ) start [2024-12-28 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123265', 'tblTempUsageDetail_20' ) end [2024-12-28 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123265', 'tblTempVendorCDR_20' ) start [2024-12-28 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123265', 'tblTempVendorCDR_20' ) end [2024-12-28 18:09:18] Production.INFO: ProcessCDR(1,14123265,1,1,2) [2024-12-28 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123265', 'tblTempUsageDetail_20' ) start [2024-12-28 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123265', 'tblTempUsageDetail_20' ) end [2024-12-28 18:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:09:23] Production.INFO: ==11798== Releasing lock... [2024-12-28 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:09:23] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:10:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:10:04 [end_date_ymd] => 2024-12-28 18:10:04 [RateCDR] => 1 ) [2024-12-28 18:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:10:04' and `end` < '2024-12-28 18:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:10:17] Production.INFO: count ==1617 [2024-12-28 18:10:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:10:04 - End Time 2024-12-28 18:10:04 [2024-12-28 18:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123270', 'tblTempUsageDetail_20' ) start [2024-12-28 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123270', 'tblTempUsageDetail_20' ) end [2024-12-28 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123270', 'tblTempVendorCDR_20' ) start [2024-12-28 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123270', 'tblTempVendorCDR_20' ) end [2024-12-28 18:10:18] Production.INFO: ProcessCDR(1,14123270,1,1,2) [2024-12-28 18:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123270', 'tblTempUsageDetail_20' ) start [2024-12-28 18:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123270', 'tblTempUsageDetail_20' ) end [2024-12-28 18:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:10:21] Production.INFO: ==11885== Releasing lock... [2024-12-28 18:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:10:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:11:05 [end_date_ymd] => 2024-12-28 18:11:05 [RateCDR] => 1 ) [2024-12-28 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:11:05' and `end` < '2024-12-28 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:11:18] Production.INFO: count ==1619 [2024-12-28 18:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:11:05 - End Time 2024-12-28 18:11:05 [2024-12-28 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123276', 'tblTempUsageDetail_20' ) start [2024-12-28 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123276', 'tblTempUsageDetail_20' ) end [2024-12-28 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123276', 'tblTempVendorCDR_20' ) start [2024-12-28 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123276', 'tblTempVendorCDR_20' ) end [2024-12-28 18:11:18] Production.INFO: ProcessCDR(1,14123276,1,1,2) [2024-12-28 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123276', 'tblTempUsageDetail_20' ) start [2024-12-28 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123276', 'tblTempUsageDetail_20' ) end [2024-12-28 18:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:11:21] Production.INFO: ==11977== Releasing lock... [2024-12-28 18:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:11:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-28 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:12:05 [end_date_ymd] => 2024-12-28 18:12:05 [RateCDR] => 1 ) [2024-12-28 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:12:05' and `end` < '2024-12-28 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:12:18] Production.INFO: count ==1617 [2024-12-28 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:12:05 - End Time 2024-12-28 18:12:05 [2024-12-28 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123281', 'tblTempUsageDetail_20' ) start [2024-12-28 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123281', 'tblTempUsageDetail_20' ) end [2024-12-28 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123281', 'tblTempVendorCDR_20' ) start [2024-12-28 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123281', 'tblTempVendorCDR_20' ) end [2024-12-28 18:12:19] Production.INFO: ProcessCDR(1,14123281,1,1,2) [2024-12-28 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123281', 'tblTempUsageDetail_20' ) start [2024-12-28 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123281', 'tblTempUsageDetail_20' ) end [2024-12-28 18:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:12:22] Production.INFO: ==12069== Releasing lock... [2024-12-28 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:12:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:13:04 [end_date_ymd] => 2024-12-28 18:13:04 [RateCDR] => 1 ) [2024-12-28 18:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:13:04' and `end` < '2024-12-28 18:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:13:19] Production.INFO: count ==1616 [2024-12-28 18:13:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:13:04 - End Time 2024-12-28 18:13:04 [2024-12-28 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123286', 'tblTempUsageDetail_20' ) start [2024-12-28 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123286', 'tblTempUsageDetail_20' ) end [2024-12-28 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123286', 'tblTempVendorCDR_20' ) start [2024-12-28 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123286', 'tblTempVendorCDR_20' ) end [2024-12-28 18:13:19] Production.INFO: ProcessCDR(1,14123286,1,1,2) [2024-12-28 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123286', 'tblTempUsageDetail_20' ) start [2024-12-28 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123286', 'tblTempUsageDetail_20' ) end [2024-12-28 18:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:13:22] Production.INFO: ==12149== Releasing lock... [2024-12-28 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:13:22] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:14:05 [end_date_ymd] => 2024-12-28 18:14:05 [RateCDR] => 1 ) [2024-12-28 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:14:05' and `end` < '2024-12-28 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:14:18] Production.INFO: count ==1605 [2024-12-28 18:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:14:05 - End Time 2024-12-28 18:14:05 [2024-12-28 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123291', 'tblTempUsageDetail_20' ) start [2024-12-28 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123291', 'tblTempUsageDetail_20' ) end [2024-12-28 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123291', 'tblTempVendorCDR_20' ) start [2024-12-28 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123291', 'tblTempVendorCDR_20' ) end [2024-12-28 18:14:18] Production.INFO: ProcessCDR(1,14123291,1,1,2) [2024-12-28 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123291', 'tblTempUsageDetail_20' ) start [2024-12-28 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123291', 'tblTempUsageDetail_20' ) end [2024-12-28 18:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:14:21] Production.INFO: ==12223== Releasing lock... [2024-12-28 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:14:21] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:15:04 [end_date_ymd] => 2024-12-28 18:15:04 [RateCDR] => 1 ) [2024-12-28 18: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-28 15:15:04' and `end` < '2024-12-28 18: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-28 18:15:17] Production.INFO: count ==1601 [2024-12-28 18:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:15:04 - End Time 2024-12-28 18:15:04 [2024-12-28 18:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123296', 'tblTempUsageDetail_20' ) start [2024-12-28 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123296', 'tblTempUsageDetail_20' ) end [2024-12-28 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123296', 'tblTempVendorCDR_20' ) start [2024-12-28 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123296', 'tblTempVendorCDR_20' ) end [2024-12-28 18:15:17] Production.INFO: ProcessCDR(1,14123296,1,1,2) [2024-12-28 18:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123296', 'tblTempUsageDetail_20' ) start [2024-12-28 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123296', 'tblTempUsageDetail_20' ) end [2024-12-28 18:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:15:21] Production.INFO: ==12295== Releasing lock... [2024-12-28 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:15:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:16:05 [end_date_ymd] => 2024-12-28 18:16:05 [RateCDR] => 1 ) [2024-12-28 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:16:05' and `end` < '2024-12-28 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:16:19] Production.INFO: count ==1600 [2024-12-28 18:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:16:05 - End Time 2024-12-28 18:16:05 [2024-12-28 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123301', 'tblTempUsageDetail_20' ) start [2024-12-28 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123301', 'tblTempUsageDetail_20' ) end [2024-12-28 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123301', 'tblTempVendorCDR_20' ) start [2024-12-28 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123301', 'tblTempVendorCDR_20' ) end [2024-12-28 18:16:19] Production.INFO: ProcessCDR(1,14123301,1,1,2) [2024-12-28 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123301', 'tblTempUsageDetail_20' ) start [2024-12-28 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123301', 'tblTempUsageDetail_20' ) end [2024-12-28 18:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:16:22] Production.INFO: ==12365== Releasing lock... [2024-12-28 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:16:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:17:05 [end_date_ymd] => 2024-12-28 18:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:17:05' and `end` < '2024-12-28 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-28 18:17:18] Production.INFO: count ==1600 [2024-12-28 18:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:17:05 - End Time 2024-12-28 18:17:05 [2024-12-28 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123306', 'tblTempUsageDetail_20' ) start [2024-12-28 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123306', 'tblTempUsageDetail_20' ) end [2024-12-28 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123306', 'tblTempVendorCDR_20' ) start [2024-12-28 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123306', 'tblTempVendorCDR_20' ) end [2024-12-28 18:17:18] Production.INFO: ProcessCDR(1,14123306,1,1,2) [2024-12-28 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123306', 'tblTempUsageDetail_20' ) start [2024-12-28 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123306', 'tblTempUsageDetail_20' ) end [2024-12-28 18:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:17:21] Production.INFO: ==12437== Releasing lock... [2024-12-28 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:17:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:18:05 [end_date_ymd] => 2024-12-28 18:18:05 [RateCDR] => 1 ) [2024-12-28 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:18:05' and `end` < '2024-12-28 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:18:18] Production.INFO: count ==1587 [2024-12-28 18:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:18:05 - End Time 2024-12-28 18:18:05 [2024-12-28 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123311', 'tblTempUsageDetail_20' ) start [2024-12-28 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123311', 'tblTempUsageDetail_20' ) end [2024-12-28 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123311', 'tblTempVendorCDR_20' ) start [2024-12-28 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123311', 'tblTempVendorCDR_20' ) end [2024-12-28 18:18:18] Production.INFO: ProcessCDR(1,14123311,1,1,2) [2024-12-28 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123311', 'tblTempUsageDetail_20' ) start [2024-12-28 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123311', 'tblTempUsageDetail_20' ) end [2024-12-28 18:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:18:21] Production.INFO: ==12509== Releasing lock... [2024-12-28 18:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:18:21] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:19:04 [end_date_ymd] => 2024-12-28 18:19:04 [RateCDR] => 1 ) [2024-12-28 18:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:19:04' and `end` < '2024-12-28 18:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:19:17] Production.INFO: count ==1581 [2024-12-28 18:19:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:19:04 - End Time 2024-12-28 18:19:04 [2024-12-28 18:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123316', 'tblTempUsageDetail_20' ) start [2024-12-28 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123316', 'tblTempUsageDetail_20' ) end [2024-12-28 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123316', 'tblTempVendorCDR_20' ) start [2024-12-28 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123316', 'tblTempVendorCDR_20' ) end [2024-12-28 18:19:17] Production.INFO: ProcessCDR(1,14123316,1,1,2) [2024-12-28 18:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123316', 'tblTempUsageDetail_20' ) start [2024-12-28 18:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123316', 'tblTempUsageDetail_20' ) end [2024-12-28 18:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:19:20] Production.INFO: ==12578== Releasing lock... [2024-12-28 18:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:19:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:20:06 [end_date_ymd] => 2024-12-28 18:20:06 [RateCDR] => 1 ) [2024-12-28 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:20:06' and `end` < '2024-12-28 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:20:19] Production.INFO: count ==1576 [2024-12-28 18:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:20:06 - End Time 2024-12-28 18:20:06 [2024-12-28 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123322', 'tblTempUsageDetail_20' ) start [2024-12-28 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123322', 'tblTempUsageDetail_20' ) end [2024-12-28 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123322', 'tblTempVendorCDR_20' ) start [2024-12-28 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123322', 'tblTempVendorCDR_20' ) end [2024-12-28 18:20:19] Production.INFO: ProcessCDR(1,14123322,1,1,2) [2024-12-28 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123322', 'tblTempUsageDetail_20' ) start [2024-12-28 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123322', 'tblTempUsageDetail_20' ) end [2024-12-28 18:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:20:22] Production.INFO: ==12652== Releasing lock... [2024-12-28 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:20:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:21:04 [end_date_ymd] => 2024-12-28 18:21:04 [RateCDR] => 1 ) [2024-12-28 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-28 15:21:04' and `end` < '2024-12-28 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-28 18:21:17] Production.INFO: count ==1590 [2024-12-28 18:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:21:04 - End Time 2024-12-28 18:21:04 [2024-12-28 18:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123327', 'tblTempUsageDetail_20' ) start [2024-12-28 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123327', 'tblTempUsageDetail_20' ) end [2024-12-28 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123327', 'tblTempVendorCDR_20' ) start [2024-12-28 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123327', 'tblTempVendorCDR_20' ) end [2024-12-28 18:21:17] Production.INFO: ProcessCDR(1,14123327,1,1,2) [2024-12-28 18:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123327', 'tblTempUsageDetail_20' ) start [2024-12-28 18:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123327', 'tblTempUsageDetail_20' ) end [2024-12-28 18:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:21:20] Production.INFO: ==12728== Releasing lock... [2024-12-28 18:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:21:20] Production.INFO: 40 MB #Memory Used# [2024-12-28 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:22:05 [end_date_ymd] => 2024-12-28 18:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:22:05' and `end` < '2024-12-28 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-28 18:22:18] Production.INFO: count ==1589 [2024-12-28 18:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:22:05 - End Time 2024-12-28 18:22:05 [2024-12-28 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123332', 'tblTempUsageDetail_20' ) start [2024-12-28 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123332', 'tblTempUsageDetail_20' ) end [2024-12-28 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123332', 'tblTempVendorCDR_20' ) start [2024-12-28 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123332', 'tblTempVendorCDR_20' ) end [2024-12-28 18:22:18] Production.INFO: ProcessCDR(1,14123332,1,1,2) [2024-12-28 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123332', 'tblTempUsageDetail_20' ) start [2024-12-28 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123332', 'tblTempUsageDetail_20' ) end [2024-12-28 18:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:22:21] Production.INFO: ==12837== Releasing lock... [2024-12-28 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:22:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:23:05 [end_date_ymd] => 2024-12-28 18:23:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:23:05' and `end` < '2024-12-28 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-28 18:23:18] Production.INFO: count ==1588 [2024-12-28 18:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:23:05 - End Time 2024-12-28 18:23:05 [2024-12-28 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123337', 'tblTempUsageDetail_20' ) start [2024-12-28 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123337', 'tblTempUsageDetail_20' ) end [2024-12-28 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123337', 'tblTempVendorCDR_20' ) start [2024-12-28 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123337', 'tblTempVendorCDR_20' ) end [2024-12-28 18:23:18] Production.INFO: ProcessCDR(1,14123337,1,1,2) [2024-12-28 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123337', 'tblTempUsageDetail_20' ) start [2024-12-28 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123337', 'tblTempUsageDetail_20' ) end [2024-12-28 18:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:23:23] Production.INFO: ==12916== Releasing lock... [2024-12-28 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:23:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:24:05 [end_date_ymd] => 2024-12-28 18:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:24:05' and `end` < '2024-12-28 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-28 18:24:17] Production.INFO: count ==1581 [2024-12-28 18:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:24:05 - End Time 2024-12-28 18:24:05 [2024-12-28 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123342', 'tblTempUsageDetail_20' ) start [2024-12-28 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123342', 'tblTempUsageDetail_20' ) end [2024-12-28 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123342', 'tblTempVendorCDR_20' ) start [2024-12-28 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123342', 'tblTempVendorCDR_20' ) end [2024-12-28 18:24:18] Production.INFO: ProcessCDR(1,14123342,1,1,2) [2024-12-28 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123342', 'tblTempUsageDetail_20' ) start [2024-12-28 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123342', 'tblTempUsageDetail_20' ) end [2024-12-28 18:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:24:21] Production.INFO: ==12985== Releasing lock... [2024-12-28 18:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:24:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:25:05 [end_date_ymd] => 2024-12-28 18:25:05 [RateCDR] => 1 ) [2024-12-28 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:25:05' and `end` < '2024-12-28 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:25:17] Production.INFO: count ==1578 [2024-12-28 18:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:25:05 - End Time 2024-12-28 18:25:05 [2024-12-28 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123347', 'tblTempUsageDetail_20' ) start [2024-12-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123347', 'tblTempUsageDetail_20' ) end [2024-12-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123347', 'tblTempVendorCDR_20' ) start [2024-12-28 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123347', 'tblTempVendorCDR_20' ) end [2024-12-28 18:25:18] Production.INFO: ProcessCDR(1,14123347,1,1,2) [2024-12-28 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123347', 'tblTempUsageDetail_20' ) start [2024-12-28 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123347', 'tblTempUsageDetail_20' ) end [2024-12-28 18:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:25:21] Production.INFO: ==13058== Releasing lock... [2024-12-28 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:25:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:26:04 [end_date_ymd] => 2024-12-28 18:26:04 [RateCDR] => 1 ) [2024-12-28 18:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:26:04' and `end` < '2024-12-28 18:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:26:17] Production.INFO: count ==1579 [2024-12-28 18:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:26:04 - End Time 2024-12-28 18:26:04 [2024-12-28 18:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123352', 'tblTempUsageDetail_20' ) start [2024-12-28 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123352', 'tblTempUsageDetail_20' ) end [2024-12-28 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123352', 'tblTempVendorCDR_20' ) start [2024-12-28 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123352', 'tblTempVendorCDR_20' ) end [2024-12-28 18:26:17] Production.INFO: ProcessCDR(1,14123352,1,1,2) [2024-12-28 18:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123352', 'tblTempUsageDetail_20' ) start [2024-12-28 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123352', 'tblTempUsageDetail_20' ) end [2024-12-28 18:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:26:22] Production.INFO: ==13128== Releasing lock... [2024-12-28 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:26:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:27:06 [end_date_ymd] => 2024-12-28 18:27:06 [RateCDR] => 1 ) [2024-12-28 18:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:27:06' and `end` < '2024-12-28 18:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:27:18] Production.INFO: count ==1579 [2024-12-28 18:27:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:27:06 - End Time 2024-12-28 18:27:06 [2024-12-28 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123357', 'tblTempUsageDetail_20' ) start [2024-12-28 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123357', 'tblTempUsageDetail_20' ) end [2024-12-28 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123357', 'tblTempVendorCDR_20' ) start [2024-12-28 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123357', 'tblTempVendorCDR_20' ) end [2024-12-28 18:27:19] Production.INFO: ProcessCDR(1,14123357,1,1,2) [2024-12-28 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123357', 'tblTempUsageDetail_20' ) start [2024-12-28 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123357', 'tblTempUsageDetail_20' ) end [2024-12-28 18:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:27:23] Production.INFO: ==13200== Releasing lock... [2024-12-28 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:27:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:28:05 [end_date_ymd] => 2024-12-28 18:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:28:05' and `end` < '2024-12-28 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-28 18:28:18] Production.INFO: count ==1579 [2024-12-28 18:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:28:05 - End Time 2024-12-28 18:28:05 [2024-12-28 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123362', 'tblTempUsageDetail_20' ) start [2024-12-28 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123362', 'tblTempUsageDetail_20' ) end [2024-12-28 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123362', 'tblTempVendorCDR_20' ) start [2024-12-28 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123362', 'tblTempVendorCDR_20' ) end [2024-12-28 18:28:18] Production.INFO: ProcessCDR(1,14123362,1,1,2) [2024-12-28 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123362', 'tblTempUsageDetail_20' ) start [2024-12-28 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123362', 'tblTempUsageDetail_20' ) end [2024-12-28 18:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:28:22] Production.INFO: ==13270== Releasing lock... [2024-12-28 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:28:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:29:05 [end_date_ymd] => 2024-12-28 18:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:29:05' and `end` < '2024-12-28 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-28 18:29:18] Production.INFO: count ==1581 [2024-12-28 18:29:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:29:05 - End Time 2024-12-28 18:29:05 [2024-12-28 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123367', 'tblTempUsageDetail_20' ) start [2024-12-28 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123367', 'tblTempUsageDetail_20' ) end [2024-12-28 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123367', 'tblTempVendorCDR_20' ) start [2024-12-28 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123367', 'tblTempVendorCDR_20' ) end [2024-12-28 18:29:18] Production.INFO: ProcessCDR(1,14123367,1,1,2) [2024-12-28 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123367', 'tblTempUsageDetail_20' ) start [2024-12-28 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123367', 'tblTempUsageDetail_20' ) end [2024-12-28 18:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:29:23] Production.INFO: ==13344== Releasing lock... [2024-12-28 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:29:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:30:05 [end_date_ymd] => 2024-12-28 18:30:05 [RateCDR] => 1 ) [2024-12-28 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:30:05' and `end` < '2024-12-28 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:30:18] Production.INFO: count ==1584 [2024-12-28 18:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:30:05 - End Time 2024-12-28 18:30:05 [2024-12-28 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123372', 'tblTempUsageDetail_20' ) start [2024-12-28 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123372', 'tblTempUsageDetail_20' ) end [2024-12-28 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123372', 'tblTempVendorCDR_20' ) start [2024-12-28 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123372', 'tblTempVendorCDR_20' ) end [2024-12-28 18:30:18] Production.INFO: ProcessCDR(1,14123372,1,1,2) [2024-12-28 18:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123372', 'tblTempUsageDetail_20' ) start [2024-12-28 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123372', 'tblTempUsageDetail_20' ) end [2024-12-28 18:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:30:23] Production.INFO: ==13418== Releasing lock... [2024-12-28 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:30:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:31:04 [end_date_ymd] => 2024-12-28 18:31:04 [RateCDR] => 1 ) [2024-12-28 18: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-28 15:31:04' and `end` < '2024-12-28 18: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-28 18:31:17] Production.INFO: count ==1580 [2024-12-28 18:31:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:31:04 - End Time 2024-12-28 18:31:04 [2024-12-28 18:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123378', 'tblTempUsageDetail_20' ) start [2024-12-28 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123378', 'tblTempUsageDetail_20' ) end [2024-12-28 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123378', 'tblTempVendorCDR_20' ) start [2024-12-28 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123378', 'tblTempVendorCDR_20' ) end [2024-12-28 18:31:17] Production.INFO: ProcessCDR(1,14123378,1,1,2) [2024-12-28 18:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123378', 'tblTempUsageDetail_20' ) start [2024-12-28 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123378', 'tblTempUsageDetail_20' ) end [2024-12-28 18:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:31:20] Production.INFO: ==13488== Releasing lock... [2024-12-28 18:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:31:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:32:05 [end_date_ymd] => 2024-12-28 18:32:05 [RateCDR] => 1 ) [2024-12-28 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:32:05' and `end` < '2024-12-28 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:32:17] Production.INFO: count ==1579 [2024-12-28 18:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:32:05 - End Time 2024-12-28 18:32:05 [2024-12-28 18:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123383', 'tblTempUsageDetail_20' ) start [2024-12-28 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123383', 'tblTempUsageDetail_20' ) end [2024-12-28 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123383', 'tblTempVendorCDR_20' ) start [2024-12-28 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123383', 'tblTempVendorCDR_20' ) end [2024-12-28 18:32:17] Production.INFO: ProcessCDR(1,14123383,1,1,2) [2024-12-28 18:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123383', 'tblTempUsageDetail_20' ) start [2024-12-28 18:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123383', 'tblTempUsageDetail_20' ) end [2024-12-28 18:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:32:20] Production.INFO: ==13559== Releasing lock... [2024-12-28 18:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:32:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:33:05 [end_date_ymd] => 2024-12-28 18:33:05 [RateCDR] => 1 ) [2024-12-28 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:33:05' and `end` < '2024-12-28 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:33:17] Production.INFO: count ==1578 [2024-12-28 18:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:33:05 - End Time 2024-12-28 18:33:05 [2024-12-28 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123388', 'tblTempUsageDetail_20' ) start [2024-12-28 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123388', 'tblTempUsageDetail_20' ) end [2024-12-28 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123388', 'tblTempVendorCDR_20' ) start [2024-12-28 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123388', 'tblTempVendorCDR_20' ) end [2024-12-28 18:33:18] Production.INFO: ProcessCDR(1,14123388,1,1,2) [2024-12-28 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123388', 'tblTempUsageDetail_20' ) start [2024-12-28 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123388', 'tblTempUsageDetail_20' ) end [2024-12-28 18:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:33:22] Production.INFO: ==13630== Releasing lock... [2024-12-28 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:33:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:34:04 [end_date_ymd] => 2024-12-28 18:34:04 [RateCDR] => 1 ) [2024-12-28 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:34:04' and `end` < '2024-12-28 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:34:17] Production.INFO: count ==1576 [2024-12-28 18:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:34:04 - End Time 2024-12-28 18:34:04 [2024-12-28 18:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123393', 'tblTempUsageDetail_20' ) start [2024-12-28 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123393', 'tblTempUsageDetail_20' ) end [2024-12-28 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123393', 'tblTempVendorCDR_20' ) start [2024-12-28 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123393', 'tblTempVendorCDR_20' ) end [2024-12-28 18:34:17] Production.INFO: ProcessCDR(1,14123393,1,1,2) [2024-12-28 18:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123393', 'tblTempUsageDetail_20' ) start [2024-12-28 18:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123393', 'tblTempUsageDetail_20' ) end [2024-12-28 18:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:34:20] Production.INFO: ==13699== Releasing lock... [2024-12-28 18:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:34:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:35:05 [end_date_ymd] => 2024-12-28 18:35:05 [RateCDR] => 1 ) [2024-12-28 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:35:05' and `end` < '2024-12-28 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:35:18] Production.INFO: count ==1575 [2024-12-28 18:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:35:05 - End Time 2024-12-28 18:35:05 [2024-12-28 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123398', 'tblTempUsageDetail_20' ) start [2024-12-28 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123398', 'tblTempUsageDetail_20' ) end [2024-12-28 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123398', 'tblTempVendorCDR_20' ) start [2024-12-28 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123398', 'tblTempVendorCDR_20' ) end [2024-12-28 18:35:18] Production.INFO: ProcessCDR(1,14123398,1,1,2) [2024-12-28 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123398', 'tblTempUsageDetail_20' ) start [2024-12-28 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123398', 'tblTempUsageDetail_20' ) end [2024-12-28 18:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:35:21] Production.INFO: ==13770== Releasing lock... [2024-12-28 18:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:35:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:36:05 [end_date_ymd] => 2024-12-28 18:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:36:05' and `end` < '2024-12-28 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-28 18:36:18] Production.INFO: count ==1572 [2024-12-28 18:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:36:05 - End Time 2024-12-28 18:36:05 [2024-12-28 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123403', 'tblTempUsageDetail_20' ) start [2024-12-28 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123403', 'tblTempUsageDetail_20' ) end [2024-12-28 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123403', 'tblTempVendorCDR_20' ) start [2024-12-28 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123403', 'tblTempVendorCDR_20' ) end [2024-12-28 18:36:18] Production.INFO: ProcessCDR(1,14123403,1,1,2) [2024-12-28 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123403', 'tblTempUsageDetail_20' ) start [2024-12-28 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123403', 'tblTempUsageDetail_20' ) end [2024-12-28 18:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:36:22] Production.INFO: ==13843== Releasing lock... [2024-12-28 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:36:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:37:05 [end_date_ymd] => 2024-12-28 18:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:37:05' and `end` < '2024-12-28 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-28 18:37:19] Production.INFO: count ==1559 [2024-12-28 18:37:20] Production.ERROR: pbx CDR StartTime 2024-12-28 15:37:05 - End Time 2024-12-28 18:37:05 [2024-12-28 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123408', 'tblTempUsageDetail_20' ) start [2024-12-28 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123408', 'tblTempUsageDetail_20' ) end [2024-12-28 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123408', 'tblTempVendorCDR_20' ) start [2024-12-28 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123408', 'tblTempVendorCDR_20' ) end [2024-12-28 18:37:20] Production.INFO: ProcessCDR(1,14123408,1,1,2) [2024-12-28 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123408', 'tblTempUsageDetail_20' ) start [2024-12-28 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123408', 'tblTempUsageDetail_20' ) end [2024-12-28 18:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:37:25] Production.INFO: ==13919== Releasing lock... [2024-12-28 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:37:25] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:38:06 [end_date_ymd] => 2024-12-28 18:38:06 [RateCDR] => 1 ) [2024-12-28 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-28 15:38:06' and `end` < '2024-12-28 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-28 18:38:18] Production.INFO: count ==1557 [2024-12-28 18:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:38:06 - End Time 2024-12-28 18:38:06 [2024-12-28 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123413', 'tblTempUsageDetail_20' ) start [2024-12-28 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123413', 'tblTempUsageDetail_20' ) end [2024-12-28 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123413', 'tblTempVendorCDR_20' ) start [2024-12-28 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123413', 'tblTempVendorCDR_20' ) end [2024-12-28 18:38:18] Production.INFO: ProcessCDR(1,14123413,1,1,2) [2024-12-28 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123413', 'tblTempUsageDetail_20' ) start [2024-12-28 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123413', 'tblTempUsageDetail_20' ) end [2024-12-28 18:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:38:22] Production.INFO: ==14031== Releasing lock... [2024-12-28 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:38:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:39:05 [end_date_ymd] => 2024-12-28 18:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:39:05' and `end` < '2024-12-28 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-28 18:39:18] Production.INFO: count ==1551 [2024-12-28 18:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:39:05 - End Time 2024-12-28 18:39:05 [2024-12-28 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123418', 'tblTempUsageDetail_20' ) start [2024-12-28 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123418', 'tblTempUsageDetail_20' ) end [2024-12-28 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123418', 'tblTempVendorCDR_20' ) start [2024-12-28 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123418', 'tblTempVendorCDR_20' ) end [2024-12-28 18:39:18] Production.INFO: ProcessCDR(1,14123418,1,1,2) [2024-12-28 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123418', 'tblTempUsageDetail_20' ) start [2024-12-28 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123418', 'tblTempUsageDetail_20' ) end [2024-12-28 18:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:39:22] Production.INFO: ==14101== Releasing lock... [2024-12-28 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:39:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:40:07 [end_date_ymd] => 2024-12-28 18:40:07 [RateCDR] => 1 ) [2024-12-28 18:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:40:07' and `end` < '2024-12-28 18:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:40:20] Production.INFO: count ==1550 [2024-12-28 18:40:20] Production.ERROR: pbx CDR StartTime 2024-12-28 15:40:07 - End Time 2024-12-28 18:40:07 [2024-12-28 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123424', 'tblTempUsageDetail_20' ) start [2024-12-28 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123424', 'tblTempUsageDetail_20' ) end [2024-12-28 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123424', 'tblTempVendorCDR_20' ) start [2024-12-28 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123424', 'tblTempVendorCDR_20' ) end [2024-12-28 18:40:20] Production.INFO: ProcessCDR(1,14123424,1,1,2) [2024-12-28 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123424', 'tblTempUsageDetail_20' ) start [2024-12-28 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123424', 'tblTempUsageDetail_20' ) end [2024-12-28 18:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:40:23] Production.INFO: ==14178== Releasing lock... [2024-12-28 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:40:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:41:05 [end_date_ymd] => 2024-12-28 18:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:41:05' and `end` < '2024-12-28 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-28 18:41:18] Production.INFO: count ==1554 [2024-12-28 18:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:41:05 - End Time 2024-12-28 18:41:05 [2024-12-28 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123429', 'tblTempUsageDetail_20' ) start [2024-12-28 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123429', 'tblTempUsageDetail_20' ) end [2024-12-28 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123429', 'tblTempVendorCDR_20' ) start [2024-12-28 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123429', 'tblTempVendorCDR_20' ) end [2024-12-28 18:41:18] Production.INFO: ProcessCDR(1,14123429,1,1,2) [2024-12-28 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123429', 'tblTempUsageDetail_20' ) start [2024-12-28 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123429', 'tblTempUsageDetail_20' ) end [2024-12-28 18:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:41:21] Production.INFO: ==14250== Releasing lock... [2024-12-28 18:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:41:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:42:05 [end_date_ymd] => 2024-12-28 18:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:42:05' and `end` < '2024-12-28 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-28 18:42:17] Production.INFO: count ==1553 [2024-12-28 18:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:42:05 - End Time 2024-12-28 18:42:05 [2024-12-28 18:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123434', 'tblTempUsageDetail_20' ) start [2024-12-28 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123434', 'tblTempUsageDetail_20' ) end [2024-12-28 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123434', 'tblTempVendorCDR_20' ) start [2024-12-28 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123434', 'tblTempVendorCDR_20' ) end [2024-12-28 18:42:18] Production.INFO: ProcessCDR(1,14123434,1,1,2) [2024-12-28 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123434', 'tblTempUsageDetail_20' ) start [2024-12-28 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123434', 'tblTempUsageDetail_20' ) end [2024-12-28 18:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:42:21] Production.INFO: ==14324== Releasing lock... [2024-12-28 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:42:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-28 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:43:05 [end_date_ymd] => 2024-12-28 18:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:43:05' and `end` < '2024-12-28 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-28 18:43:18] Production.INFO: count ==1554 [2024-12-28 18:43:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:43:05 - End Time 2024-12-28 18:43:05 [2024-12-28 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123439', 'tblTempUsageDetail_20' ) start [2024-12-28 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123439', 'tblTempUsageDetail_20' ) end [2024-12-28 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123439', 'tblTempVendorCDR_20' ) start [2024-12-28 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123439', 'tblTempVendorCDR_20' ) end [2024-12-28 18:43:18] Production.INFO: ProcessCDR(1,14123439,1,1,2) [2024-12-28 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123439', 'tblTempUsageDetail_20' ) start [2024-12-28 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123439', 'tblTempUsageDetail_20' ) end [2024-12-28 18:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:43:22] Production.INFO: ==14396== Releasing lock... [2024-12-28 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:43:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:44:05 [end_date_ymd] => 2024-12-28 18:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:44:05' and `end` < '2024-12-28 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-28 18:44:19] Production.INFO: count ==1552 [2024-12-28 18:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:44:05 - End Time 2024-12-28 18:44:05 [2024-12-28 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123444', 'tblTempUsageDetail_20' ) start [2024-12-28 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123444', 'tblTempUsageDetail_20' ) end [2024-12-28 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123444', 'tblTempVendorCDR_20' ) start [2024-12-28 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123444', 'tblTempVendorCDR_20' ) end [2024-12-28 18:44:19] Production.INFO: ProcessCDR(1,14123444,1,1,2) [2024-12-28 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123444', 'tblTempUsageDetail_20' ) start [2024-12-28 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123444', 'tblTempUsageDetail_20' ) end [2024-12-28 18:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:44:22] Production.INFO: ==14468== Releasing lock... [2024-12-28 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:44:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:45:04 [end_date_ymd] => 2024-12-28 18:45:04 [RateCDR] => 1 ) [2024-12-28 18:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:45:04' and `end` < '2024-12-28 18:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:45:17] Production.INFO: count ==1548 [2024-12-28 18:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:45:04 - End Time 2024-12-28 18:45:04 [2024-12-28 18:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123449', 'tblTempUsageDetail_20' ) start [2024-12-28 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123449', 'tblTempUsageDetail_20' ) end [2024-12-28 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123449', 'tblTempVendorCDR_20' ) start [2024-12-28 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123449', 'tblTempVendorCDR_20' ) end [2024-12-28 18:45:17] Production.INFO: ProcessCDR(1,14123449,1,1,2) [2024-12-28 18:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123449', 'tblTempUsageDetail_20' ) start [2024-12-28 18:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123449', 'tblTempUsageDetail_20' ) end [2024-12-28 18:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:45:20] Production.INFO: ==14540== Releasing lock... [2024-12-28 18:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:45:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:46:05 [end_date_ymd] => 2024-12-28 18:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:46:05' and `end` < '2024-12-28 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-28 18:46:18] Production.INFO: count ==1547 [2024-12-28 18:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:46:05 - End Time 2024-12-28 18:46:05 [2024-12-28 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123454', 'tblTempUsageDetail_20' ) start [2024-12-28 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123454', 'tblTempUsageDetail_20' ) end [2024-12-28 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123454', 'tblTempVendorCDR_20' ) start [2024-12-28 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123454', 'tblTempVendorCDR_20' ) end [2024-12-28 18:46:18] Production.INFO: ProcessCDR(1,14123454,1,1,2) [2024-12-28 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123454', 'tblTempUsageDetail_20' ) start [2024-12-28 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123454', 'tblTempUsageDetail_20' ) end [2024-12-28 18:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:46:22] Production.INFO: ==14614== Releasing lock... [2024-12-28 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:46:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:47:05 [end_date_ymd] => 2024-12-28 18:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:47:05' and `end` < '2024-12-28 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-28 18:47:18] Production.INFO: count ==1547 [2024-12-28 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:47:05 - End Time 2024-12-28 18:47:05 [2024-12-28 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123459', 'tblTempUsageDetail_20' ) start [2024-12-28 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123459', 'tblTempUsageDetail_20' ) end [2024-12-28 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123459', 'tblTempVendorCDR_20' ) start [2024-12-28 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123459', 'tblTempVendorCDR_20' ) end [2024-12-28 18:47:18] Production.INFO: ProcessCDR(1,14123459,1,1,2) [2024-12-28 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123459', 'tblTempUsageDetail_20' ) start [2024-12-28 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123459', 'tblTempUsageDetail_20' ) end [2024-12-28 18:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:47:21] Production.INFO: ==14683== Releasing lock... [2024-12-28 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:47:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-28 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:48:05 [end_date_ymd] => 2024-12-28 18:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:48:05' and `end` < '2024-12-28 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-28 18:48:18] Production.INFO: count ==1535 [2024-12-28 18:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:48:05 - End Time 2024-12-28 18:48:05 [2024-12-28 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123464', 'tblTempUsageDetail_20' ) start [2024-12-28 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123464', 'tblTempUsageDetail_20' ) end [2024-12-28 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123464', 'tblTempVendorCDR_20' ) start [2024-12-28 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123464', 'tblTempVendorCDR_20' ) end [2024-12-28 18:48:18] Production.INFO: ProcessCDR(1,14123464,1,1,2) [2024-12-28 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123464', 'tblTempUsageDetail_20' ) start [2024-12-28 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123464', 'tblTempUsageDetail_20' ) end [2024-12-28 18:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:48:21] Production.INFO: ==14760== Releasing lock... [2024-12-28 18:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:48:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:49:04 [end_date_ymd] => 2024-12-28 18:49:04 [RateCDR] => 1 ) [2024-12-28 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:49:04' and `end` < '2024-12-28 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:49:17] Production.INFO: count ==1523 [2024-12-28 18:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:49:04 - End Time 2024-12-28 18:49:04 [2024-12-28 18:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123469', 'tblTempUsageDetail_20' ) start [2024-12-28 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123469', 'tblTempUsageDetail_20' ) end [2024-12-28 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123469', 'tblTempVendorCDR_20' ) start [2024-12-28 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123469', 'tblTempVendorCDR_20' ) end [2024-12-28 18:49:17] Production.INFO: ProcessCDR(1,14123469,1,1,2) [2024-12-28 18:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123469', 'tblTempUsageDetail_20' ) start [2024-12-28 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123469', 'tblTempUsageDetail_20' ) end [2024-12-28 18:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:49:20] Production.INFO: ==14833== Releasing lock... [2024-12-28 18:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:49:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:50:06 [end_date_ymd] => 2024-12-28 18:50:06 [RateCDR] => 1 ) [2024-12-28 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-28 15:50:06' and `end` < '2024-12-28 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-28 18:50:19] Production.INFO: count ==1523 [2024-12-28 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:50:06 - End Time 2024-12-28 18:50:06 [2024-12-28 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123475', 'tblTempUsageDetail_20' ) start [2024-12-28 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123475', 'tblTempUsageDetail_20' ) end [2024-12-28 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123475', 'tblTempVendorCDR_20' ) start [2024-12-28 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123475', 'tblTempVendorCDR_20' ) end [2024-12-28 18:50:19] Production.INFO: ProcessCDR(1,14123475,1,1,2) [2024-12-28 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123475', 'tblTempUsageDetail_20' ) start [2024-12-28 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123475', 'tblTempUsageDetail_20' ) end [2024-12-28 18:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:50:22] Production.INFO: ==14913== Releasing lock... [2024-12-28 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:50:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-28 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:51:04 [end_date_ymd] => 2024-12-28 18:51:04 [RateCDR] => 1 ) [2024-12-28 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:51:04' and `end` < '2024-12-28 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:51:17] Production.INFO: count ==1536 [2024-12-28 18:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 15:51:04 - End Time 2024-12-28 18:51:04 [2024-12-28 18:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123480', 'tblTempUsageDetail_20' ) start [2024-12-28 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123480', 'tblTempUsageDetail_20' ) end [2024-12-28 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123480', 'tblTempVendorCDR_20' ) start [2024-12-28 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123480', 'tblTempVendorCDR_20' ) end [2024-12-28 18:51:17] Production.INFO: ProcessCDR(1,14123480,1,1,2) [2024-12-28 18:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123480', 'tblTempUsageDetail_20' ) start [2024-12-28 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123480', 'tblTempUsageDetail_20' ) end [2024-12-28 18:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:51:22] Production.INFO: ==14987== Releasing lock... [2024-12-28 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:51:22] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:52:05 [end_date_ymd] => 2024-12-28 18:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:52:05' and `end` < '2024-12-28 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-28 18:52:17] Production.INFO: count ==1532 [2024-12-28 18:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:52:05 - End Time 2024-12-28 18:52:05 [2024-12-28 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123485', 'tblTempUsageDetail_20' ) start [2024-12-28 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123485', 'tblTempUsageDetail_20' ) end [2024-12-28 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123485', 'tblTempVendorCDR_20' ) start [2024-12-28 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123485', 'tblTempVendorCDR_20' ) end [2024-12-28 18:52:18] Production.INFO: ProcessCDR(1,14123485,1,1,2) [2024-12-28 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123485', 'tblTempUsageDetail_20' ) start [2024-12-28 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123485', 'tblTempUsageDetail_20' ) end [2024-12-28 18:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:52:21] Production.INFO: ==15061== Releasing lock... [2024-12-28 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:52:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:53:05 [end_date_ymd] => 2024-12-28 18:53:05 [RateCDR] => 1 ) [2024-12-28 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:53:05' and `end` < '2024-12-28 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:53:18] Production.INFO: count ==1533 [2024-12-28 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 15:53:05 - End Time 2024-12-28 18:53:05 [2024-12-28 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123488', 'tblTempUsageDetail_20' ) start [2024-12-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123488', 'tblTempUsageDetail_20' ) end [2024-12-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123488', 'tblTempVendorCDR_20' ) start [2024-12-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123488', 'tblTempVendorCDR_20' ) end [2024-12-28 18:53:19] Production.INFO: ProcessCDR(1,14123488,1,1,2) [2024-12-28 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123488', 'tblTempUsageDetail_20' ) start [2024-12-28 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123488', 'tblTempUsageDetail_20' ) end [2024-12-28 18:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:53:22] Production.INFO: ==15146== Releasing lock... [2024-12-28 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:53:22] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:54:05 [end_date_ymd] => 2024-12-28 18:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:54:05' and `end` < '2024-12-28 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-28 18:54:18] Production.INFO: count ==1529 [2024-12-28 18:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:54:05 - End Time 2024-12-28 18:54:05 [2024-12-28 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123495', 'tblTempUsageDetail_20' ) start [2024-12-28 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123495', 'tblTempUsageDetail_20' ) end [2024-12-28 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123495', 'tblTempVendorCDR_20' ) start [2024-12-28 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123495', 'tblTempVendorCDR_20' ) end [2024-12-28 18:54:18] Production.INFO: ProcessCDR(1,14123495,1,1,2) [2024-12-28 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123495', 'tblTempUsageDetail_20' ) start [2024-12-28 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123495', 'tblTempUsageDetail_20' ) end [2024-12-28 18:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:54:23] Production.INFO: ==15262== Releasing lock... [2024-12-28 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:54:23] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:55:05 [end_date_ymd] => 2024-12-28 18:55:05 [RateCDR] => 1 ) [2024-12-28 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:55:05' and `end` < '2024-12-28 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:55:18] Production.INFO: count ==1508 [2024-12-28 18:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:55:05 - End Time 2024-12-28 18:55:05 [2024-12-28 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123500', 'tblTempUsageDetail_20' ) start [2024-12-28 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123500', 'tblTempUsageDetail_20' ) end [2024-12-28 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123500', 'tblTempVendorCDR_20' ) start [2024-12-28 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123500', 'tblTempVendorCDR_20' ) end [2024-12-28 18:55:18] Production.INFO: ProcessCDR(1,14123500,1,1,2) [2024-12-28 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123500', 'tblTempUsageDetail_20' ) start [2024-12-28 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123500', 'tblTempUsageDetail_20' ) end [2024-12-28 18:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:55:21] Production.INFO: ==15341== Releasing lock... [2024-12-28 18:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:55:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:56:05 [end_date_ymd] => 2024-12-28 18:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:56:05' and `end` < '2024-12-28 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-28 18:56:18] Production.INFO: count ==1507 [2024-12-28 18:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:56:05 - End Time 2024-12-28 18:56:05 [2024-12-28 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123505', 'tblTempUsageDetail_20' ) start [2024-12-28 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123505', 'tblTempUsageDetail_20' ) end [2024-12-28 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123505', 'tblTempVendorCDR_20' ) start [2024-12-28 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123505', 'tblTempVendorCDR_20' ) end [2024-12-28 18:56:18] Production.INFO: ProcessCDR(1,14123505,1,1,2) [2024-12-28 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123505', 'tblTempUsageDetail_20' ) start [2024-12-28 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123505', 'tblTempUsageDetail_20' ) end [2024-12-28 18:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:56:21] Production.INFO: ==15414== Releasing lock... [2024-12-28 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:56:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:57:05 [end_date_ymd] => 2024-12-28 18:57:05 [RateCDR] => 1 ) [2024-12-28 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 15:57:05' and `end` < '2024-12-28 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 18:57:17] Production.INFO: count ==1506 [2024-12-28 18:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:57:05 - End Time 2024-12-28 18:57:05 [2024-12-28 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123510', 'tblTempUsageDetail_20' ) start [2024-12-28 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123510', 'tblTempUsageDetail_20' ) end [2024-12-28 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123510', 'tblTempVendorCDR_20' ) start [2024-12-28 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123510', 'tblTempVendorCDR_20' ) end [2024-12-28 18:57:18] Production.INFO: ProcessCDR(1,14123510,1,1,2) [2024-12-28 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123510', 'tblTempUsageDetail_20' ) start [2024-12-28 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123510', 'tblTempUsageDetail_20' ) end [2024-12-28 18:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:57:21] Production.INFO: ==15498== Releasing lock... [2024-12-28 18:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:57:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:58:05 [end_date_ymd] => 2024-12-28 18:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:58:05' and `end` < '2024-12-28 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-28 18:58:18] Production.INFO: count ==1508 [2024-12-28 18:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:58:05 - End Time 2024-12-28 18:58:05 [2024-12-28 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123515', 'tblTempUsageDetail_20' ) start [2024-12-28 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123515', 'tblTempUsageDetail_20' ) end [2024-12-28 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123515', 'tblTempVendorCDR_20' ) start [2024-12-28 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123515', 'tblTempVendorCDR_20' ) end [2024-12-28 18:58:18] Production.INFO: ProcessCDR(1,14123515,1,1,2) [2024-12-28 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123515', 'tblTempUsageDetail_20' ) start [2024-12-28 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123515', 'tblTempUsageDetail_20' ) end [2024-12-28 18:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:58:21] Production.INFO: ==15572== Releasing lock... [2024-12-28 18:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:58:21] Production.INFO: 39 MB #Memory Used# [2024-12-28 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 15:59:05 [end_date_ymd] => 2024-12-28 18:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 15:59:05' and `end` < '2024-12-28 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-28 18:59:18] Production.INFO: count ==1504 [2024-12-28 18:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 15:59:05 - End Time 2024-12-28 18:59:05 [2024-12-28 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123520', 'tblTempUsageDetail_20' ) start [2024-12-28 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123520', 'tblTempUsageDetail_20' ) end [2024-12-28 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123520', 'tblTempVendorCDR_20' ) start [2024-12-28 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123520', 'tblTempVendorCDR_20' ) end [2024-12-28 18:59:18] Production.INFO: ProcessCDR(1,14123520,1,1,2) [2024-12-28 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123520', 'tblTempUsageDetail_20' ) start [2024-12-28 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123520', 'tblTempUsageDetail_20' ) end [2024-12-28 18:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 18:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 18:59:21] Production.INFO: ==15647== Releasing lock... [2024-12-28 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 18:59:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:00:05 [end_date_ymd] => 2024-12-28 19:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:00:05' and `end` < '2024-12-28 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-28 19:00:18] Production.INFO: count ==1492 [2024-12-28 19:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:00:05 - End Time 2024-12-28 19:00:05 [2024-12-28 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123526', 'tblTempUsageDetail_20' ) start [2024-12-28 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123526', 'tblTempUsageDetail_20' ) end [2024-12-28 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123526', 'tblTempVendorCDR_20' ) start [2024-12-28 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123526', 'tblTempVendorCDR_20' ) end [2024-12-28 19:00:18] Production.INFO: ProcessCDR(1,14123526,1,1,2) [2024-12-28 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123526', 'tblTempUsageDetail_20' ) start [2024-12-28 19:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123526', 'tblTempUsageDetail_20' ) end [2024-12-28 19:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:00:21] Production.INFO: ==15727== Releasing lock... [2024-12-28 19:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:00:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:01:05 [end_date_ymd] => 2024-12-28 19:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:01:05' and `end` < '2024-12-28 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-28 19:01:17] Production.INFO: count ==1490 [2024-12-28 19:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:01:05 - End Time 2024-12-28 19:01:05 [2024-12-28 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123531', 'tblTempUsageDetail_20' ) start [2024-12-28 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123531', 'tblTempUsageDetail_20' ) end [2024-12-28 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123531', 'tblTempVendorCDR_20' ) start [2024-12-28 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123531', 'tblTempVendorCDR_20' ) end [2024-12-28 19:01:18] Production.INFO: ProcessCDR(1,14123531,1,1,2) [2024-12-28 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123531', 'tblTempUsageDetail_20' ) start [2024-12-28 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123531', 'tblTempUsageDetail_20' ) end [2024-12-28 19:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:01:21] Production.INFO: ==15821== Releasing lock... [2024-12-28 19:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:01:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:02:04 [end_date_ymd] => 2024-12-28 19:02:04 [RateCDR] => 1 ) [2024-12-28 19:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:02:04' and `end` < '2024-12-28 19:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:02:18] Production.INFO: count ==1492 [2024-12-28 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:02:04 - End Time 2024-12-28 19:02:04 [2024-12-28 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123536', 'tblTempUsageDetail_20' ) start [2024-12-28 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123536', 'tblTempUsageDetail_20' ) end [2024-12-28 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123536', 'tblTempVendorCDR_20' ) start [2024-12-28 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123536', 'tblTempVendorCDR_20' ) end [2024-12-28 19:02:18] Production.INFO: ProcessCDR(1,14123536,1,1,2) [2024-12-28 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123536', 'tblTempUsageDetail_20' ) start [2024-12-28 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123536', 'tblTempUsageDetail_20' ) end [2024-12-28 19:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:02:21] Production.INFO: ==15977== Releasing lock... [2024-12-28 19:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:02:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:03:06 [end_date_ymd] => 2024-12-28 19:03:06 [RateCDR] => 1 ) [2024-12-28 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:03:06' and `end` < '2024-12-28 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:03:18] Production.INFO: count ==1492 [2024-12-28 19:03:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:03:06 - End Time 2024-12-28 19:03:06 [2024-12-28 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123541', 'tblTempUsageDetail_20' ) start [2024-12-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123541', 'tblTempUsageDetail_20' ) end [2024-12-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123541', 'tblTempVendorCDR_20' ) start [2024-12-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123541', 'tblTempVendorCDR_20' ) end [2024-12-28 19:03:19] Production.INFO: ProcessCDR(1,14123541,1,1,2) [2024-12-28 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123541', 'tblTempUsageDetail_20' ) start [2024-12-28 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123541', 'tblTempUsageDetail_20' ) end [2024-12-28 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:03:22] Production.INFO: ==16053== Releasing lock... [2024-12-28 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:03:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:04:05 [end_date_ymd] => 2024-12-28 19:04:05 [RateCDR] => 1 ) [2024-12-28 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:04:05' and `end` < '2024-12-28 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:04:17] Production.INFO: count ==1490 [2024-12-28 19:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:04:05 - End Time 2024-12-28 19:04:05 [2024-12-28 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123546', 'tblTempUsageDetail_20' ) start [2024-12-28 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123546', 'tblTempUsageDetail_20' ) end [2024-12-28 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123546', 'tblTempVendorCDR_20' ) start [2024-12-28 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123546', 'tblTempVendorCDR_20' ) end [2024-12-28 19:04:17] Production.INFO: ProcessCDR(1,14123546,1,1,2) [2024-12-28 19:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123546', 'tblTempUsageDetail_20' ) start [2024-12-28 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123546', 'tblTempUsageDetail_20' ) end [2024-12-28 19:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:04:22] Production.INFO: ==16133== Releasing lock... [2024-12-28 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:04:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:05:05 [end_date_ymd] => 2024-12-28 19:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:05:05' and `end` < '2024-12-28 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-28 19:05:18] Production.INFO: count ==1489 [2024-12-28 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:05:05 - End Time 2024-12-28 19:05:05 [2024-12-28 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123551', 'tblTempUsageDetail_20' ) start [2024-12-28 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123551', 'tblTempUsageDetail_20' ) end [2024-12-28 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123551', 'tblTempVendorCDR_20' ) start [2024-12-28 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123551', 'tblTempVendorCDR_20' ) end [2024-12-28 19:05:18] Production.INFO: ProcessCDR(1,14123551,1,1,2) [2024-12-28 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123551', 'tblTempUsageDetail_20' ) start [2024-12-28 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123551', 'tblTempUsageDetail_20' ) end [2024-12-28 19:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:05:21] Production.INFO: ==16289== Releasing lock... [2024-12-28 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:05:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:06:06 [end_date_ymd] => 2024-12-28 19:06:06 [RateCDR] => 1 ) [2024-12-28 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:06:06' and `end` < '2024-12-28 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:06:19] Production.INFO: count ==1473 [2024-12-28 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:06:06 - End Time 2024-12-28 19:06:06 [2024-12-28 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123556', 'tblTempUsageDetail_20' ) start [2024-12-28 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123556', 'tblTempUsageDetail_20' ) end [2024-12-28 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123556', 'tblTempVendorCDR_20' ) start [2024-12-28 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123556', 'tblTempVendorCDR_20' ) end [2024-12-28 19:06:19] Production.INFO: ProcessCDR(1,14123556,1,1,2) [2024-12-28 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123556', 'tblTempUsageDetail_20' ) start [2024-12-28 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123556', 'tblTempUsageDetail_20' ) end [2024-12-28 19:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:06:22] Production.INFO: ==16367== Releasing lock... [2024-12-28 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:06:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:07:05 [end_date_ymd] => 2024-12-28 19:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:07:05' and `end` < '2024-12-28 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-28 19:07:18] Production.INFO: count ==1472 [2024-12-28 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:07:05 - End Time 2024-12-28 19:07:05 [2024-12-28 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123561', 'tblTempUsageDetail_20' ) start [2024-12-28 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123561', 'tblTempUsageDetail_20' ) end [2024-12-28 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123561', 'tblTempVendorCDR_20' ) start [2024-12-28 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123561', 'tblTempVendorCDR_20' ) end [2024-12-28 19:07:18] Production.INFO: ProcessCDR(1,14123561,1,1,2) [2024-12-28 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123561', 'tblTempUsageDetail_20' ) start [2024-12-28 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123561', 'tblTempUsageDetail_20' ) end [2024-12-28 19:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:07:22] Production.INFO: ==16447== Releasing lock... [2024-12-28 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:07:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:08:06 [end_date_ymd] => 2024-12-28 19:08:06 [RateCDR] => 1 ) [2024-12-28 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:08:06' and `end` < '2024-12-28 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:08:19] Production.INFO: count ==1483 [2024-12-28 19:08:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:08:06 - End Time 2024-12-28 19:08:06 [2024-12-28 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123566', 'tblTempUsageDetail_20' ) start [2024-12-28 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123566', 'tblTempUsageDetail_20' ) end [2024-12-28 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123566', 'tblTempVendorCDR_20' ) start [2024-12-28 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123566', 'tblTempVendorCDR_20' ) end [2024-12-28 19:08:19] Production.INFO: ProcessCDR(1,14123566,1,1,2) [2024-12-28 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123566', 'tblTempUsageDetail_20' ) start [2024-12-28 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123566', 'tblTempUsageDetail_20' ) end [2024-12-28 19:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:08:23] Production.INFO: ==16602== Releasing lock... [2024-12-28 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:08:23] Production.INFO: 39 MB #Memory Used# [2024-12-28 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:09:04 [end_date_ymd] => 2024-12-28 19:09:04 [RateCDR] => 1 ) [2024-12-28 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:09:04' and `end` < '2024-12-28 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:09:17] Production.INFO: count ==1482 [2024-12-28 19:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:09:04 - End Time 2024-12-28 19:09:04 [2024-12-28 19:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123567', 'tblTempUsageDetail_20' ) start [2024-12-28 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123567', 'tblTempUsageDetail_20' ) end [2024-12-28 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123567', 'tblTempVendorCDR_20' ) start [2024-12-28 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123567', 'tblTempVendorCDR_20' ) end [2024-12-28 19:09:17] Production.INFO: ProcessCDR(1,14123567,1,1,2) [2024-12-28 19:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123567', 'tblTempUsageDetail_20' ) start [2024-12-28 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123567', 'tblTempUsageDetail_20' ) end [2024-12-28 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:09:21] Production.INFO: ==16718== Releasing lock... [2024-12-28 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:09:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:10:05 [end_date_ymd] => 2024-12-28 19:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:10:05' and `end` < '2024-12-28 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-28 19:10:17] Production.INFO: count ==1490 [2024-12-28 19:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:10:05 - End Time 2024-12-28 19:10:05 [2024-12-28 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123577', 'tblTempUsageDetail_20' ) start [2024-12-28 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123577', 'tblTempUsageDetail_20' ) end [2024-12-28 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123577', 'tblTempVendorCDR_20' ) start [2024-12-28 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123577', 'tblTempVendorCDR_20' ) end [2024-12-28 19:10:18] Production.INFO: ProcessCDR(1,14123577,1,1,2) [2024-12-28 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123577', 'tblTempUsageDetail_20' ) start [2024-12-28 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123577', 'tblTempUsageDetail_20' ) end [2024-12-28 19:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:10:21] Production.INFO: ==16796== Releasing lock... [2024-12-28 19:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:10:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:11:05 [end_date_ymd] => 2024-12-28 19:11:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:11:05' and `end` < '2024-12-28 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-28 19:11:18] Production.INFO: count ==1488 [2024-12-28 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:11:05 - End Time 2024-12-28 19:11:05 [2024-12-28 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123582', 'tblTempUsageDetail_20' ) start [2024-12-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123582', 'tblTempUsageDetail_20' ) end [2024-12-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123582', 'tblTempVendorCDR_20' ) start [2024-12-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123582', 'tblTempVendorCDR_20' ) end [2024-12-28 19:11:19] Production.INFO: ProcessCDR(1,14123582,1,1,2) [2024-12-28 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123582', 'tblTempUsageDetail_20' ) start [2024-12-28 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123582', 'tblTempUsageDetail_20' ) end [2024-12-28 19:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:11:22] Production.INFO: ==16877== Releasing lock... [2024-12-28 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:11:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:12:05 [end_date_ymd] => 2024-12-28 19:12:05 [RateCDR] => 1 ) [2024-12-28 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:12:05' and `end` < '2024-12-28 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:12:18] Production.INFO: count ==1488 [2024-12-28 19:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:12:05 - End Time 2024-12-28 19:12:05 [2024-12-28 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123587', 'tblTempUsageDetail_20' ) start [2024-12-28 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123587', 'tblTempUsageDetail_20' ) end [2024-12-28 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123587', 'tblTempVendorCDR_20' ) start [2024-12-28 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123587', 'tblTempVendorCDR_20' ) end [2024-12-28 19:12:18] Production.INFO: ProcessCDR(1,14123587,1,1,2) [2024-12-28 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123587', 'tblTempUsageDetail_20' ) start [2024-12-28 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123587', 'tblTempUsageDetail_20' ) end [2024-12-28 19:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:12:21] Production.INFO: ==17032== Releasing lock... [2024-12-28 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:12:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:13:04 [end_date_ymd] => 2024-12-28 19:13:04 [RateCDR] => 1 ) [2024-12-28 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-28 16:13:04' and `end` < '2024-12-28 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-28 19:13:17] Production.INFO: count ==1489 [2024-12-28 19:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:13:04 - End Time 2024-12-28 19:13:04 [2024-12-28 19:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123592', 'tblTempUsageDetail_20' ) start [2024-12-28 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123592', 'tblTempUsageDetail_20' ) end [2024-12-28 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123592', 'tblTempVendorCDR_20' ) start [2024-12-28 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123592', 'tblTempVendorCDR_20' ) end [2024-12-28 19:13:17] Production.INFO: ProcessCDR(1,14123592,1,1,2) [2024-12-28 19:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123592', 'tblTempUsageDetail_20' ) start [2024-12-28 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123592', 'tblTempUsageDetail_20' ) end [2024-12-28 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:13:22] Production.INFO: ==17109== Releasing lock... [2024-12-28 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:13:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:14:05 [end_date_ymd] => 2024-12-28 19:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:14:05' and `end` < '2024-12-28 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-28 19:14:19] Production.INFO: count ==1488 [2024-12-28 19:14:20] Production.ERROR: pbx CDR StartTime 2024-12-28 16:14:05 - End Time 2024-12-28 19:14:05 [2024-12-28 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123597', 'tblTempUsageDetail_20' ) start [2024-12-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123597', 'tblTempUsageDetail_20' ) end [2024-12-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123597', 'tblTempVendorCDR_20' ) start [2024-12-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123597', 'tblTempVendorCDR_20' ) end [2024-12-28 19:14:20] Production.INFO: ProcessCDR(1,14123597,1,1,2) [2024-12-28 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123597', 'tblTempUsageDetail_20' ) start [2024-12-28 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123597', 'tblTempUsageDetail_20' ) end [2024-12-28 19:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:14:23] Production.INFO: ==17190== Releasing lock... [2024-12-28 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:14:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:15:05 [end_date_ymd] => 2024-12-28 19:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:15:05' and `end` < '2024-12-28 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-28 19:15:17] Production.INFO: count ==1487 [2024-12-28 19:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:15:05 - End Time 2024-12-28 19:15:05 [2024-12-28 19:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123602', 'tblTempUsageDetail_20' ) start [2024-12-28 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123602', 'tblTempUsageDetail_20' ) end [2024-12-28 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123602', 'tblTempVendorCDR_20' ) start [2024-12-28 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123602', 'tblTempVendorCDR_20' ) end [2024-12-28 19:15:17] Production.INFO: ProcessCDR(1,14123602,1,1,2) [2024-12-28 19:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123602', 'tblTempUsageDetail_20' ) start [2024-12-28 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123602', 'tblTempUsageDetail_20' ) end [2024-12-28 19:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:15:21] Production.INFO: ==17346== Releasing lock... [2024-12-28 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:15:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-28 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:16:05 [end_date_ymd] => 2024-12-28 19:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:16:05' and `end` < '2024-12-28 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-28 19:16:19] Production.INFO: count ==1447 [2024-12-28 19:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:16:05 - End Time 2024-12-28 19:16:05 [2024-12-28 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123607', 'tblTempUsageDetail_20' ) start [2024-12-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123607', 'tblTempUsageDetail_20' ) end [2024-12-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123607', 'tblTempVendorCDR_20' ) start [2024-12-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123607', 'tblTempVendorCDR_20' ) end [2024-12-28 19:16:19] Production.INFO: ProcessCDR(1,14123607,1,1,2) [2024-12-28 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123607', 'tblTempUsageDetail_20' ) start [2024-12-28 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123607', 'tblTempUsageDetail_20' ) end [2024-12-28 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:16:22] Production.INFO: ==17422== Releasing lock... [2024-12-28 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:16:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:17:05 [end_date_ymd] => 2024-12-28 19:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:17:05' and `end` < '2024-12-28 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-28 19:17:21] Production.INFO: count ==1441 [2024-12-28 19:17:21] Production.ERROR: pbx CDR StartTime 2024-12-28 16:17:05 - End Time 2024-12-28 19:17:05 [2024-12-28 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123612', 'tblTempUsageDetail_20' ) start [2024-12-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123612', 'tblTempUsageDetail_20' ) end [2024-12-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123612', 'tblTempVendorCDR_20' ) start [2024-12-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123612', 'tblTempVendorCDR_20' ) end [2024-12-28 19:17:21] Production.INFO: ProcessCDR(1,14123612,1,1,2) [2024-12-28 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123612', 'tblTempUsageDetail_20' ) start [2024-12-28 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123612', 'tblTempUsageDetail_20' ) end [2024-12-28 19:17:26] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:17:26] Production.INFO: ==17502== Releasing lock... [2024-12-28 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:17:26] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:18:05 [end_date_ymd] => 2024-12-28 19:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:18:05' and `end` < '2024-12-28 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-28 19:18:18] Production.INFO: count ==1442 [2024-12-28 19:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:18:05 - End Time 2024-12-28 19:18:05 [2024-12-28 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123617', 'tblTempUsageDetail_20' ) start [2024-12-28 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123617', 'tblTempUsageDetail_20' ) end [2024-12-28 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123617', 'tblTempVendorCDR_20' ) start [2024-12-28 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123617', 'tblTempVendorCDR_20' ) end [2024-12-28 19:18:18] Production.INFO: ProcessCDR(1,14123617,1,1,2) [2024-12-28 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123617', 'tblTempUsageDetail_20' ) start [2024-12-28 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123617', 'tblTempUsageDetail_20' ) end [2024-12-28 19:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:18:22] Production.INFO: ==17577== Releasing lock... [2024-12-28 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:18:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:19:05 [end_date_ymd] => 2024-12-28 19:19:05 [RateCDR] => 1 ) [2024-12-28 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:19:05' and `end` < '2024-12-28 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:19:17] Production.INFO: count ==1441 [2024-12-28 19:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:19:05 - End Time 2024-12-28 19:19:05 [2024-12-28 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123622', 'tblTempUsageDetail_20' ) start [2024-12-28 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123622', 'tblTempUsageDetail_20' ) end [2024-12-28 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123622', 'tblTempVendorCDR_20' ) start [2024-12-28 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123622', 'tblTempVendorCDR_20' ) end [2024-12-28 19:19:18] Production.INFO: ProcessCDR(1,14123622,1,1,2) [2024-12-28 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123622', 'tblTempUsageDetail_20' ) start [2024-12-28 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123622', 'tblTempUsageDetail_20' ) end [2024-12-28 19:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:19:21] Production.INFO: ==17653== Releasing lock... [2024-12-28 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:19:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:20:05 [end_date_ymd] => 2024-12-28 19:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:20:05' and `end` < '2024-12-28 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-28 19:20:18] Production.INFO: count ==1441 [2024-12-28 19:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:20:05 - End Time 2024-12-28 19:20:05 [2024-12-28 19:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123627', 'tblTempUsageDetail_20' ) start [2024-12-28 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123627', 'tblTempUsageDetail_20' ) end [2024-12-28 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123627', 'tblTempVendorCDR_20' ) start [2024-12-28 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123627', 'tblTempVendorCDR_20' ) end [2024-12-28 19:20:18] Production.INFO: ProcessCDR(1,14123627,1,1,2) [2024-12-28 19:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123627', 'tblTempUsageDetail_20' ) start [2024-12-28 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123627', 'tblTempUsageDetail_20' ) end [2024-12-28 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:20:23] Production.INFO: ==17732== Releasing lock... [2024-12-28 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:20:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:21:05 [end_date_ymd] => 2024-12-28 19:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:21:05' and `end` < '2024-12-28 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-28 19:21:17] Production.INFO: count ==1439 [2024-12-28 19:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:21:05 - End Time 2024-12-28 19:21:05 [2024-12-28 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123633', 'tblTempUsageDetail_20' ) start [2024-12-28 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123633', 'tblTempUsageDetail_20' ) end [2024-12-28 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123633', 'tblTempVendorCDR_20' ) start [2024-12-28 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123633', 'tblTempVendorCDR_20' ) end [2024-12-28 19:21:17] Production.INFO: ProcessCDR(1,14123633,1,1,2) [2024-12-28 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123633', 'tblTempUsageDetail_20' ) start [2024-12-28 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123633', 'tblTempUsageDetail_20' ) end [2024-12-28 19:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:21:21] Production.INFO: ==17811== Releasing lock... [2024-12-28 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:21:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:22:05 [end_date_ymd] => 2024-12-28 19:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:22:05' and `end` < '2024-12-28 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-28 19:22:18] Production.INFO: count ==1439 [2024-12-28 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:22:05 - End Time 2024-12-28 19:22:05 [2024-12-28 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123638', 'tblTempUsageDetail_20' ) start [2024-12-28 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123638', 'tblTempUsageDetail_20' ) end [2024-12-28 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123638', 'tblTempVendorCDR_20' ) start [2024-12-28 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123638', 'tblTempVendorCDR_20' ) end [2024-12-28 19:22:18] Production.INFO: ProcessCDR(1,14123638,1,1,2) [2024-12-28 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123638', 'tblTempUsageDetail_20' ) start [2024-12-28 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123638', 'tblTempUsageDetail_20' ) end [2024-12-28 19:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:22:22] Production.INFO: ==17892== Releasing lock... [2024-12-28 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:22:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:23:04 [end_date_ymd] => 2024-12-28 19:23:04 [RateCDR] => 1 ) [2024-12-28 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-28 16:23:04' and `end` < '2024-12-28 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-28 19:23:17] Production.INFO: count ==1438 [2024-12-28 19:23:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:23:04 - End Time 2024-12-28 19:23:04 [2024-12-28 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123643', 'tblTempUsageDetail_20' ) start [2024-12-28 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123643', 'tblTempUsageDetail_20' ) end [2024-12-28 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123643', 'tblTempVendorCDR_20' ) start [2024-12-28 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123643', 'tblTempVendorCDR_20' ) end [2024-12-28 19:23:17] Production.INFO: ProcessCDR(1,14123643,1,1,2) [2024-12-28 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123643', 'tblTempUsageDetail_20' ) start [2024-12-28 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123643', 'tblTempUsageDetail_20' ) end [2024-12-28 19:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:23:20] Production.INFO: ==17964== Releasing lock... [2024-12-28 19:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:23:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:24:05 [end_date_ymd] => 2024-12-28 19:24:05 [RateCDR] => 1 ) [2024-12-28 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:24:05' and `end` < '2024-12-28 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:24:18] Production.INFO: count ==1429 [2024-12-28 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:24:05 - End Time 2024-12-28 19:24:05 [2024-12-28 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123648', 'tblTempUsageDetail_20' ) start [2024-12-28 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123648', 'tblTempUsageDetail_20' ) end [2024-12-28 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123648', 'tblTempVendorCDR_20' ) start [2024-12-28 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123648', 'tblTempVendorCDR_20' ) end [2024-12-28 19:24:18] Production.INFO: ProcessCDR(1,14123648,1,1,2) [2024-12-28 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123648', 'tblTempUsageDetail_20' ) start [2024-12-28 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123648', 'tblTempUsageDetail_20' ) end [2024-12-28 19:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:24:22] Production.INFO: ==18042== Releasing lock... [2024-12-28 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:24:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:25:04 [end_date_ymd] => 2024-12-28 19:25:04 [RateCDR] => 1 ) [2024-12-28 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:25:04' and `end` < '2024-12-28 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:25:17] Production.INFO: count ==1428 [2024-12-28 19:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:25:04 - End Time 2024-12-28 19:25:04 [2024-12-28 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123653', 'tblTempUsageDetail_20' ) start [2024-12-28 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123653', 'tblTempUsageDetail_20' ) end [2024-12-28 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123653', 'tblTempVendorCDR_20' ) start [2024-12-28 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123653', 'tblTempVendorCDR_20' ) end [2024-12-28 19:25:17] Production.INFO: ProcessCDR(1,14123653,1,1,2) [2024-12-28 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123653', 'tblTempUsageDetail_20' ) start [2024-12-28 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123653', 'tblTempUsageDetail_20' ) end [2024-12-28 19:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:25:20] Production.INFO: ==18155== Releasing lock... [2024-12-28 19:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:25:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:26:05 [end_date_ymd] => 2024-12-28 19:26:05 [RateCDR] => 1 ) [2024-12-28 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:26:05' and `end` < '2024-12-28 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:26:18] Production.INFO: count ==1428 [2024-12-28 19:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:26:05 - End Time 2024-12-28 19:26:05 [2024-12-28 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123658', 'tblTempUsageDetail_20' ) start [2024-12-28 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123658', 'tblTempUsageDetail_20' ) end [2024-12-28 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123658', 'tblTempVendorCDR_20' ) start [2024-12-28 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123658', 'tblTempVendorCDR_20' ) end [2024-12-28 19:26:18] Production.INFO: ProcessCDR(1,14123658,1,1,2) [2024-12-28 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123658', 'tblTempUsageDetail_20' ) start [2024-12-28 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123658', 'tblTempUsageDetail_20' ) end [2024-12-28 19:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:26:21] Production.INFO: ==18228== Releasing lock... [2024-12-28 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:26:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:27:04 [end_date_ymd] => 2024-12-28 19:27:04 [RateCDR] => 1 ) [2024-12-28 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:27:04' and `end` < '2024-12-28 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:27:17] Production.INFO: count ==1429 [2024-12-28 19:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:27:04 - End Time 2024-12-28 19:27:04 [2024-12-28 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123663', 'tblTempUsageDetail_20' ) start [2024-12-28 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123663', 'tblTempUsageDetail_20' ) end [2024-12-28 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123663', 'tblTempVendorCDR_20' ) start [2024-12-28 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123663', 'tblTempVendorCDR_20' ) end [2024-12-28 19:27:17] Production.INFO: ProcessCDR(1,14123663,1,1,2) [2024-12-28 19:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123663', 'tblTempUsageDetail_20' ) start [2024-12-28 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123663', 'tblTempUsageDetail_20' ) end [2024-12-28 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:27:22] Production.INFO: ==18302== Releasing lock... [2024-12-28 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:27:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:28:05 [end_date_ymd] => 2024-12-28 19:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:28:05' and `end` < '2024-12-28 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-28 19:28:19] Production.INFO: count ==1436 [2024-12-28 19:28:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:28:05 - End Time 2024-12-28 19:28:05 [2024-12-28 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123668', 'tblTempUsageDetail_20' ) start [2024-12-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123668', 'tblTempUsageDetail_20' ) end [2024-12-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123668', 'tblTempVendorCDR_20' ) start [2024-12-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123668', 'tblTempVendorCDR_20' ) end [2024-12-28 19:28:19] Production.INFO: ProcessCDR(1,14123668,1,1,2) [2024-12-28 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123668', 'tblTempUsageDetail_20' ) start [2024-12-28 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123668', 'tblTempUsageDetail_20' ) end [2024-12-28 19:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:28:23] Production.INFO: ==18374== Releasing lock... [2024-12-28 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:28:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:29:05 [end_date_ymd] => 2024-12-28 19:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:29:05' and `end` < '2024-12-28 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-28 19:29:19] Production.INFO: count ==1435 [2024-12-28 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:29:05 - End Time 2024-12-28 19:29:05 [2024-12-28 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123673', 'tblTempUsageDetail_20' ) start [2024-12-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123673', 'tblTempUsageDetail_20' ) end [2024-12-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123673', 'tblTempVendorCDR_20' ) start [2024-12-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123673', 'tblTempVendorCDR_20' ) end [2024-12-28 19:29:19] Production.INFO: ProcessCDR(1,14123673,1,1,2) [2024-12-28 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123673', 'tblTempUsageDetail_20' ) start [2024-12-28 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123673', 'tblTempUsageDetail_20' ) end [2024-12-28 19:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:29:22] Production.INFO: ==18445== Releasing lock... [2024-12-28 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:29:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:30:06 [end_date_ymd] => 2024-12-28 19:30:06 [RateCDR] => 1 ) [2024-12-28 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-28 16:30:06' and `end` < '2024-12-28 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-28 19:30:18] Production.INFO: count ==1435 [2024-12-28 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:30:06 - End Time 2024-12-28 19:30:06 [2024-12-28 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123679', 'tblTempUsageDetail_20' ) start [2024-12-28 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123679', 'tblTempUsageDetail_20' ) end [2024-12-28 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123679', 'tblTempVendorCDR_20' ) start [2024-12-28 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123679', 'tblTempVendorCDR_20' ) end [2024-12-28 19:30:19] Production.INFO: ProcessCDR(1,14123679,1,1,2) [2024-12-28 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123679', 'tblTempUsageDetail_20' ) start [2024-12-28 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123679', 'tblTempUsageDetail_20' ) end [2024-12-28 19:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:30:22] Production.INFO: ==18517== Releasing lock... [2024-12-28 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:30:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:31:05 [end_date_ymd] => 2024-12-28 19:31:05 [RateCDR] => 1 ) [2024-12-28 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:31:05' and `end` < '2024-12-28 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:31:18] Production.INFO: count ==1445 [2024-12-28 19:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:31:05 - End Time 2024-12-28 19:31:05 [2024-12-28 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123684', 'tblTempUsageDetail_20' ) start [2024-12-28 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123684', 'tblTempUsageDetail_20' ) end [2024-12-28 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123684', 'tblTempVendorCDR_20' ) start [2024-12-28 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123684', 'tblTempVendorCDR_20' ) end [2024-12-28 19:31:18] Production.INFO: ProcessCDR(1,14123684,1,1,2) [2024-12-28 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123684', 'tblTempUsageDetail_20' ) start [2024-12-28 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123684', 'tblTempUsageDetail_20' ) end [2024-12-28 19:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:31:21] Production.INFO: ==18589== Releasing lock... [2024-12-28 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:31:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:32:05 [end_date_ymd] => 2024-12-28 19:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:32:05' and `end` < '2024-12-28 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-28 19:32:18] Production.INFO: count ==1451 [2024-12-28 19:32:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:32:05 - End Time 2024-12-28 19:32:05 [2024-12-28 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123689', 'tblTempUsageDetail_20' ) start [2024-12-28 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123689', 'tblTempUsageDetail_20' ) end [2024-12-28 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123689', 'tblTempVendorCDR_20' ) start [2024-12-28 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123689', 'tblTempVendorCDR_20' ) end [2024-12-28 19:32:18] Production.INFO: ProcessCDR(1,14123689,1,1,2) [2024-12-28 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123689', 'tblTempUsageDetail_20' ) start [2024-12-28 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123689', 'tblTempUsageDetail_20' ) end [2024-12-28 19:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:32:22] Production.INFO: ==18659== Releasing lock... [2024-12-28 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:32:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-28 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:33:05 [end_date_ymd] => 2024-12-28 19:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:33:05' and `end` < '2024-12-28 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-28 19:33:17] Production.INFO: count ==1435 [2024-12-28 19:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:33:05 - End Time 2024-12-28 19:33:05 [2024-12-28 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123694', 'tblTempUsageDetail_20' ) start [2024-12-28 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123694', 'tblTempUsageDetail_20' ) end [2024-12-28 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123694', 'tblTempVendorCDR_20' ) start [2024-12-28 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123694', 'tblTempVendorCDR_20' ) end [2024-12-28 19:33:17] Production.INFO: ProcessCDR(1,14123694,1,1,2) [2024-12-28 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123694', 'tblTempUsageDetail_20' ) start [2024-12-28 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123694', 'tblTempUsageDetail_20' ) end [2024-12-28 19:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:33:21] Production.INFO: ==18730== Releasing lock... [2024-12-28 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:33:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:34:05 [end_date_ymd] => 2024-12-28 19:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:34:05' and `end` < '2024-12-28 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-28 19:34:17] Production.INFO: count ==1426 [2024-12-28 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:34:05 - End Time 2024-12-28 19:34:05 [2024-12-28 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123699', 'tblTempUsageDetail_20' ) start [2024-12-28 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123699', 'tblTempUsageDetail_20' ) end [2024-12-28 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123699', 'tblTempVendorCDR_20' ) start [2024-12-28 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123699', 'tblTempVendorCDR_20' ) end [2024-12-28 19:34:18] Production.INFO: ProcessCDR(1,14123699,1,1,2) [2024-12-28 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123699', 'tblTempUsageDetail_20' ) start [2024-12-28 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123699', 'tblTempUsageDetail_20' ) end [2024-12-28 19:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:34:21] Production.INFO: ==18806== Releasing lock... [2024-12-28 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:34:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:35:04 [end_date_ymd] => 2024-12-28 19:35:04 [RateCDR] => 1 ) [2024-12-28 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:35:04' and `end` < '2024-12-28 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:35:18] Production.INFO: count ==1425 [2024-12-28 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:35:04 - End Time 2024-12-28 19:35:04 [2024-12-28 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123704', 'tblTempUsageDetail_20' ) start [2024-12-28 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123704', 'tblTempUsageDetail_20' ) end [2024-12-28 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123704', 'tblTempVendorCDR_20' ) start [2024-12-28 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123704', 'tblTempVendorCDR_20' ) end [2024-12-28 19:35:18] Production.INFO: ProcessCDR(1,14123704,1,1,2) [2024-12-28 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123704', 'tblTempUsageDetail_20' ) start [2024-12-28 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123704', 'tblTempUsageDetail_20' ) end [2024-12-28 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:35:21] Production.INFO: ==18880== Releasing lock... [2024-12-28 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:35:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:36:05 [end_date_ymd] => 2024-12-28 19:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:36:05' and `end` < '2024-12-28 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-28 19:36:17] Production.INFO: count ==1425 [2024-12-28 19:36:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:36:05 - End Time 2024-12-28 19:36:05 [2024-12-28 19:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123709', 'tblTempUsageDetail_20' ) start [2024-12-28 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123709', 'tblTempUsageDetail_20' ) end [2024-12-28 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123709', 'tblTempVendorCDR_20' ) start [2024-12-28 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123709', 'tblTempVendorCDR_20' ) end [2024-12-28 19:36:18] Production.INFO: ProcessCDR(1,14123709,1,1,2) [2024-12-28 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123709', 'tblTempUsageDetail_20' ) start [2024-12-28 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123709', 'tblTempUsageDetail_20' ) end [2024-12-28 19:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:36:21] Production.INFO: ==18968== Releasing lock... [2024-12-28 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:36:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:37:04 [end_date_ymd] => 2024-12-28 19:37:04 [RateCDR] => 1 ) [2024-12-28 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:37:04' and `end` < '2024-12-28 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:37:17] Production.INFO: count ==1423 [2024-12-28 19:37:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:37:04 - End Time 2024-12-28 19:37:04 [2024-12-28 19:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123714', 'tblTempUsageDetail_20' ) start [2024-12-28 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123714', 'tblTempUsageDetail_20' ) end [2024-12-28 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123714', 'tblTempVendorCDR_20' ) start [2024-12-28 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123714', 'tblTempVendorCDR_20' ) end [2024-12-28 19:37:17] Production.INFO: ProcessCDR(1,14123714,1,1,2) [2024-12-28 19:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123714', 'tblTempUsageDetail_20' ) start [2024-12-28 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123714', 'tblTempUsageDetail_20' ) end [2024-12-28 19:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:37:20] Production.INFO: ==19044== Releasing lock... [2024-12-28 19:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:37:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:38:05 [end_date_ymd] => 2024-12-28 19:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:38:05' and `end` < '2024-12-28 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-28 19:38:18] Production.INFO: count ==1422 [2024-12-28 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:38:05 - End Time 2024-12-28 19:38:05 [2024-12-28 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123719', 'tblTempUsageDetail_20' ) start [2024-12-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123719', 'tblTempUsageDetail_20' ) end [2024-12-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123719', 'tblTempVendorCDR_20' ) start [2024-12-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123719', 'tblTempVendorCDR_20' ) end [2024-12-28 19:38:19] Production.INFO: ProcessCDR(1,14123719,1,1,2) [2024-12-28 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123719', 'tblTempUsageDetail_20' ) start [2024-12-28 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123719', 'tblTempUsageDetail_20' ) end [2024-12-28 19:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:38:23] Production.INFO: ==19120== Releasing lock... [2024-12-28 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:38:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:39:05 [end_date_ymd] => 2024-12-28 19:39:05 [RateCDR] => 1 ) [2024-12-28 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:39:05' and `end` < '2024-12-28 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:39:19] Production.INFO: count ==1420 [2024-12-28 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:39:05 - End Time 2024-12-28 19:39:05 [2024-12-28 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123724', 'tblTempUsageDetail_20' ) start [2024-12-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123724', 'tblTempUsageDetail_20' ) end [2024-12-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123724', 'tblTempVendorCDR_20' ) start [2024-12-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123724', 'tblTempVendorCDR_20' ) end [2024-12-28 19:39:19] Production.INFO: ProcessCDR(1,14123724,1,1,2) [2024-12-28 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123724', 'tblTempUsageDetail_20' ) start [2024-12-28 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123724', 'tblTempUsageDetail_20' ) end [2024-12-28 19:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:39:22] Production.INFO: ==19200== Releasing lock... [2024-12-28 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:39:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-28 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:40:05 [end_date_ymd] => 2024-12-28 19:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:40:05' and `end` < '2024-12-28 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-28 19:40:18] Production.INFO: count ==1401 [2024-12-28 19:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:40:05 - End Time 2024-12-28 19:40:05 [2024-12-28 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123730', 'tblTempUsageDetail_20' ) start [2024-12-28 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123730', 'tblTempUsageDetail_20' ) end [2024-12-28 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123730', 'tblTempVendorCDR_20' ) start [2024-12-28 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123730', 'tblTempVendorCDR_20' ) end [2024-12-28 19:40:18] Production.INFO: ProcessCDR(1,14123730,1,1,2) [2024-12-28 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123730', 'tblTempUsageDetail_20' ) start [2024-12-28 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123730', 'tblTempUsageDetail_20' ) end [2024-12-28 19:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:40:21] Production.INFO: ==19285== Releasing lock... [2024-12-28 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:40:21] Production.INFO: 38 MB #Memory Used# [2024-12-28 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:41:05 [end_date_ymd] => 2024-12-28 19:41:05 [RateCDR] => 1 ) [2024-12-28 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:41:05' and `end` < '2024-12-28 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:41:18] Production.INFO: count ==1363 [2024-12-28 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:41:05 - End Time 2024-12-28 19:41:05 [2024-12-28 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123735', 'tblTempUsageDetail_20' ) start [2024-12-28 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123735', 'tblTempUsageDetail_20' ) end [2024-12-28 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123735', 'tblTempVendorCDR_20' ) start [2024-12-28 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123735', 'tblTempVendorCDR_20' ) end [2024-12-28 19:41:18] Production.INFO: ProcessCDR(1,14123735,1,1,2) [2024-12-28 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123735', 'tblTempUsageDetail_20' ) start [2024-12-28 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123735', 'tblTempUsageDetail_20' ) end [2024-12-28 19:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:41:23] Production.INFO: ==19409== Releasing lock... [2024-12-28 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:41:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:42:04 [end_date_ymd] => 2024-12-28 19:42:04 [RateCDR] => 1 ) [2024-12-28 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:42:04' and `end` < '2024-12-28 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:42:16] Production.INFO: count ==1358 [2024-12-28 19:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:42:04 - End Time 2024-12-28 19:42:04 [2024-12-28 19:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123736', 'tblTempUsageDetail_20' ) start [2024-12-28 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123736', 'tblTempUsageDetail_20' ) end [2024-12-28 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123736', 'tblTempVendorCDR_20' ) start [2024-12-28 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123736', 'tblTempVendorCDR_20' ) end [2024-12-28 19:42:17] Production.INFO: ProcessCDR(1,14123736,1,1,2) [2024-12-28 19:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123736', 'tblTempUsageDetail_20' ) start [2024-12-28 19:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123736', 'tblTempUsageDetail_20' ) end [2024-12-28 19:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:42:20] Production.INFO: ==19497== Releasing lock... [2024-12-28 19:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:42:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:43:05 [end_date_ymd] => 2024-12-28 19:43:05 [RateCDR] => 1 ) [2024-12-28 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:43:05' and `end` < '2024-12-28 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:43:17] Production.INFO: count ==1357 [2024-12-28 19:43:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:43:05 - End Time 2024-12-28 19:43:05 [2024-12-28 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123745', 'tblTempUsageDetail_20' ) start [2024-12-28 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123745', 'tblTempUsageDetail_20' ) end [2024-12-28 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123745', 'tblTempVendorCDR_20' ) start [2024-12-28 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123745', 'tblTempVendorCDR_20' ) end [2024-12-28 19:43:17] Production.INFO: ProcessCDR(1,14123745,1,1,2) [2024-12-28 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123745', 'tblTempUsageDetail_20' ) start [2024-12-28 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123745', 'tblTempUsageDetail_20' ) end [2024-12-28 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:43:22] Production.INFO: ==19582== Releasing lock... [2024-12-28 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:43:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:44:04 [end_date_ymd] => 2024-12-28 19:44:04 [RateCDR] => 1 ) [2024-12-28 19:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:44:04' and `end` < '2024-12-28 19:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:44:17] Production.INFO: count ==1351 [2024-12-28 19:44:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:44:04 - End Time 2024-12-28 19:44:04 [2024-12-28 19:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123750', 'tblTempUsageDetail_20' ) start [2024-12-28 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123750', 'tblTempUsageDetail_20' ) end [2024-12-28 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123750', 'tblTempVendorCDR_20' ) start [2024-12-28 19:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123750', 'tblTempVendorCDR_20' ) end [2024-12-28 19:44:17] Production.INFO: ProcessCDR(1,14123750,1,1,2) [2024-12-28 19:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123750', 'tblTempUsageDetail_20' ) start [2024-12-28 19:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123750', 'tblTempUsageDetail_20' ) end [2024-12-28 19:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:44:20] Production.INFO: ==19679== Releasing lock... [2024-12-28 19:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:44:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:45:05 [end_date_ymd] => 2024-12-28 19:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:45:05' and `end` < '2024-12-28 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-28 19:45:17] Production.INFO: count ==1349 [2024-12-28 19:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:45:05 - End Time 2024-12-28 19:45:05 [2024-12-28 19:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123755', 'tblTempUsageDetail_20' ) start [2024-12-28 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123755', 'tblTempUsageDetail_20' ) end [2024-12-28 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123755', 'tblTempVendorCDR_20' ) start [2024-12-28 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123755', 'tblTempVendorCDR_20' ) end [2024-12-28 19:45:18] Production.INFO: ProcessCDR(1,14123755,1,1,2) [2024-12-28 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123755', 'tblTempUsageDetail_20' ) start [2024-12-28 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123755', 'tblTempUsageDetail_20' ) end [2024-12-28 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:45:21] Production.INFO: ==19763== Releasing lock... [2024-12-28 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:45:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:46:04 [end_date_ymd] => 2024-12-28 19:46:04 [RateCDR] => 1 ) [2024-12-28 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-28 16:46:04' and `end` < '2024-12-28 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-28 19:46:18] Production.INFO: count ==1349 [2024-12-28 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:46:04 - End Time 2024-12-28 19:46:04 [2024-12-28 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123760', 'tblTempUsageDetail_20' ) start [2024-12-28 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123760', 'tblTempUsageDetail_20' ) end [2024-12-28 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123760', 'tblTempVendorCDR_20' ) start [2024-12-28 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123760', 'tblTempVendorCDR_20' ) end [2024-12-28 19:46:18] Production.INFO: ProcessCDR(1,14123760,1,1,2) [2024-12-28 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123760', 'tblTempUsageDetail_20' ) start [2024-12-28 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123760', 'tblTempUsageDetail_20' ) end [2024-12-28 19:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:46:21] Production.INFO: ==19856== Releasing lock... [2024-12-28 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:46:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:47:04 [end_date_ymd] => 2024-12-28 19:47:04 [RateCDR] => 1 ) [2024-12-28 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:47:04' and `end` < '2024-12-28 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:47:18] Production.INFO: count ==1349 [2024-12-28 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:47:04 - End Time 2024-12-28 19:47:04 [2024-12-28 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123765', 'tblTempUsageDetail_20' ) start [2024-12-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123765', 'tblTempUsageDetail_20' ) end [2024-12-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123765', 'tblTempVendorCDR_20' ) start [2024-12-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123765', 'tblTempVendorCDR_20' ) end [2024-12-28 19:47:18] Production.INFO: ProcessCDR(1,14123765,1,1,2) [2024-12-28 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123765', 'tblTempUsageDetail_20' ) start [2024-12-28 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123765', 'tblTempUsageDetail_20' ) end [2024-12-28 19:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:47:21] Production.INFO: ==19944== Releasing lock... [2024-12-28 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:47:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:48:05 [end_date_ymd] => 2024-12-28 19:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:48:05' and `end` < '2024-12-28 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:48:18] Production.INFO: count ==1348 [2024-12-28 19:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:48:05 - End Time 2024-12-28 19:48:05 [2024-12-28 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123770', 'tblTempUsageDetail_20' ) start [2024-12-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123770', 'tblTempUsageDetail_20' ) end [2024-12-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123770', 'tblTempVendorCDR_20' ) start [2024-12-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123770', 'tblTempVendorCDR_20' ) end [2024-12-28 19:48:19] Production.INFO: ProcessCDR(1,14123770,1,1,2) [2024-12-28 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123770', 'tblTempUsageDetail_20' ) start [2024-12-28 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123770', 'tblTempUsageDetail_20' ) end [2024-12-28 19:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:48:22] Production.INFO: ==20032== Releasing lock... [2024-12-28 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:48:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:49:04 [end_date_ymd] => 2024-12-28 19:49:04 [RateCDR] => 1 ) [2024-12-28 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:49:04' and `end` < '2024-12-28 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:49:17] Production.INFO: count ==1345 [2024-12-28 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:49:04 - End Time 2024-12-28 19:49:04 [2024-12-28 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123775', 'tblTempUsageDetail_20' ) start [2024-12-28 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123775', 'tblTempUsageDetail_20' ) end [2024-12-28 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123775', 'tblTempVendorCDR_20' ) start [2024-12-28 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123775', 'tblTempVendorCDR_20' ) end [2024-12-28 19:49:17] Production.INFO: ProcessCDR(1,14123775,1,1,2) [2024-12-28 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123775', 'tblTempUsageDetail_20' ) start [2024-12-28 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123775', 'tblTempUsageDetail_20' ) end [2024-12-28 19:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:49:20] Production.INFO: ==20119== Releasing lock... [2024-12-28 19:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:49:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:50:06 [end_date_ymd] => 2024-12-28 19:50:06 [RateCDR] => 1 ) [2024-12-28 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:50:06' and `end` < '2024-12-28 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:50:19] Production.INFO: count ==1342 [2024-12-28 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:50:06 - End Time 2024-12-28 19:50:06 [2024-12-28 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123781', 'tblTempUsageDetail_20' ) start [2024-12-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123781', 'tblTempUsageDetail_20' ) end [2024-12-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123781', 'tblTempVendorCDR_20' ) start [2024-12-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123781', 'tblTempVendorCDR_20' ) end [2024-12-28 19:50:19] Production.INFO: ProcessCDR(1,14123781,1,1,2) [2024-12-28 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123781', 'tblTempUsageDetail_20' ) start [2024-12-28 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123781', 'tblTempUsageDetail_20' ) end [2024-12-28 19:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:50:23] Production.INFO: ==20215== Releasing lock... [2024-12-28 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:50:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-28 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:51:04 [end_date_ymd] => 2024-12-28 19:51:04 [RateCDR] => 1 ) [2024-12-28 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:51:04' and `end` < '2024-12-28 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:51:17] Production.INFO: count ==1321 [2024-12-28 19:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:51:04 - End Time 2024-12-28 19:51:04 [2024-12-28 19:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123786', 'tblTempUsageDetail_20' ) start [2024-12-28 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123786', 'tblTempUsageDetail_20' ) end [2024-12-28 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123786', 'tblTempVendorCDR_20' ) start [2024-12-28 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123786', 'tblTempVendorCDR_20' ) end [2024-12-28 19:51:17] Production.INFO: ProcessCDR(1,14123786,1,1,2) [2024-12-28 19:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123786', 'tblTempUsageDetail_20' ) start [2024-12-28 19:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123786', 'tblTempUsageDetail_20' ) end [2024-12-28 19:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:51:20] Production.INFO: ==20294== Releasing lock... [2024-12-28 19:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:51:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:52:05 [end_date_ymd] => 2024-12-28 19:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:52:05' and `end` < '2024-12-28 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-28 19:52:18] Production.INFO: count ==1314 [2024-12-28 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:52:05 - End Time 2024-12-28 19:52:05 [2024-12-28 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123791', 'tblTempUsageDetail_20' ) start [2024-12-28 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123791', 'tblTempUsageDetail_20' ) end [2024-12-28 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123791', 'tblTempVendorCDR_20' ) start [2024-12-28 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123791', 'tblTempVendorCDR_20' ) end [2024-12-28 19:52:18] Production.INFO: ProcessCDR(1,14123791,1,1,2) [2024-12-28 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123791', 'tblTempUsageDetail_20' ) start [2024-12-28 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123791', 'tblTempUsageDetail_20' ) end [2024-12-28 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:52:21] Production.INFO: ==20378== Releasing lock... [2024-12-28 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:52:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:53:05 [end_date_ymd] => 2024-12-28 19:53:05 [RateCDR] => 1 ) [2024-12-28 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:53:05' and `end` < '2024-12-28 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:53:18] Production.INFO: count ==1315 [2024-12-28 19:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:53:05 - End Time 2024-12-28 19:53:05 [2024-12-28 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123796', 'tblTempUsageDetail_20' ) start [2024-12-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123796', 'tblTempUsageDetail_20' ) end [2024-12-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123796', 'tblTempVendorCDR_20' ) start [2024-12-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123796', 'tblTempVendorCDR_20' ) end [2024-12-28 19:53:18] Production.INFO: ProcessCDR(1,14123796,1,1,2) [2024-12-28 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123796', 'tblTempUsageDetail_20' ) start [2024-12-28 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123796', 'tblTempUsageDetail_20' ) end [2024-12-28 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:53:21] Production.INFO: ==20460== Releasing lock... [2024-12-28 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:53:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:54:05 [end_date_ymd] => 2024-12-28 19:54:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:54:05' and `end` < '2024-12-28 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-28 19:54:18] Production.INFO: count ==1312 [2024-12-28 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 16:54:05 - End Time 2024-12-28 19:54:05 [2024-12-28 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123801', 'tblTempUsageDetail_20' ) start [2024-12-28 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123801', 'tblTempUsageDetail_20' ) end [2024-12-28 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123801', 'tblTempVendorCDR_20' ) start [2024-12-28 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123801', 'tblTempVendorCDR_20' ) end [2024-12-28 19:54:18] Production.INFO: ProcessCDR(1,14123801,1,1,2) [2024-12-28 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123801', 'tblTempUsageDetail_20' ) start [2024-12-28 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123801', 'tblTempUsageDetail_20' ) end [2024-12-28 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:54:21] Production.INFO: ==20550== Releasing lock... [2024-12-28 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:54:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:55:05 [end_date_ymd] => 2024-12-28 19:55:05 [RateCDR] => 1 ) [2024-12-28 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:55:05' and `end` < '2024-12-28 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:55:17] Production.INFO: count ==1309 [2024-12-28 19:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:55:05 - End Time 2024-12-28 19:55:05 [2024-12-28 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123806', 'tblTempUsageDetail_20' ) start [2024-12-28 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123806', 'tblTempUsageDetail_20' ) end [2024-12-28 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123806', 'tblTempVendorCDR_20' ) start [2024-12-28 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123806', 'tblTempVendorCDR_20' ) end [2024-12-28 19:55:17] Production.INFO: ProcessCDR(1,14123806,1,1,2) [2024-12-28 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123806', 'tblTempUsageDetail_20' ) start [2024-12-28 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123806', 'tblTempUsageDetail_20' ) end [2024-12-28 19:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:55:20] Production.INFO: ==20628== Releasing lock... [2024-12-28 19:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:55:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-28 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:56:05 [end_date_ymd] => 2024-12-28 19:56:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:56:05' and `end` < '2024-12-28 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-28 19:56:19] Production.INFO: count ==1306 [2024-12-28 19:56:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:56:05 - End Time 2024-12-28 19:56:05 [2024-12-28 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123811', 'tblTempUsageDetail_20' ) start [2024-12-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123811', 'tblTempUsageDetail_20' ) end [2024-12-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123811', 'tblTempVendorCDR_20' ) start [2024-12-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123811', 'tblTempVendorCDR_20' ) end [2024-12-28 19:56:19] Production.INFO: ProcessCDR(1,14123811,1,1,2) [2024-12-28 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123811', 'tblTempUsageDetail_20' ) start [2024-12-28 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123811', 'tblTempUsageDetail_20' ) end [2024-12-28 19:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:56:22] Production.INFO: ==20753== Releasing lock... [2024-12-28 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:56:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:57:04 [end_date_ymd] => 2024-12-28 19:57:04 [RateCDR] => 1 ) [2024-12-28 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-28 16:57:04' and `end` < '2024-12-28 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-28 19:57:17] Production.INFO: count ==1301 [2024-12-28 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:57:04 - End Time 2024-12-28 19:57:04 [2024-12-28 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123816', 'tblTempUsageDetail_20' ) start [2024-12-28 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123816', 'tblTempUsageDetail_20' ) end [2024-12-28 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123816', 'tblTempVendorCDR_20' ) start [2024-12-28 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123816', 'tblTempVendorCDR_20' ) end [2024-12-28 19:57:17] Production.INFO: ProcessCDR(1,14123816,1,1,2) [2024-12-28 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123816', 'tblTempUsageDetail_20' ) start [2024-12-28 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123816', 'tblTempUsageDetail_20' ) end [2024-12-28 19:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:57:22] Production.INFO: ==20833== Releasing lock... [2024-12-28 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:57:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:58:05 [end_date_ymd] => 2024-12-28 19:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 16:58:05' and `end` < '2024-12-28 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-28 19:58:19] Production.INFO: count ==1294 [2024-12-28 19:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 16:58:05 - End Time 2024-12-28 19:58:05 [2024-12-28 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123821', 'tblTempUsageDetail_20' ) start [2024-12-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123821', 'tblTempUsageDetail_20' ) end [2024-12-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123821', 'tblTempVendorCDR_20' ) start [2024-12-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123821', 'tblTempVendorCDR_20' ) end [2024-12-28 19:58:19] Production.INFO: ProcessCDR(1,14123821,1,1,2) [2024-12-28 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123821', 'tblTempUsageDetail_20' ) start [2024-12-28 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123821', 'tblTempUsageDetail_20' ) end [2024-12-28 19:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:58:22] Production.INFO: ==20924== Releasing lock... [2024-12-28 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:58:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 16:59:04 [end_date_ymd] => 2024-12-28 19:59:04 [RateCDR] => 1 ) [2024-12-28 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 16:59:04' and `end` < '2024-12-28 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 19:59:17] Production.INFO: count ==1292 [2024-12-28 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-28 16:59:04 - End Time 2024-12-28 19:59:04 [2024-12-28 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123826', 'tblTempUsageDetail_20' ) start [2024-12-28 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123826', 'tblTempUsageDetail_20' ) end [2024-12-28 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123826', 'tblTempVendorCDR_20' ) start [2024-12-28 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123826', 'tblTempVendorCDR_20' ) end [2024-12-28 19:59:17] Production.INFO: ProcessCDR(1,14123826,1,1,2) [2024-12-28 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 19:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123826', 'tblTempUsageDetail_20' ) start [2024-12-28 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123826', 'tblTempUsageDetail_20' ) end [2024-12-28 19:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 19:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 19:59:20] Production.INFO: ==21004== Releasing lock... [2024-12-28 19:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 19:59:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:00:05 [end_date_ymd] => 2024-12-28 20:00:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:00:05' and `end` < '2024-12-28 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-28 20:00:18] Production.INFO: count ==1290 [2024-12-28 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:00:05 - End Time 2024-12-28 20:00:05 [2024-12-28 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123832', 'tblTempUsageDetail_20' ) start [2024-12-28 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123832', 'tblTempUsageDetail_20' ) end [2024-12-28 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123832', 'tblTempVendorCDR_20' ) start [2024-12-28 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123832', 'tblTempVendorCDR_20' ) end [2024-12-28 20:00:18] Production.INFO: ProcessCDR(1,14123832,1,1,2) [2024-12-28 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123832', 'tblTempUsageDetail_20' ) start [2024-12-28 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123832', 'tblTempUsageDetail_20' ) end [2024-12-28 20:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:00:23] Production.INFO: ==21092== Releasing lock... [2024-12-28 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:00:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-28 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:01:05 [end_date_ymd] => 2024-12-28 20:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:01:05' and `end` < '2024-12-28 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-28 20:01:18] Production.INFO: count ==1256 [2024-12-28 20:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:01:05 - End Time 2024-12-28 20:01:05 [2024-12-28 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123837', 'tblTempUsageDetail_20' ) start [2024-12-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123837', 'tblTempUsageDetail_20' ) end [2024-12-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123837', 'tblTempVendorCDR_20' ) start [2024-12-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123837', 'tblTempVendorCDR_20' ) end [2024-12-28 20:01:18] Production.INFO: ProcessCDR(1,14123837,1,1,2) [2024-12-28 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123837', 'tblTempUsageDetail_20' ) start [2024-12-28 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123837', 'tblTempUsageDetail_20' ) end [2024-12-28 20:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:01:22] Production.INFO: ==21226== Releasing lock... [2024-12-28 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:01:22] Production.INFO: 37 MB #Memory Used# [2024-12-28 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:02:04 [end_date_ymd] => 2024-12-28 20:02:04 [RateCDR] => 1 ) [2024-12-28 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-28 17:02:04' and `end` < '2024-12-28 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-28 20:02:17] Production.INFO: count ==1225 [2024-12-28 20:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:02:04 - End Time 2024-12-28 20:02:04 [2024-12-28 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123841', 'tblTempUsageDetail_20' ) start [2024-12-28 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123841', 'tblTempUsageDetail_20' ) end [2024-12-28 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123841', 'tblTempVendorCDR_20' ) start [2024-12-28 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123841', 'tblTempVendorCDR_20' ) end [2024-12-28 20:02:17] Production.INFO: ProcessCDR(1,14123841,1,1,2) [2024-12-28 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123841', 'tblTempUsageDetail_20' ) start [2024-12-28 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123841', 'tblTempUsageDetail_20' ) end [2024-12-28 20:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:02:20] Production.INFO: ==21311== Releasing lock... [2024-12-28 20:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:02:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:03:05 [end_date_ymd] => 2024-12-28 20:03:05 [RateCDR] => 1 ) [2024-12-28 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:03:05' and `end` < '2024-12-28 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:03:18] Production.INFO: count ==1223 [2024-12-28 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:03:05 - End Time 2024-12-28 20:03:05 [2024-12-28 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123847', 'tblTempUsageDetail_20' ) start [2024-12-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123847', 'tblTempUsageDetail_20' ) end [2024-12-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123847', 'tblTempVendorCDR_20' ) start [2024-12-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123847', 'tblTempVendorCDR_20' ) end [2024-12-28 20:03:18] Production.INFO: ProcessCDR(1,14123847,1,1,2) [2024-12-28 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123847', 'tblTempUsageDetail_20' ) start [2024-12-28 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123847', 'tblTempUsageDetail_20' ) end [2024-12-28 20:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:03:22] Production.INFO: ==21393== Releasing lock... [2024-12-28 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:03:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:04:05 [end_date_ymd] => 2024-12-28 20:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:04:05' and `end` < '2024-12-28 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-28 20:04:17] Production.INFO: count ==1221 [2024-12-28 20:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:04:05 - End Time 2024-12-28 20:04:05 [2024-12-28 20:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123852', 'tblTempUsageDetail_20' ) start [2024-12-28 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123852', 'tblTempUsageDetail_20' ) end [2024-12-28 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123852', 'tblTempVendorCDR_20' ) start [2024-12-28 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123852', 'tblTempVendorCDR_20' ) end [2024-12-28 20:04:17] Production.INFO: ProcessCDR(1,14123852,1,1,2) [2024-12-28 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123852', 'tblTempUsageDetail_20' ) start [2024-12-28 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123852', 'tblTempUsageDetail_20' ) end [2024-12-28 20:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:04:20] Production.INFO: ==21478== Releasing lock... [2024-12-28 20:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:04:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:05:05 [end_date_ymd] => 2024-12-28 20:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:05:05' and `end` < '2024-12-28 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-28 20:05:17] Production.INFO: count ==1221 [2024-12-28 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:05:05 - End Time 2024-12-28 20:05:05 [2024-12-28 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123857', 'tblTempUsageDetail_20' ) start [2024-12-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123857', 'tblTempUsageDetail_20' ) end [2024-12-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123857', 'tblTempVendorCDR_20' ) start [2024-12-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123857', 'tblTempVendorCDR_20' ) end [2024-12-28 20:05:18] Production.INFO: ProcessCDR(1,14123857,1,1,2) [2024-12-28 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123857', 'tblTempUsageDetail_20' ) start [2024-12-28 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123857', 'tblTempUsageDetail_20' ) end [2024-12-28 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:05:21] Production.INFO: ==21567== Releasing lock... [2024-12-28 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:05:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:06:04 [end_date_ymd] => 2024-12-28 20:06:04 [RateCDR] => 1 ) [2024-12-28 20: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-28 17:06:04' and `end` < '2024-12-28 20: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-28 20:06:17] Production.INFO: count ==1217 [2024-12-28 20:06:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:06:04 - End Time 2024-12-28 20:06:04 [2024-12-28 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123862', 'tblTempUsageDetail_20' ) start [2024-12-28 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123862', 'tblTempUsageDetail_20' ) end [2024-12-28 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123862', 'tblTempVendorCDR_20' ) start [2024-12-28 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123862', 'tblTempVendorCDR_20' ) end [2024-12-28 20:06:17] Production.INFO: ProcessCDR(1,14123862,1,1,2) [2024-12-28 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123862', 'tblTempUsageDetail_20' ) start [2024-12-28 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123862', 'tblTempUsageDetail_20' ) end [2024-12-28 20:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:06:20] Production.INFO: ==21652== Releasing lock... [2024-12-28 20:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:06:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:07:04 [end_date_ymd] => 2024-12-28 20:07:04 [RateCDR] => 1 ) [2024-12-28 20: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-28 17:07:04' and `end` < '2024-12-28 20: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-28 20:07:17] Production.INFO: count ==1217 [2024-12-28 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:07:04 - End Time 2024-12-28 20:07:04 [2024-12-28 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123867', 'tblTempUsageDetail_20' ) start [2024-12-28 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123867', 'tblTempUsageDetail_20' ) end [2024-12-28 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123867', 'tblTempVendorCDR_20' ) start [2024-12-28 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123867', 'tblTempVendorCDR_20' ) end [2024-12-28 20:07:17] Production.INFO: ProcessCDR(1,14123867,1,1,2) [2024-12-28 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123867', 'tblTempUsageDetail_20' ) start [2024-12-28 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123867', 'tblTempUsageDetail_20' ) end [2024-12-28 20:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:07:20] Production.INFO: ==21750== Releasing lock... [2024-12-28 20:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:07:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:08:05 [end_date_ymd] => 2024-12-28 20:08:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:08:05' and `end` < '2024-12-28 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-28 20:08:17] Production.INFO: count ==1215 [2024-12-28 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:08:05 - End Time 2024-12-28 20:08:05 [2024-12-28 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123872', 'tblTempUsageDetail_20' ) start [2024-12-28 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123872', 'tblTempUsageDetail_20' ) end [2024-12-28 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123872', 'tblTempVendorCDR_20' ) start [2024-12-28 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123872', 'tblTempVendorCDR_20' ) end [2024-12-28 20:08:18] Production.INFO: ProcessCDR(1,14123872,1,1,2) [2024-12-28 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123872', 'tblTempUsageDetail_20' ) start [2024-12-28 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123872', 'tblTempUsageDetail_20' ) end [2024-12-28 20:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:08:21] Production.INFO: ==21847== Releasing lock... [2024-12-28 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:08:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:09:04 [end_date_ymd] => 2024-12-28 20:09:04 [RateCDR] => 1 ) [2024-12-28 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-28 17:09:04' and `end` < '2024-12-28 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-28 20:09:17] Production.INFO: count ==1215 [2024-12-28 20:09:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:09:04 - End Time 2024-12-28 20:09:04 [2024-12-28 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123877', 'tblTempUsageDetail_20' ) start [2024-12-28 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123877', 'tblTempUsageDetail_20' ) end [2024-12-28 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123877', 'tblTempVendorCDR_20' ) start [2024-12-28 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123877', 'tblTempVendorCDR_20' ) end [2024-12-28 20:09:17] Production.INFO: ProcessCDR(1,14123877,1,1,2) [2024-12-28 20:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123877', 'tblTempUsageDetail_20' ) start [2024-12-28 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123877', 'tblTempUsageDetail_20' ) end [2024-12-28 20:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:09:20] Production.INFO: ==21942== Releasing lock... [2024-12-28 20:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:09:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:10:05 [end_date_ymd] => 2024-12-28 20:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:10:05' and `end` < '2024-12-28 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-28 20:10:18] Production.INFO: count ==1210 [2024-12-28 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:10:05 - End Time 2024-12-28 20:10:05 [2024-12-28 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123882', 'tblTempUsageDetail_20' ) start [2024-12-28 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123882', 'tblTempUsageDetail_20' ) end [2024-12-28 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123882', 'tblTempVendorCDR_20' ) start [2024-12-28 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123882', 'tblTempVendorCDR_20' ) end [2024-12-28 20:10:18] Production.INFO: ProcessCDR(1,14123882,1,1,2) [2024-12-28 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123882', 'tblTempUsageDetail_20' ) start [2024-12-28 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123882', 'tblTempUsageDetail_20' ) end [2024-12-28 20:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:10:21] Production.INFO: ==22024== Releasing lock... [2024-12-28 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:10:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-28 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:11:04 [end_date_ymd] => 2024-12-28 20:11:04 [RateCDR] => 1 ) [2024-12-28 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-28 17:11:04' and `end` < '2024-12-28 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-28 20:11:18] Production.INFO: count ==1181 [2024-12-28 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:11:04 - End Time 2024-12-28 20:11:04 [2024-12-28 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123888', 'tblTempUsageDetail_20' ) start [2024-12-28 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123888', 'tblTempUsageDetail_20' ) end [2024-12-28 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123888', 'tblTempVendorCDR_20' ) start [2024-12-28 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123888', 'tblTempVendorCDR_20' ) end [2024-12-28 20:11:18] Production.INFO: ProcessCDR(1,14123888,1,1,2) [2024-12-28 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123888', 'tblTempUsageDetail_20' ) start [2024-12-28 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123888', 'tblTempUsageDetail_20' ) end [2024-12-28 20:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:11:21] Production.INFO: ==22115== Releasing lock... [2024-12-28 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:11:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-28 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:12:05 [end_date_ymd] => 2024-12-28 20:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:12:05' and `end` < '2024-12-28 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-28 20:12:17] Production.INFO: count ==1176 [2024-12-28 20:12:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:12:05 - End Time 2024-12-28 20:12:05 [2024-12-28 20:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123893', 'tblTempUsageDetail_20' ) start [2024-12-28 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123893', 'tblTempUsageDetail_20' ) end [2024-12-28 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123893', 'tblTempVendorCDR_20' ) start [2024-12-28 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123893', 'tblTempVendorCDR_20' ) end [2024-12-28 20:12:17] Production.INFO: ProcessCDR(1,14123893,1,1,2) [2024-12-28 20:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123893', 'tblTempUsageDetail_20' ) start [2024-12-28 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123893', 'tblTempUsageDetail_20' ) end [2024-12-28 20:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:12:21] Production.INFO: ==22284== Releasing lock... [2024-12-28 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:12:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-28 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:13:05 [end_date_ymd] => 2024-12-28 20:13:05 [RateCDR] => 1 ) [2024-12-28 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:13:05' and `end` < '2024-12-28 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:13:19] Production.INFO: count ==1175 [2024-12-28 20:13:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:13:05 - End Time 2024-12-28 20:13:05 [2024-12-28 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123898', 'tblTempUsageDetail_20' ) start [2024-12-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123898', 'tblTempUsageDetail_20' ) end [2024-12-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123898', 'tblTempVendorCDR_20' ) start [2024-12-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123898', 'tblTempVendorCDR_20' ) end [2024-12-28 20:13:19] Production.INFO: ProcessCDR(1,14123898,1,1,2) [2024-12-28 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123898', 'tblTempUsageDetail_20' ) start [2024-12-28 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123898', 'tblTempUsageDetail_20' ) end [2024-12-28 20:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:13:22] Production.INFO: ==22426== Releasing lock... [2024-12-28 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:13:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-28 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:14:05 [end_date_ymd] => 2024-12-28 20:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:14:05' and `end` < '2024-12-28 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-28 20:14:17] Production.INFO: count ==1173 [2024-12-28 20:14:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:14:05 - End Time 2024-12-28 20:14:05 [2024-12-28 20:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123903', 'tblTempUsageDetail_20' ) start [2024-12-28 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123903', 'tblTempUsageDetail_20' ) end [2024-12-28 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123903', 'tblTempVendorCDR_20' ) start [2024-12-28 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123903', 'tblTempVendorCDR_20' ) end [2024-12-28 20:14:17] Production.INFO: ProcessCDR(1,14123903,1,1,2) [2024-12-28 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123903', 'tblTempUsageDetail_20' ) start [2024-12-28 20:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123903', 'tblTempUsageDetail_20' ) end [2024-12-28 20:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:14:20] Production.INFO: ==22524== Releasing lock... [2024-12-28 20:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:14:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:15:05 [end_date_ymd] => 2024-12-28 20:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:15:05' and `end` < '2024-12-28 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-28 20:15:17] Production.INFO: count ==1172 [2024-12-28 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:15:05 - End Time 2024-12-28 20:15:05 [2024-12-28 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123908', 'tblTempUsageDetail_20' ) start [2024-12-28 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123908', 'tblTempUsageDetail_20' ) end [2024-12-28 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123908', 'tblTempVendorCDR_20' ) start [2024-12-28 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123908', 'tblTempVendorCDR_20' ) end [2024-12-28 20:15:17] Production.INFO: ProcessCDR(1,14123908,1,1,2) [2024-12-28 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123908', 'tblTempUsageDetail_20' ) start [2024-12-28 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123908', 'tblTempUsageDetail_20' ) end [2024-12-28 20:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:15:20] Production.INFO: ==22660== Releasing lock... [2024-12-28 20:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:15:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:16:04 [end_date_ymd] => 2024-12-28 20:16:04 [RateCDR] => 1 ) [2024-12-28 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:16:04' and `end` < '2024-12-28 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-28 20:16:17] Production.INFO: count ==1173 [2024-12-28 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:16:04 - End Time 2024-12-28 20:16:04 [2024-12-28 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123913', 'tblTempUsageDetail_20' ) start [2024-12-28 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123913', 'tblTempUsageDetail_20' ) end [2024-12-28 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123913', 'tblTempVendorCDR_20' ) start [2024-12-28 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123913', 'tblTempVendorCDR_20' ) end [2024-12-28 20:16:17] Production.INFO: ProcessCDR(1,14123913,1,1,2) [2024-12-28 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123913', 'tblTempUsageDetail_20' ) start [2024-12-28 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123913', 'tblTempUsageDetail_20' ) end [2024-12-28 20:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:16:21] Production.INFO: ==22769== Releasing lock... [2024-12-28 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:16:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:17:05 [end_date_ymd] => 2024-12-28 20:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:17:05' and `end` < '2024-12-28 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-28 20:17:19] Production.INFO: count ==1167 [2024-12-28 20:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:17:05 - End Time 2024-12-28 20:17:05 [2024-12-28 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123918', 'tblTempUsageDetail_20' ) start [2024-12-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123918', 'tblTempUsageDetail_20' ) end [2024-12-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123918', 'tblTempVendorCDR_20' ) start [2024-12-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123918', 'tblTempVendorCDR_20' ) end [2024-12-28 20:17:19] Production.INFO: ProcessCDR(1,14123918,1,1,2) [2024-12-28 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123918', 'tblTempUsageDetail_20' ) start [2024-12-28 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123918', 'tblTempUsageDetail_20' ) end [2024-12-28 20:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:17:22] Production.INFO: ==22893== Releasing lock... [2024-12-28 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:17:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:18:05 [end_date_ymd] => 2024-12-28 20:18:05 [RateCDR] => 1 ) [2024-12-28 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:18:05' and `end` < '2024-12-28 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:18:17] Production.INFO: count ==1161 [2024-12-28 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:18:05 - End Time 2024-12-28 20:18:05 [2024-12-28 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123923', 'tblTempUsageDetail_20' ) start [2024-12-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123923', 'tblTempUsageDetail_20' ) end [2024-12-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123923', 'tblTempVendorCDR_20' ) start [2024-12-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123923', 'tblTempVendorCDR_20' ) end [2024-12-28 20:18:18] Production.INFO: ProcessCDR(1,14123923,1,1,2) [2024-12-28 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123923', 'tblTempUsageDetail_20' ) start [2024-12-28 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123923', 'tblTempUsageDetail_20' ) end [2024-12-28 20:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:18:21] Production.INFO: ==23010== Releasing lock... [2024-12-28 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:18:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:19:05 [end_date_ymd] => 2024-12-28 20:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:19:05' and `end` < '2024-12-28 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-28 20:19:17] Production.INFO: count ==1161 [2024-12-28 20:19:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:19:05 - End Time 2024-12-28 20:19:05 [2024-12-28 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123928', 'tblTempUsageDetail_20' ) start [2024-12-28 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123928', 'tblTempUsageDetail_20' ) end [2024-12-28 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123928', 'tblTempVendorCDR_20' ) start [2024-12-28 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123928', 'tblTempVendorCDR_20' ) end [2024-12-28 20:19:17] Production.INFO: ProcessCDR(1,14123928,1,1,2) [2024-12-28 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123928', 'tblTempUsageDetail_20' ) start [2024-12-28 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123928', 'tblTempUsageDetail_20' ) end [2024-12-28 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:19:21] Production.INFO: ==23132== Releasing lock... [2024-12-28 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:19:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:20:06 [end_date_ymd] => 2024-12-28 20:20:06 [RateCDR] => 1 ) [2024-12-28 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:20:06' and `end` < '2024-12-28 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:20:19] Production.INFO: count ==1162 [2024-12-28 20:20:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:20:06 - End Time 2024-12-28 20:20:06 [2024-12-28 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123934', 'tblTempUsageDetail_20' ) start [2024-12-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123934', 'tblTempUsageDetail_20' ) end [2024-12-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123934', 'tblTempVendorCDR_20' ) start [2024-12-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123934', 'tblTempVendorCDR_20' ) end [2024-12-28 20:20:19] Production.INFO: ProcessCDR(1,14123934,1,1,2) [2024-12-28 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123934', 'tblTempUsageDetail_20' ) start [2024-12-28 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123934', 'tblTempUsageDetail_20' ) end [2024-12-28 20:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:20:22] Production.INFO: ==23258== Releasing lock... [2024-12-28 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:20:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-28 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:21:04 [end_date_ymd] => 2024-12-28 20:21:04 [RateCDR] => 1 ) [2024-12-28 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:21:04' and `end` < '2024-12-28 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:21:18] Production.INFO: count ==1121 [2024-12-28 20:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:21:04 - End Time 2024-12-28 20:21:04 [2024-12-28 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123939', 'tblTempUsageDetail_20' ) start [2024-12-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123939', 'tblTempUsageDetail_20' ) end [2024-12-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123939', 'tblTempVendorCDR_20' ) start [2024-12-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123939', 'tblTempVendorCDR_20' ) end [2024-12-28 20:21:18] Production.INFO: ProcessCDR(1,14123939,1,1,2) [2024-12-28 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123939', 'tblTempUsageDetail_20' ) start [2024-12-28 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123939', 'tblTempUsageDetail_20' ) end [2024-12-28 20:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:21:21] Production.INFO: ==23373== Releasing lock... [2024-12-28 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:21:21] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:22:05 [end_date_ymd] => 2024-12-28 20:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:22:05' and `end` < '2024-12-28 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-28 20:22:18] Production.INFO: count ==1121 [2024-12-28 20:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:22:05 - End Time 2024-12-28 20:22:05 [2024-12-28 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123944', 'tblTempUsageDetail_20' ) start [2024-12-28 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123944', 'tblTempUsageDetail_20' ) end [2024-12-28 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123944', 'tblTempVendorCDR_20' ) start [2024-12-28 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123944', 'tblTempVendorCDR_20' ) end [2024-12-28 20:22:18] Production.INFO: ProcessCDR(1,14123944,1,1,2) [2024-12-28 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123944', 'tblTempUsageDetail_20' ) start [2024-12-28 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123944', 'tblTempUsageDetail_20' ) end [2024-12-28 20:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:22:21] Production.INFO: ==23499== Releasing lock... [2024-12-28 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:22:21] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:23:05 [end_date_ymd] => 2024-12-28 20:23:05 [RateCDR] => 1 ) [2024-12-28 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:23:05' and `end` < '2024-12-28 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:23:17] Production.INFO: count ==1120 [2024-12-28 20:23:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:23:05 - End Time 2024-12-28 20:23:05 [2024-12-28 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123949', 'tblTempUsageDetail_20' ) start [2024-12-28 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123949', 'tblTempUsageDetail_20' ) end [2024-12-28 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123949', 'tblTempVendorCDR_20' ) start [2024-12-28 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123949', 'tblTempVendorCDR_20' ) end [2024-12-28 20:23:17] Production.INFO: ProcessCDR(1,14123949,1,1,2) [2024-12-28 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123949', 'tblTempUsageDetail_20' ) start [2024-12-28 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123949', 'tblTempUsageDetail_20' ) end [2024-12-28 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:23:21] Production.INFO: ==23627== Releasing lock... [2024-12-28 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:23:21] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:24:05 [end_date_ymd] => 2024-12-28 20:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:24:05' and `end` < '2024-12-28 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-28 20:24:18] Production.INFO: count ==1123 [2024-12-28 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:24:05 - End Time 2024-12-28 20:24:05 [2024-12-28 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123954', 'tblTempUsageDetail_20' ) start [2024-12-28 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123954', 'tblTempUsageDetail_20' ) end [2024-12-28 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123954', 'tblTempVendorCDR_20' ) start [2024-12-28 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123954', 'tblTempVendorCDR_20' ) end [2024-12-28 20:24:18] Production.INFO: ProcessCDR(1,14123954,1,1,2) [2024-12-28 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123954', 'tblTempUsageDetail_20' ) start [2024-12-28 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123954', 'tblTempUsageDetail_20' ) end [2024-12-28 20:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:24:23] Production.INFO: ==23749== Releasing lock... [2024-12-28 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:24:23] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:25:04 [end_date_ymd] => 2024-12-28 20:25:04 [RateCDR] => 1 ) [2024-12-28 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-28 17:25:04' and `end` < '2024-12-28 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-28 20:25:17] Production.INFO: count ==1111 [2024-12-28 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:25:04 - End Time 2024-12-28 20:25:04 [2024-12-28 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123959', 'tblTempUsageDetail_20' ) start [2024-12-28 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123959', 'tblTempUsageDetail_20' ) end [2024-12-28 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123959', 'tblTempVendorCDR_20' ) start [2024-12-28 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123959', 'tblTempVendorCDR_20' ) end [2024-12-28 20:25:17] Production.INFO: ProcessCDR(1,14123959,1,1,2) [2024-12-28 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123959', 'tblTempUsageDetail_20' ) start [2024-12-28 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123959', 'tblTempUsageDetail_20' ) end [2024-12-28 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:25:21] Production.INFO: ==23871== Releasing lock... [2024-12-28 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:25:21] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:26:05 [end_date_ymd] => 2024-12-28 20:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:26:05' and `end` < '2024-12-28 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-28 20:26:18] Production.INFO: count ==1111 [2024-12-28 20:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:26:05 - End Time 2024-12-28 20:26:05 [2024-12-28 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123964', 'tblTempUsageDetail_20' ) start [2024-12-28 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123964', 'tblTempUsageDetail_20' ) end [2024-12-28 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123964', 'tblTempVendorCDR_20' ) start [2024-12-28 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123964', 'tblTempVendorCDR_20' ) end [2024-12-28 20:26:18] Production.INFO: ProcessCDR(1,14123964,1,1,2) [2024-12-28 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123964', 'tblTempUsageDetail_20' ) start [2024-12-28 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123964', 'tblTempUsageDetail_20' ) end [2024-12-28 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:26:21] Production.INFO: ==23998== Releasing lock... [2024-12-28 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:26:21] Production.INFO: 36 MB #Memory Used# [2024-12-28 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:27:05 [end_date_ymd] => 2024-12-28 20:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:27:05' and `end` < '2024-12-28 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-28 20:27:18] Production.INFO: count ==1099 [2024-12-28 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:27:05 - End Time 2024-12-28 20:27:05 [2024-12-28 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123969', 'tblTempUsageDetail_20' ) start [2024-12-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123969', 'tblTempUsageDetail_20' ) end [2024-12-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123969', 'tblTempVendorCDR_20' ) start [2024-12-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123969', 'tblTempVendorCDR_20' ) end [2024-12-28 20:27:18] Production.INFO: ProcessCDR(1,14123969,1,1,2) [2024-12-28 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123969', 'tblTempUsageDetail_20' ) start [2024-12-28 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123969', 'tblTempUsageDetail_20' ) end [2024-12-28 20:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:27:22] Production.INFO: ==24114== Releasing lock... [2024-12-28 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:27:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:28:04 [end_date_ymd] => 2024-12-28 20:28:04 [RateCDR] => 1 ) [2024-12-28 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:28:04' and `end` < '2024-12-28 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:28:17] Production.INFO: count ==1098 [2024-12-28 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:28:04 - End Time 2024-12-28 20:28:04 [2024-12-28 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123974', 'tblTempUsageDetail_20' ) start [2024-12-28 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123974', 'tblTempUsageDetail_20' ) end [2024-12-28 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123974', 'tblTempVendorCDR_20' ) start [2024-12-28 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123974', 'tblTempVendorCDR_20' ) end [2024-12-28 20:28:17] Production.INFO: ProcessCDR(1,14123974,1,1,2) [2024-12-28 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123974', 'tblTempUsageDetail_20' ) start [2024-12-28 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123974', 'tblTempUsageDetail_20' ) end [2024-12-28 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:28:20] Production.INFO: ==24295== Releasing lock... [2024-12-28 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:28:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:29:06 [end_date_ymd] => 2024-12-28 20:29:06 [RateCDR] => 1 ) [2024-12-28 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:29:06' and `end` < '2024-12-28 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:29:20] Production.INFO: count ==1098 [2024-12-28 20:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 17:29:06 - End Time 2024-12-28 20:29:06 [2024-12-28 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123979', 'tblTempUsageDetail_20' ) start [2024-12-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123979', 'tblTempUsageDetail_20' ) end [2024-12-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123979', 'tblTempVendorCDR_20' ) start [2024-12-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123979', 'tblTempVendorCDR_20' ) end [2024-12-28 20:29:20] Production.INFO: ProcessCDR(1,14123979,1,1,2) [2024-12-28 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123979', 'tblTempUsageDetail_20' ) start [2024-12-28 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123979', 'tblTempUsageDetail_20' ) end [2024-12-28 20:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:29:23] Production.INFO: ==24428== Releasing lock... [2024-12-28 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:29:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:30:05 [end_date_ymd] => 2024-12-28 20:30:05 [RateCDR] => 1 ) [2024-12-28 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:30:05' and `end` < '2024-12-28 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:30:18] Production.INFO: count ==1095 [2024-12-28 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:30:05 - End Time 2024-12-28 20:30:05 [2024-12-28 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123984', 'tblTempUsageDetail_20' ) start [2024-12-28 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123984', 'tblTempUsageDetail_20' ) end [2024-12-28 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123984', 'tblTempVendorCDR_20' ) start [2024-12-28 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123984', 'tblTempVendorCDR_20' ) end [2024-12-28 20:30:18] Production.INFO: ProcessCDR(1,14123984,1,1,2) [2024-12-28 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123984', 'tblTempUsageDetail_20' ) start [2024-12-28 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123984', 'tblTempUsageDetail_20' ) end [2024-12-28 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:30:21] Production.INFO: ==24534== Releasing lock... [2024-12-28 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:30:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:31:05 [end_date_ymd] => 2024-12-28 20:31:05 [RateCDR] => 1 ) [2024-12-28 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:31:05' and `end` < '2024-12-28 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:31:19] Production.INFO: count ==1075 [2024-12-28 20:31:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:31:05 - End Time 2024-12-28 20:31:05 [2024-12-28 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123990', 'tblTempUsageDetail_20' ) start [2024-12-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123990', 'tblTempUsageDetail_20' ) end [2024-12-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123990', 'tblTempVendorCDR_20' ) start [2024-12-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123990', 'tblTempVendorCDR_20' ) end [2024-12-28 20:31:19] Production.INFO: ProcessCDR(1,14123990,1,1,2) [2024-12-28 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123990', 'tblTempUsageDetail_20' ) start [2024-12-28 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123990', 'tblTempUsageDetail_20' ) end [2024-12-28 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:31:22] Production.INFO: ==24662== Releasing lock... [2024-12-28 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:31:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:32:05 [end_date_ymd] => 2024-12-28 20:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:32:05' and `end` < '2024-12-28 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-28 20:32:17] Production.INFO: count ==1074 [2024-12-28 20:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:32:05 - End Time 2024-12-28 20:32:05 [2024-12-28 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123995', 'tblTempUsageDetail_20' ) start [2024-12-28 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14123995', 'tblTempUsageDetail_20' ) end [2024-12-28 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123995', 'tblTempVendorCDR_20' ) start [2024-12-28 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14123995', 'tblTempVendorCDR_20' ) end [2024-12-28 20:32:17] Production.INFO: ProcessCDR(1,14123995,1,1,2) [2024-12-28 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14123995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14123995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14123995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14123995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123995', 'tblTempUsageDetail_20' ) start [2024-12-28 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14123995', 'tblTempUsageDetail_20' ) end [2024-12-28 20:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:32:20] Production.INFO: ==24785== Releasing lock... [2024-12-28 20:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:32:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:33:05 [end_date_ymd] => 2024-12-28 20:33:05 [RateCDR] => 1 ) [2024-12-28 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:33:05' and `end` < '2024-12-28 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:33:18] Production.INFO: count ==1074 [2024-12-28 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:33:05 - End Time 2024-12-28 20:33:05 [2024-12-28 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124000', 'tblTempUsageDetail_20' ) start [2024-12-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124000', 'tblTempUsageDetail_20' ) end [2024-12-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124000', 'tblTempVendorCDR_20' ) start [2024-12-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124000', 'tblTempVendorCDR_20' ) end [2024-12-28 20:33:18] Production.INFO: ProcessCDR(1,14124000,1,1,2) [2024-12-28 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124000', 'tblTempUsageDetail_20' ) start [2024-12-28 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124000', 'tblTempUsageDetail_20' ) end [2024-12-28 20:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:33:22] Production.INFO: ==24898== Releasing lock... [2024-12-28 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:33:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:34:04 [end_date_ymd] => 2024-12-28 20:34:04 [RateCDR] => 1 ) [2024-12-28 20:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:34:04' and `end` < '2024-12-28 20:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:34:17] Production.INFO: count ==1074 [2024-12-28 20:34:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:34:04 - End Time 2024-12-28 20:34:04 [2024-12-28 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124005', 'tblTempUsageDetail_20' ) start [2024-12-28 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124005', 'tblTempUsageDetail_20' ) end [2024-12-28 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124005', 'tblTempVendorCDR_20' ) start [2024-12-28 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124005', 'tblTempVendorCDR_20' ) end [2024-12-28 20:34:17] Production.INFO: ProcessCDR(1,14124005,1,1,2) [2024-12-28 20:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124005', 'tblTempUsageDetail_20' ) start [2024-12-28 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124005', 'tblTempUsageDetail_20' ) end [2024-12-28 20:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:34:20] Production.INFO: ==25027== Releasing lock... [2024-12-28 20:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:34:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:35:05 [end_date_ymd] => 2024-12-28 20:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:35:05' and `end` < '2024-12-28 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-28 20:35:18] Production.INFO: count ==1092 [2024-12-28 20:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:35:05 - End Time 2024-12-28 20:35:05 [2024-12-28 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124010', 'tblTempUsageDetail_20' ) start [2024-12-28 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124010', 'tblTempUsageDetail_20' ) end [2024-12-28 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124010', 'tblTempVendorCDR_20' ) start [2024-12-28 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124010', 'tblTempVendorCDR_20' ) end [2024-12-28 20:35:18] Production.INFO: ProcessCDR(1,14124010,1,1,2) [2024-12-28 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124010', 'tblTempUsageDetail_20' ) start [2024-12-28 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124010', 'tblTempUsageDetail_20' ) end [2024-12-28 20:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:35:21] Production.INFO: ==25149== Releasing lock... [2024-12-28 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:35:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:36:05 [end_date_ymd] => 2024-12-28 20:36:05 [RateCDR] => 1 ) [2024-12-28 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:36:05' and `end` < '2024-12-28 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:36:17] Production.INFO: count ==1090 [2024-12-28 20:36:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:36:05 - End Time 2024-12-28 20:36:05 [2024-12-28 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124015', 'tblTempUsageDetail_20' ) start [2024-12-28 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124015', 'tblTempUsageDetail_20' ) end [2024-12-28 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124015', 'tblTempVendorCDR_20' ) start [2024-12-28 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124015', 'tblTempVendorCDR_20' ) end [2024-12-28 20:36:17] Production.INFO: ProcessCDR(1,14124015,1,1,2) [2024-12-28 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124015', 'tblTempUsageDetail_20' ) start [2024-12-28 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124015', 'tblTempUsageDetail_20' ) end [2024-12-28 20:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:36:21] Production.INFO: ==25267== Releasing lock... [2024-12-28 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:36:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:37:05 [end_date_ymd] => 2024-12-28 20:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:37:05' and `end` < '2024-12-28 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-28 20:37:18] Production.INFO: count ==1092 [2024-12-28 20:37:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:37:05 - End Time 2024-12-28 20:37:05 [2024-12-28 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124020', 'tblTempUsageDetail_20' ) start [2024-12-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124020', 'tblTempUsageDetail_20' ) end [2024-12-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124020', 'tblTempVendorCDR_20' ) start [2024-12-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124020', 'tblTempVendorCDR_20' ) end [2024-12-28 20:37:19] Production.INFO: ProcessCDR(1,14124020,1,1,2) [2024-12-28 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124020', 'tblTempUsageDetail_20' ) start [2024-12-28 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124020', 'tblTempUsageDetail_20' ) end [2024-12-28 20:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:37:22] Production.INFO: ==25392== Releasing lock... [2024-12-28 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:37:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:38:05 [end_date_ymd] => 2024-12-28 20:38:05 [RateCDR] => 1 ) [2024-12-28 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:38:05' and `end` < '2024-12-28 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:38:17] Production.INFO: count ==1091 [2024-12-28 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:38:05 - End Time 2024-12-28 20:38:05 [2024-12-28 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124025', 'tblTempUsageDetail_20' ) start [2024-12-28 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124025', 'tblTempUsageDetail_20' ) end [2024-12-28 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124025', 'tblTempVendorCDR_20' ) start [2024-12-28 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124025', 'tblTempVendorCDR_20' ) end [2024-12-28 20:38:17] Production.INFO: ProcessCDR(1,14124025,1,1,2) [2024-12-28 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124025', 'tblTempUsageDetail_20' ) start [2024-12-28 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124025', 'tblTempUsageDetail_20' ) end [2024-12-28 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:38:21] Production.INFO: ==25512== Releasing lock... [2024-12-28 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:38:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:39:05 [end_date_ymd] => 2024-12-28 20:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:39:05' and `end` < '2024-12-28 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-28 20:39:18] Production.INFO: count ==1091 [2024-12-28 20:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:39:05 - End Time 2024-12-28 20:39:05 [2024-12-28 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124030', 'tblTempUsageDetail_20' ) start [2024-12-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124030', 'tblTempUsageDetail_20' ) end [2024-12-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124030', 'tblTempVendorCDR_20' ) start [2024-12-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124030', 'tblTempVendorCDR_20' ) end [2024-12-28 20:39:18] Production.INFO: ProcessCDR(1,14124030,1,1,2) [2024-12-28 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124030', 'tblTempUsageDetail_20' ) start [2024-12-28 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124030', 'tblTempUsageDetail_20' ) end [2024-12-28 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:39:21] Production.INFO: ==25622== Releasing lock... [2024-12-28 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:39:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:40:06 [end_date_ymd] => 2024-12-28 20:40:06 [RateCDR] => 1 ) [2024-12-28 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-28 17:40:06' and `end` < '2024-12-28 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-28 20:40:19] Production.INFO: count ==1093 [2024-12-28 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:40:06 - End Time 2024-12-28 20:40:06 [2024-12-28 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124035', 'tblTempUsageDetail_20' ) start [2024-12-28 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124035', 'tblTempUsageDetail_20' ) end [2024-12-28 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124035', 'tblTempVendorCDR_20' ) start [2024-12-28 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124035', 'tblTempVendorCDR_20' ) end [2024-12-28 20:40:19] Production.INFO: ProcessCDR(1,14124035,1,1,2) [2024-12-28 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124035', 'tblTempUsageDetail_20' ) start [2024-12-28 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124035', 'tblTempUsageDetail_20' ) end [2024-12-28 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:40:22] Production.INFO: ==25744== Releasing lock... [2024-12-28 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:40:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:41:05 [end_date_ymd] => 2024-12-28 20:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:41:05' and `end` < '2024-12-28 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-28 20:41:17] Production.INFO: count ==1091 [2024-12-28 20:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:41:05 - End Time 2024-12-28 20:41:05 [2024-12-28 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124041', 'tblTempUsageDetail_20' ) start [2024-12-28 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124041', 'tblTempUsageDetail_20' ) end [2024-12-28 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124041', 'tblTempVendorCDR_20' ) start [2024-12-28 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124041', 'tblTempVendorCDR_20' ) end [2024-12-28 20:41:17] Production.INFO: ProcessCDR(1,14124041,1,1,2) [2024-12-28 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124041', 'tblTempUsageDetail_20' ) start [2024-12-28 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124041', 'tblTempUsageDetail_20' ) end [2024-12-28 20:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:41:22] Production.INFO: ==25859== Releasing lock... [2024-12-28 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:41:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:42:04 [end_date_ymd] => 2024-12-28 20:42:04 [RateCDR] => 1 ) [2024-12-28 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:42:04' and `end` < '2024-12-28 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:42:17] Production.INFO: count ==1095 [2024-12-28 20:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:42:04 - End Time 2024-12-28 20:42:04 [2024-12-28 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124046', 'tblTempUsageDetail_20' ) start [2024-12-28 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124046', 'tblTempUsageDetail_20' ) end [2024-12-28 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124046', 'tblTempVendorCDR_20' ) start [2024-12-28 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124046', 'tblTempVendorCDR_20' ) end [2024-12-28 20:42:17] Production.INFO: ProcessCDR(1,14124046,1,1,2) [2024-12-28 20:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124046', 'tblTempUsageDetail_20' ) start [2024-12-28 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124046', 'tblTempUsageDetail_20' ) end [2024-12-28 20:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:42:20] Production.INFO: ==25951== Releasing lock... [2024-12-28 20:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:42:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:43:05 [end_date_ymd] => 2024-12-28 20:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:43:05' and `end` < '2024-12-28 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-28 20:43:19] Production.INFO: count ==1094 [2024-12-28 20:43:19] Production.ERROR: pbx CDR StartTime 2024-12-28 17:43:05 - End Time 2024-12-28 20:43:05 [2024-12-28 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124051', 'tblTempUsageDetail_20' ) start [2024-12-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124051', 'tblTempUsageDetail_20' ) end [2024-12-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124051', 'tblTempVendorCDR_20' ) start [2024-12-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124051', 'tblTempVendorCDR_20' ) end [2024-12-28 20:43:19] Production.INFO: ProcessCDR(1,14124051,1,1,2) [2024-12-28 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124051', 'tblTempUsageDetail_20' ) start [2024-12-28 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124051', 'tblTempUsageDetail_20' ) end [2024-12-28 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:43:22] Production.INFO: ==26092== Releasing lock... [2024-12-28 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:43:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:44:05 [end_date_ymd] => 2024-12-28 20:44:05 [RateCDR] => 1 ) [2024-12-28 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:44:05' and `end` < '2024-12-28 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:44:18] Production.INFO: count ==1093 [2024-12-28 20:44:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:44:05 - End Time 2024-12-28 20:44:05 [2024-12-28 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124056', 'tblTempUsageDetail_20' ) start [2024-12-28 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124056', 'tblTempUsageDetail_20' ) end [2024-12-28 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124056', 'tblTempVendorCDR_20' ) start [2024-12-28 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124056', 'tblTempVendorCDR_20' ) end [2024-12-28 20:44:18] Production.INFO: ProcessCDR(1,14124056,1,1,2) [2024-12-28 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124056', 'tblTempUsageDetail_20' ) start [2024-12-28 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124056', 'tblTempUsageDetail_20' ) end [2024-12-28 20:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:44:21] Production.INFO: ==26188== Releasing lock... [2024-12-28 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:44:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:45:05 [end_date_ymd] => 2024-12-28 20:45:05 [RateCDR] => 1 ) [2024-12-28 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:45:05' and `end` < '2024-12-28 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:45:18] Production.INFO: count ==1093 [2024-12-28 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:45:05 - End Time 2024-12-28 20:45:05 [2024-12-28 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124061', 'tblTempUsageDetail_20' ) start [2024-12-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124061', 'tblTempUsageDetail_20' ) end [2024-12-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124061', 'tblTempVendorCDR_20' ) start [2024-12-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124061', 'tblTempVendorCDR_20' ) end [2024-12-28 20:45:18] Production.INFO: ProcessCDR(1,14124061,1,1,2) [2024-12-28 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124061', 'tblTempUsageDetail_20' ) start [2024-12-28 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124061', 'tblTempUsageDetail_20' ) end [2024-12-28 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:45:21] Production.INFO: ==26277== Releasing lock... [2024-12-28 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:45:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:46:06 [end_date_ymd] => 2024-12-28 20:46:06 [RateCDR] => 1 ) [2024-12-28 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:46:06' and `end` < '2024-12-28 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:46:18] Production.INFO: count ==1095 [2024-12-28 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:46:06 - End Time 2024-12-28 20:46:06 [2024-12-28 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124066', 'tblTempUsageDetail_20' ) start [2024-12-28 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124066', 'tblTempUsageDetail_20' ) end [2024-12-28 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124066', 'tblTempVendorCDR_20' ) start [2024-12-28 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124066', 'tblTempVendorCDR_20' ) end [2024-12-28 20:46:18] Production.INFO: ProcessCDR(1,14124066,1,1,2) [2024-12-28 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124066', 'tblTempUsageDetail_20' ) start [2024-12-28 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124066', 'tblTempUsageDetail_20' ) end [2024-12-28 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:46:21] Production.INFO: ==26368== Releasing lock... [2024-12-28 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:46:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:47:04 [end_date_ymd] => 2024-12-28 20:47:04 [RateCDR] => 1 ) [2024-12-28 20: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-28 17:47:04' and `end` < '2024-12-28 20: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-28 20:47:18] Production.INFO: count ==1095 [2024-12-28 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:47:04 - End Time 2024-12-28 20:47:04 [2024-12-28 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124071', 'tblTempUsageDetail_20' ) start [2024-12-28 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124071', 'tblTempUsageDetail_20' ) end [2024-12-28 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124071', 'tblTempVendorCDR_20' ) start [2024-12-28 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124071', 'tblTempVendorCDR_20' ) end [2024-12-28 20:47:18] Production.INFO: ProcessCDR(1,14124071,1,1,2) [2024-12-28 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124071', 'tblTempUsageDetail_20' ) start [2024-12-28 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124071', 'tblTempUsageDetail_20' ) end [2024-12-28 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:47:21] Production.INFO: ==26457== Releasing lock... [2024-12-28 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:47:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:48:04 [end_date_ymd] => 2024-12-28 20:48:04 [RateCDR] => 1 ) [2024-12-28 20:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:48:04' and `end` < '2024-12-28 20:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:48:18] Production.INFO: count ==1089 [2024-12-28 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:48:04 - End Time 2024-12-28 20:48:04 [2024-12-28 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124076', 'tblTempUsageDetail_20' ) start [2024-12-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124076', 'tblTempUsageDetail_20' ) end [2024-12-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124076', 'tblTempVendorCDR_20' ) start [2024-12-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124076', 'tblTempVendorCDR_20' ) end [2024-12-28 20:48:18] Production.INFO: ProcessCDR(1,14124076,1,1,2) [2024-12-28 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124076', 'tblTempUsageDetail_20' ) start [2024-12-28 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124076', 'tblTempUsageDetail_20' ) end [2024-12-28 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:48:21] Production.INFO: ==26547== Releasing lock... [2024-12-28 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:48:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:49:05 [end_date_ymd] => 2024-12-28 20:49:05 [RateCDR] => 1 ) [2024-12-28 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:49:05' and `end` < '2024-12-28 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:49:17] Production.INFO: count ==1083 [2024-12-28 20:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:49:05 - End Time 2024-12-28 20:49:05 [2024-12-28 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124081', 'tblTempUsageDetail_20' ) start [2024-12-28 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124081', 'tblTempUsageDetail_20' ) end [2024-12-28 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124081', 'tblTempVendorCDR_20' ) start [2024-12-28 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124081', 'tblTempVendorCDR_20' ) end [2024-12-28 20:49:17] Production.INFO: ProcessCDR(1,14124081,1,1,2) [2024-12-28 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124081', 'tblTempUsageDetail_20' ) start [2024-12-28 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124081', 'tblTempUsageDetail_20' ) end [2024-12-28 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:49:21] Production.INFO: ==26635== Releasing lock... [2024-12-28 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:49:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:50:06 [end_date_ymd] => 2024-12-28 20:50:06 [RateCDR] => 1 ) [2024-12-28 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:50:06' and `end` < '2024-12-28 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:50:18] Production.INFO: count ==1083 [2024-12-28 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:50:06 - End Time 2024-12-28 20:50:06 [2024-12-28 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124087', 'tblTempUsageDetail_20' ) start [2024-12-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124087', 'tblTempUsageDetail_20' ) end [2024-12-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124087', 'tblTempVendorCDR_20' ) start [2024-12-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124087', 'tblTempVendorCDR_20' ) end [2024-12-28 20:50:18] Production.INFO: ProcessCDR(1,14124087,1,1,2) [2024-12-28 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124087', 'tblTempUsageDetail_20' ) start [2024-12-28 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124087', 'tblTempUsageDetail_20' ) end [2024-12-28 20:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:50:22] Production.INFO: ==26733== Releasing lock... [2024-12-28 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:50:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-28 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:51:04 [end_date_ymd] => 2024-12-28 20:51:04 [RateCDR] => 1 ) [2024-12-28 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:51:04' and `end` < '2024-12-28 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:51:17] Production.INFO: count ==1047 [2024-12-28 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:51:04 - End Time 2024-12-28 20:51:04 [2024-12-28 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124092', 'tblTempUsageDetail_20' ) start [2024-12-28 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124092', 'tblTempUsageDetail_20' ) end [2024-12-28 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124092', 'tblTempVendorCDR_20' ) start [2024-12-28 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124092', 'tblTempVendorCDR_20' ) end [2024-12-28 20:51:17] Production.INFO: ProcessCDR(1,14124092,1,1,2) [2024-12-28 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124092', 'tblTempUsageDetail_20' ) start [2024-12-28 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124092', 'tblTempUsageDetail_20' ) end [2024-12-28 20:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:51:20] Production.INFO: ==26820== Releasing lock... [2024-12-28 20:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:51:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:52:05 [end_date_ymd] => 2024-12-28 20:52:05 [RateCDR] => 1 ) [2024-12-28 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:52:05' and `end` < '2024-12-28 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:52:18] Production.INFO: count ==1048 [2024-12-28 20:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:52:05 - End Time 2024-12-28 20:52:05 [2024-12-28 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124097', 'tblTempUsageDetail_20' ) start [2024-12-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124097', 'tblTempUsageDetail_20' ) end [2024-12-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124097', 'tblTempVendorCDR_20' ) start [2024-12-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124097', 'tblTempVendorCDR_20' ) end [2024-12-28 20:52:18] Production.INFO: ProcessCDR(1,14124097,1,1,2) [2024-12-28 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124097', 'tblTempUsageDetail_20' ) start [2024-12-28 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124097', 'tblTempUsageDetail_20' ) end [2024-12-28 20:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:52:21] Production.INFO: ==26901== Releasing lock... [2024-12-28 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:52:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:53:04 [end_date_ymd] => 2024-12-28 20:53:04 [RateCDR] => 1 ) [2024-12-28 20: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-28 17:53:04' and `end` < '2024-12-28 20: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-28 20:53:17] Production.INFO: count ==1048 [2024-12-28 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:53:04 - End Time 2024-12-28 20:53:04 [2024-12-28 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124102', 'tblTempUsageDetail_20' ) start [2024-12-28 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124102', 'tblTempUsageDetail_20' ) end [2024-12-28 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124102', 'tblTempVendorCDR_20' ) start [2024-12-28 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124102', 'tblTempVendorCDR_20' ) end [2024-12-28 20:53:17] Production.INFO: ProcessCDR(1,14124102,1,1,2) [2024-12-28 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124102', 'tblTempUsageDetail_20' ) start [2024-12-28 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124102', 'tblTempUsageDetail_20' ) end [2024-12-28 20:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:53:20] Production.INFO: ==27002== Releasing lock... [2024-12-28 20:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:53:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:54:05 [end_date_ymd] => 2024-12-28 20:54:05 [RateCDR] => 1 ) [2024-12-28 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:54:05' and `end` < '2024-12-28 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:54:18] Production.INFO: count ==1047 [2024-12-28 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:54:05 - End Time 2024-12-28 20:54:05 [2024-12-28 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124107', 'tblTempUsageDetail_20' ) start [2024-12-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124107', 'tblTempUsageDetail_20' ) end [2024-12-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124107', 'tblTempVendorCDR_20' ) start [2024-12-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124107', 'tblTempVendorCDR_20' ) end [2024-12-28 20:54:18] Production.INFO: ProcessCDR(1,14124107,1,1,2) [2024-12-28 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124107', 'tblTempUsageDetail_20' ) start [2024-12-28 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124107', 'tblTempUsageDetail_20' ) end [2024-12-28 20:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:54:21] Production.INFO: ==27085== Releasing lock... [2024-12-28 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:54:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:55:04 [end_date_ymd] => 2024-12-28 20:55:04 [RateCDR] => 1 ) [2024-12-28 20: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-28 17:55:04' and `end` < '2024-12-28 20: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-28 20:55:17] Production.INFO: count ==1048 [2024-12-28 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 17:55:04 - End Time 2024-12-28 20:55:04 [2024-12-28 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124112', 'tblTempUsageDetail_20' ) start [2024-12-28 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124112', 'tblTempUsageDetail_20' ) end [2024-12-28 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124112', 'tblTempVendorCDR_20' ) start [2024-12-28 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124112', 'tblTempVendorCDR_20' ) end [2024-12-28 20:55:17] Production.INFO: ProcessCDR(1,14124112,1,1,2) [2024-12-28 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124112', 'tblTempUsageDetail_20' ) start [2024-12-28 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124112', 'tblTempUsageDetail_20' ) end [2024-12-28 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:55:20] Production.INFO: ==27175== Releasing lock... [2024-12-28 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:55:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:56:05 [end_date_ymd] => 2024-12-28 20:56:05 [RateCDR] => 1 ) [2024-12-28 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:56:05' and `end` < '2024-12-28 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:56:18] Production.INFO: count ==1051 [2024-12-28 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:56:05 - End Time 2024-12-28 20:56:05 [2024-12-28 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124117', 'tblTempUsageDetail_20' ) start [2024-12-28 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124117', 'tblTempUsageDetail_20' ) end [2024-12-28 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124117', 'tblTempVendorCDR_20' ) start [2024-12-28 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124117', 'tblTempVendorCDR_20' ) end [2024-12-28 20:56:18] Production.INFO: ProcessCDR(1,14124117,1,1,2) [2024-12-28 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124117', 'tblTempUsageDetail_20' ) start [2024-12-28 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124117', 'tblTempUsageDetail_20' ) end [2024-12-28 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:56:21] Production.INFO: ==27258== Releasing lock... [2024-12-28 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:56:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:57:05 [end_date_ymd] => 2024-12-28 20:57:05 [RateCDR] => 1 ) [2024-12-28 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 17:57:05' and `end` < '2024-12-28 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 20:57:18] Production.INFO: count ==1043 [2024-12-28 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:57:05 - End Time 2024-12-28 20:57:05 [2024-12-28 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124122', 'tblTempUsageDetail_20' ) start [2024-12-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124122', 'tblTempUsageDetail_20' ) end [2024-12-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124122', 'tblTempVendorCDR_20' ) start [2024-12-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124122', 'tblTempVendorCDR_20' ) end [2024-12-28 20:57:18] Production.INFO: ProcessCDR(1,14124122,1,1,2) [2024-12-28 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124122', 'tblTempUsageDetail_20' ) start [2024-12-28 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124122', 'tblTempUsageDetail_20' ) end [2024-12-28 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:57:21] Production.INFO: ==27349== Releasing lock... [2024-12-28 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:57:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:58:05 [end_date_ymd] => 2024-12-28 20:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:58:05' and `end` < '2024-12-28 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-28 20:58:18] Production.INFO: count ==1043 [2024-12-28 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:58:05 - End Time 2024-12-28 20:58:05 [2024-12-28 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124127', 'tblTempUsageDetail_20' ) start [2024-12-28 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124127', 'tblTempUsageDetail_20' ) end [2024-12-28 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124127', 'tblTempVendorCDR_20' ) start [2024-12-28 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124127', 'tblTempVendorCDR_20' ) end [2024-12-28 20:58:18] Production.INFO: ProcessCDR(1,14124127,1,1,2) [2024-12-28 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124127', 'tblTempUsageDetail_20' ) start [2024-12-28 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124127', 'tblTempUsageDetail_20' ) end [2024-12-28 20:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:58:21] Production.INFO: ==27431== Releasing lock... [2024-12-28 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:58:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 17:59:05 [end_date_ymd] => 2024-12-28 20:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 17:59:05' and `end` < '2024-12-28 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-28 20:59:18] Production.INFO: count ==1047 [2024-12-28 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 17:59:05 - End Time 2024-12-28 20:59:05 [2024-12-28 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124132', 'tblTempUsageDetail_20' ) start [2024-12-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124132', 'tblTempUsageDetail_20' ) end [2024-12-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124132', 'tblTempVendorCDR_20' ) start [2024-12-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124132', 'tblTempVendorCDR_20' ) end [2024-12-28 20:59:18] Production.INFO: ProcessCDR(1,14124132,1,1,2) [2024-12-28 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124132', 'tblTempUsageDetail_20' ) start [2024-12-28 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124132', 'tblTempUsageDetail_20' ) end [2024-12-28 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 20:59:21] Production.INFO: ==27549== Releasing lock... [2024-12-28 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 20:59:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:00:05 [end_date_ymd] => 2024-12-28 21:00:05 [RateCDR] => 1 ) [2024-12-28 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:00:05' and `end` < '2024-12-28 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:00:18] Production.INFO: count ==1053 [2024-12-28 21:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:00:05 - End Time 2024-12-28 21:00:05 [2024-12-28 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124138', 'tblTempUsageDetail_20' ) start [2024-12-28 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124138', 'tblTempUsageDetail_20' ) end [2024-12-28 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124138', 'tblTempVendorCDR_20' ) start [2024-12-28 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124138', 'tblTempVendorCDR_20' ) end [2024-12-28 21:00:18] Production.INFO: ProcessCDR(1,14124138,1,1,2) [2024-12-28 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124138', 'tblTempUsageDetail_20' ) start [2024-12-28 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124138', 'tblTempUsageDetail_20' ) end [2024-12-28 21:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:00:21] Production.INFO: ==27633== Releasing lock... [2024-12-28 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:00:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-28 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:01:05 [end_date_ymd] => 2024-12-28 21:01:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:01:05' and `end` < '2024-12-28 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-28 21:01:18] Production.INFO: count ==1030 [2024-12-28 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:01:05 - End Time 2024-12-28 21:01:05 [2024-12-28 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124143', 'tblTempUsageDetail_20' ) start [2024-12-28 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124143', 'tblTempUsageDetail_20' ) end [2024-12-28 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124143', 'tblTempVendorCDR_20' ) start [2024-12-28 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124143', 'tblTempVendorCDR_20' ) end [2024-12-28 21:01:18] Production.INFO: ProcessCDR(1,14124143,1,1,2) [2024-12-28 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124143', 'tblTempUsageDetail_20' ) start [2024-12-28 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124143', 'tblTempUsageDetail_20' ) end [2024-12-28 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:01:21] Production.INFO: ==27726== Releasing lock... [2024-12-28 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:01:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:02:05 [end_date_ymd] => 2024-12-28 21:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:02:05' and `end` < '2024-12-28 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-28 21:02:19] Production.INFO: count ==1038 [2024-12-28 21:02:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:02:05 - End Time 2024-12-28 21:02:05 [2024-12-28 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124148', 'tblTempUsageDetail_20' ) start [2024-12-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124148', 'tblTempUsageDetail_20' ) end [2024-12-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124148', 'tblTempVendorCDR_20' ) start [2024-12-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124148', 'tblTempVendorCDR_20' ) end [2024-12-28 21:02:19] Production.INFO: ProcessCDR(1,14124148,1,1,2) [2024-12-28 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124148', 'tblTempUsageDetail_20' ) start [2024-12-28 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124148', 'tblTempUsageDetail_20' ) end [2024-12-28 21:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:02:24] Production.INFO: ==27807== Releasing lock... [2024-12-28 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:02:24] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:03:05 [end_date_ymd] => 2024-12-28 21:03:05 [RateCDR] => 1 ) [2024-12-28 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:03:05' and `end` < '2024-12-28 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:03:18] Production.INFO: count ==1037 [2024-12-28 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:03:05 - End Time 2024-12-28 21:03:05 [2024-12-28 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124153', 'tblTempUsageDetail_20' ) start [2024-12-28 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124153', 'tblTempUsageDetail_20' ) end [2024-12-28 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124153', 'tblTempVendorCDR_20' ) start [2024-12-28 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124153', 'tblTempVendorCDR_20' ) end [2024-12-28 21:03:18] Production.INFO: ProcessCDR(1,14124153,1,1,2) [2024-12-28 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124153', 'tblTempUsageDetail_20' ) start [2024-12-28 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124153', 'tblTempUsageDetail_20' ) end [2024-12-28 21:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:03:21] Production.INFO: ==27889== Releasing lock... [2024-12-28 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:03:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:04:05 [end_date_ymd] => 2024-12-28 21:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:04:05' and `end` < '2024-12-28 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-28 21:04:17] Production.INFO: count ==1040 [2024-12-28 21:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:04:05 - End Time 2024-12-28 21:04:05 [2024-12-28 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124158', 'tblTempUsageDetail_20' ) start [2024-12-28 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124158', 'tblTempUsageDetail_20' ) end [2024-12-28 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124158', 'tblTempVendorCDR_20' ) start [2024-12-28 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124158', 'tblTempVendorCDR_20' ) end [2024-12-28 21:04:17] Production.INFO: ProcessCDR(1,14124158,1,1,2) [2024-12-28 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124158', 'tblTempUsageDetail_20' ) start [2024-12-28 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124158', 'tblTempUsageDetail_20' ) end [2024-12-28 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:04:21] Production.INFO: ==27966== Releasing lock... [2024-12-28 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:04:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:05:05 [end_date_ymd] => 2024-12-28 21:05:05 [RateCDR] => 1 ) [2024-12-28 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:05:05' and `end` < '2024-12-28 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:05:18] Production.INFO: count ==1040 [2024-12-28 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:05:05 - End Time 2024-12-28 21:05:05 [2024-12-28 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124163', 'tblTempUsageDetail_20' ) start [2024-12-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124163', 'tblTempUsageDetail_20' ) end [2024-12-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124163', 'tblTempVendorCDR_20' ) start [2024-12-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124163', 'tblTempVendorCDR_20' ) end [2024-12-28 21:05:18] Production.INFO: ProcessCDR(1,14124163,1,1,2) [2024-12-28 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124163', 'tblTempUsageDetail_20' ) start [2024-12-28 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124163', 'tblTempUsageDetail_20' ) end [2024-12-28 21:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:05:21] Production.INFO: ==28052== Releasing lock... [2024-12-28 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:05:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:06:04 [end_date_ymd] => 2024-12-28 21:06:04 [RateCDR] => 1 ) [2024-12-28 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:06:04' and `end` < '2024-12-28 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:06:17] Production.INFO: count ==1040 [2024-12-28 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:06:04 - End Time 2024-12-28 21:06:04 [2024-12-28 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124168', 'tblTempUsageDetail_20' ) start [2024-12-28 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124168', 'tblTempUsageDetail_20' ) end [2024-12-28 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124168', 'tblTempVendorCDR_20' ) start [2024-12-28 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124168', 'tblTempVendorCDR_20' ) end [2024-12-28 21:06:17] Production.INFO: ProcessCDR(1,14124168,1,1,2) [2024-12-28 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124168', 'tblTempUsageDetail_20' ) start [2024-12-28 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124168', 'tblTempUsageDetail_20' ) end [2024-12-28 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:06:20] Production.INFO: ==28130== Releasing lock... [2024-12-28 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:06:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:07:05 [end_date_ymd] => 2024-12-28 21:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:07:05' and `end` < '2024-12-28 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-28 21:07:19] Production.INFO: count ==1038 [2024-12-28 21:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:07:05 - End Time 2024-12-28 21:07:05 [2024-12-28 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124173', 'tblTempUsageDetail_20' ) start [2024-12-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124173', 'tblTempUsageDetail_20' ) end [2024-12-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124173', 'tblTempVendorCDR_20' ) start [2024-12-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124173', 'tblTempVendorCDR_20' ) end [2024-12-28 21:07:19] Production.INFO: ProcessCDR(1,14124173,1,1,2) [2024-12-28 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124173', 'tblTempUsageDetail_20' ) start [2024-12-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124173', 'tblTempUsageDetail_20' ) end [2024-12-28 21:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:07:22] Production.INFO: ==28211== Releasing lock... [2024-12-28 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:07:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:08:06 [end_date_ymd] => 2024-12-28 21:08:06 [RateCDR] => 1 ) [2024-12-28 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:08:06' and `end` < '2024-12-28 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:08:19] Production.INFO: count ==1037 [2024-12-28 21:08:20] Production.ERROR: pbx CDR StartTime 2024-12-28 18:08:06 - End Time 2024-12-28 21:08:06 [2024-12-28 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124178', 'tblTempUsageDetail_20' ) start [2024-12-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124178', 'tblTempUsageDetail_20' ) end [2024-12-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124178', 'tblTempVendorCDR_20' ) start [2024-12-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124178', 'tblTempVendorCDR_20' ) end [2024-12-28 21:08:20] Production.INFO: ProcessCDR(1,14124178,1,1,2) [2024-12-28 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124178', 'tblTempUsageDetail_20' ) start [2024-12-28 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124178', 'tblTempUsageDetail_20' ) end [2024-12-28 21:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:08:23] Production.INFO: ==28299== Releasing lock... [2024-12-28 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:08:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:09:05 [end_date_ymd] => 2024-12-28 21:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:09:05' and `end` < '2024-12-28 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-28 21:09:18] Production.INFO: count ==1036 [2024-12-28 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:09:05 - End Time 2024-12-28 21:09:05 [2024-12-28 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124183', 'tblTempUsageDetail_20' ) start [2024-12-28 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124183', 'tblTempUsageDetail_20' ) end [2024-12-28 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124183', 'tblTempVendorCDR_20' ) start [2024-12-28 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124183', 'tblTempVendorCDR_20' ) end [2024-12-28 21:09:18] Production.INFO: ProcessCDR(1,14124183,1,1,2) [2024-12-28 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124183', 'tblTempUsageDetail_20' ) start [2024-12-28 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124183', 'tblTempUsageDetail_20' ) end [2024-12-28 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:09:22] Production.INFO: ==28387== Releasing lock... [2024-12-28 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:09:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:10:06 [end_date_ymd] => 2024-12-28 21:10:06 [RateCDR] => 1 ) [2024-12-28 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:10:06' and `end` < '2024-12-28 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:10:18] Production.INFO: count ==1041 [2024-12-28 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:10:06 - End Time 2024-12-28 21:10:06 [2024-12-28 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124189', 'tblTempUsageDetail_20' ) start [2024-12-28 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124189', 'tblTempUsageDetail_20' ) end [2024-12-28 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124189', 'tblTempVendorCDR_20' ) start [2024-12-28 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124189', 'tblTempVendorCDR_20' ) end [2024-12-28 21:10:18] Production.INFO: ProcessCDR(1,14124189,1,1,2) [2024-12-28 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124189', 'tblTempUsageDetail_20' ) start [2024-12-28 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124189', 'tblTempUsageDetail_20' ) end [2024-12-28 21:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:10:22] Production.INFO: ==28478== Releasing lock... [2024-12-28 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:10:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:11:05 [end_date_ymd] => 2024-12-28 21:11:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:11:05' and `end` < '2024-12-28 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-28 21:11:17] Production.INFO: count ==1027 [2024-12-28 21:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:11:05 - End Time 2024-12-28 21:11:05 [2024-12-28 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124194', 'tblTempUsageDetail_20' ) start [2024-12-28 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124194', 'tblTempUsageDetail_20' ) end [2024-12-28 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124194', 'tblTempVendorCDR_20' ) start [2024-12-28 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124194', 'tblTempVendorCDR_20' ) end [2024-12-28 21:11:17] Production.INFO: ProcessCDR(1,14124194,1,1,2) [2024-12-28 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124194', 'tblTempUsageDetail_20' ) start [2024-12-28 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124194', 'tblTempUsageDetail_20' ) end [2024-12-28 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:11:20] Production.INFO: ==28576== Releasing lock... [2024-12-28 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:11:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:12:05 [end_date_ymd] => 2024-12-28 21:12:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:12:05' and `end` < '2024-12-28 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-28 21:12:17] Production.INFO: count ==1025 [2024-12-28 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:12:05 - End Time 2024-12-28 21:12:05 [2024-12-28 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124199', 'tblTempUsageDetail_20' ) start [2024-12-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124199', 'tblTempUsageDetail_20' ) end [2024-12-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124199', 'tblTempVendorCDR_20' ) start [2024-12-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124199', 'tblTempVendorCDR_20' ) end [2024-12-28 21:12:18] Production.INFO: ProcessCDR(1,14124199,1,1,2) [2024-12-28 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124199', 'tblTempUsageDetail_20' ) start [2024-12-28 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124199', 'tblTempUsageDetail_20' ) end [2024-12-28 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:12:21] Production.INFO: ==28675== Releasing lock... [2024-12-28 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:12:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:13:04 [end_date_ymd] => 2024-12-28 21:13:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:13:04' and `end` < '2024-12-28 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-28 21:13:17] Production.INFO: count ==1025 [2024-12-28 21:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:13:04 - End Time 2024-12-28 21:13:04 [2024-12-28 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124204', 'tblTempUsageDetail_20' ) start [2024-12-28 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124204', 'tblTempUsageDetail_20' ) end [2024-12-28 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124204', 'tblTempVendorCDR_20' ) start [2024-12-28 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124204', 'tblTempVendorCDR_20' ) end [2024-12-28 21:13:17] Production.INFO: ProcessCDR(1,14124204,1,1,2) [2024-12-28 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124204', 'tblTempUsageDetail_20' ) start [2024-12-28 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124204', 'tblTempUsageDetail_20' ) end [2024-12-28 21:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:13:20] Production.INFO: ==28769== Releasing lock... [2024-12-28 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:13:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:14:06 [end_date_ymd] => 2024-12-28 21:14:06 [RateCDR] => 1 ) [2024-12-28 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:14:06' and `end` < '2024-12-28 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:14:18] Production.INFO: count ==1021 [2024-12-28 21:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:14:06 - End Time 2024-12-28 21:14:06 [2024-12-28 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124209', 'tblTempUsageDetail_20' ) start [2024-12-28 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124209', 'tblTempUsageDetail_20' ) end [2024-12-28 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124209', 'tblTempVendorCDR_20' ) start [2024-12-28 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124209', 'tblTempVendorCDR_20' ) end [2024-12-28 21:14:18] Production.INFO: ProcessCDR(1,14124209,1,1,2) [2024-12-28 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124209', 'tblTempUsageDetail_20' ) start [2024-12-28 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124209', 'tblTempUsageDetail_20' ) end [2024-12-28 21:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:14:22] Production.INFO: ==28863== Releasing lock... [2024-12-28 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:14:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:15:04 [end_date_ymd] => 2024-12-28 21:15:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:15:04' and `end` < '2024-12-28 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-28 21:15:17] Production.INFO: count ==1022 [2024-12-28 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:15:04 - End Time 2024-12-28 21:15:04 [2024-12-28 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124214', 'tblTempUsageDetail_20' ) start [2024-12-28 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124214', 'tblTempUsageDetail_20' ) end [2024-12-28 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124214', 'tblTempVendorCDR_20' ) start [2024-12-28 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124214', 'tblTempVendorCDR_20' ) end [2024-12-28 21:15:17] Production.INFO: ProcessCDR(1,14124214,1,1,2) [2024-12-28 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124214', 'tblTempUsageDetail_20' ) start [2024-12-28 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124214', 'tblTempUsageDetail_20' ) end [2024-12-28 21:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:15:22] Production.INFO: ==29001== Releasing lock... [2024-12-28 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:15:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:16:05 [end_date_ymd] => 2024-12-28 21:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:16:05' and `end` < '2024-12-28 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-28 21:16:17] Production.INFO: count ==1018 [2024-12-28 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:16:05 - End Time 2024-12-28 21:16:05 [2024-12-28 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124219', 'tblTempUsageDetail_20' ) start [2024-12-28 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124219', 'tblTempUsageDetail_20' ) end [2024-12-28 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124219', 'tblTempVendorCDR_20' ) start [2024-12-28 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124219', 'tblTempVendorCDR_20' ) end [2024-12-28 21:16:18] Production.INFO: ProcessCDR(1,14124219,1,1,2) [2024-12-28 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124219', 'tblTempUsageDetail_20' ) start [2024-12-28 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124219', 'tblTempUsageDetail_20' ) end [2024-12-28 21:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:16:21] Production.INFO: ==29103== Releasing lock... [2024-12-28 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:16:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:17:04 [end_date_ymd] => 2024-12-28 21:17:04 [RateCDR] => 1 ) [2024-12-28 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:17:04' and `end` < '2024-12-28 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:17:19] Production.INFO: count ==1015 [2024-12-28 21:17:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:17:04 - End Time 2024-12-28 21:17:04 [2024-12-28 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124224', 'tblTempUsageDetail_20' ) start [2024-12-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124224', 'tblTempUsageDetail_20' ) end [2024-12-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124224', 'tblTempVendorCDR_20' ) start [2024-12-28 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124224', 'tblTempVendorCDR_20' ) end [2024-12-28 21:17:20] Production.INFO: ProcessCDR(1,14124224,1,1,2) [2024-12-28 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124224', 'tblTempUsageDetail_20' ) start [2024-12-28 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124224', 'tblTempUsageDetail_20' ) end [2024-12-28 21:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:17:23] Production.INFO: ==29208== Releasing lock... [2024-12-28 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:17:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:18:05 [end_date_ymd] => 2024-12-28 21:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:18:05' and `end` < '2024-12-28 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-28 21:18:19] Production.INFO: count ==1014 [2024-12-28 21:18:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:18:05 - End Time 2024-12-28 21:18:05 [2024-12-28 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124229', 'tblTempUsageDetail_20' ) start [2024-12-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124229', 'tblTempUsageDetail_20' ) end [2024-12-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124229', 'tblTempVendorCDR_20' ) start [2024-12-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124229', 'tblTempVendorCDR_20' ) end [2024-12-28 21:18:19] Production.INFO: ProcessCDR(1,14124229,1,1,2) [2024-12-28 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124229', 'tblTempUsageDetail_20' ) start [2024-12-28 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124229', 'tblTempUsageDetail_20' ) end [2024-12-28 21:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:18:22] Production.INFO: ==29308== Releasing lock... [2024-12-28 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:18:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:19:04 [end_date_ymd] => 2024-12-28 21:19:04 [RateCDR] => 1 ) [2024-12-28 21:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:19:04' and `end` < '2024-12-28 21:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:19:17] Production.INFO: count ==1014 [2024-12-28 21:19:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:19:04 - End Time 2024-12-28 21:19:04 [2024-12-28 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124234', 'tblTempUsageDetail_20' ) start [2024-12-28 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124234', 'tblTempUsageDetail_20' ) end [2024-12-28 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124234', 'tblTempVendorCDR_20' ) start [2024-12-28 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124234', 'tblTempVendorCDR_20' ) end [2024-12-28 21:19:17] Production.INFO: ProcessCDR(1,14124234,1,1,2) [2024-12-28 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124234', 'tblTempUsageDetail_20' ) start [2024-12-28 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124234', 'tblTempUsageDetail_20' ) end [2024-12-28 21:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:19:20] Production.INFO: ==29405== Releasing lock... [2024-12-28 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:19:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:20:05 [end_date_ymd] => 2024-12-28 21:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:20:05' and `end` < '2024-12-28 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-28 21:20:18] Production.INFO: count ==1014 [2024-12-28 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:20:05 - End Time 2024-12-28 21:20:05 [2024-12-28 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124240', 'tblTempUsageDetail_20' ) start [2024-12-28 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124240', 'tblTempUsageDetail_20' ) end [2024-12-28 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124240', 'tblTempVendorCDR_20' ) start [2024-12-28 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124240', 'tblTempVendorCDR_20' ) end [2024-12-28 21:20:18] Production.INFO: ProcessCDR(1,14124240,1,1,2) [2024-12-28 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124240', 'tblTempUsageDetail_20' ) start [2024-12-28 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124240', 'tblTempUsageDetail_20' ) end [2024-12-28 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:20:21] Production.INFO: ==29517== Releasing lock... [2024-12-28 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:20:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-28 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:21:05 [end_date_ymd] => 2024-12-28 21:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:21:05' and `end` < '2024-12-28 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-28 21:21:18] Production.INFO: count ==988 [2024-12-28 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:21:05 - End Time 2024-12-28 21:21:05 [2024-12-28 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124245', 'tblTempUsageDetail_20' ) start [2024-12-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124245', 'tblTempUsageDetail_20' ) end [2024-12-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124245', 'tblTempVendorCDR_20' ) start [2024-12-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124245', 'tblTempVendorCDR_20' ) end [2024-12-28 21:21:18] Production.INFO: ProcessCDR(1,14124245,1,1,2) [2024-12-28 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124245', 'tblTempUsageDetail_20' ) start [2024-12-28 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124245', 'tblTempUsageDetail_20' ) end [2024-12-28 21:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:21:21] Production.INFO: ==29615== Releasing lock... [2024-12-28 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:21:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:22:05 [end_date_ymd] => 2024-12-28 21:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:22:05' and `end` < '2024-12-28 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-28 21:22:18] Production.INFO: count ==989 [2024-12-28 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:22:05 - End Time 2024-12-28 21:22:05 [2024-12-28 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124250', 'tblTempUsageDetail_20' ) start [2024-12-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124250', 'tblTempUsageDetail_20' ) end [2024-12-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124250', 'tblTempVendorCDR_20' ) start [2024-12-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124250', 'tblTempVendorCDR_20' ) end [2024-12-28 21:22:18] Production.INFO: ProcessCDR(1,14124250,1,1,2) [2024-12-28 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124250', 'tblTempUsageDetail_20' ) start [2024-12-28 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124250', 'tblTempUsageDetail_20' ) end [2024-12-28 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:22:21] Production.INFO: ==29716== Releasing lock... [2024-12-28 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:22:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:23:05 [end_date_ymd] => 2024-12-28 21:23:05 [RateCDR] => 1 ) [2024-12-28 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:23:05' and `end` < '2024-12-28 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:23:18] Production.INFO: count ==992 [2024-12-28 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:23:05 - End Time 2024-12-28 21:23:05 [2024-12-28 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124255', 'tblTempUsageDetail_20' ) start [2024-12-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124255', 'tblTempUsageDetail_20' ) end [2024-12-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124255', 'tblTempVendorCDR_20' ) start [2024-12-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124255', 'tblTempVendorCDR_20' ) end [2024-12-28 21:23:18] Production.INFO: ProcessCDR(1,14124255,1,1,2) [2024-12-28 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124255', 'tblTempUsageDetail_20' ) start [2024-12-28 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124255', 'tblTempUsageDetail_20' ) end [2024-12-28 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:23:21] Production.INFO: ==29816== Releasing lock... [2024-12-28 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:23:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:24:05 [end_date_ymd] => 2024-12-28 21:24:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:24:05' and `end` < '2024-12-28 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-28 21:24:18] Production.INFO: count ==993 [2024-12-28 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:24:05 - End Time 2024-12-28 21:24:05 [2024-12-28 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124260', 'tblTempUsageDetail_20' ) start [2024-12-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124260', 'tblTempUsageDetail_20' ) end [2024-12-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124260', 'tblTempVendorCDR_20' ) start [2024-12-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124260', 'tblTempVendorCDR_20' ) end [2024-12-28 21:24:18] Production.INFO: ProcessCDR(1,14124260,1,1,2) [2024-12-28 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124260', 'tblTempUsageDetail_20' ) start [2024-12-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124260', 'tblTempUsageDetail_20' ) end [2024-12-28 21:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:24:22] Production.INFO: ==29923== Releasing lock... [2024-12-28 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:24:22] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:25:05 [end_date_ymd] => 2024-12-28 21:25:05 [RateCDR] => 1 ) [2024-12-28 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:25:05' and `end` < '2024-12-28 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:25:18] Production.INFO: count ==993 [2024-12-28 21:25:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:25:05 - End Time 2024-12-28 21:25:05 [2024-12-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124265', 'tblTempUsageDetail_20' ) start [2024-12-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124265', 'tblTempUsageDetail_20' ) end [2024-12-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124265', 'tblTempVendorCDR_20' ) start [2024-12-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124265', 'tblTempVendorCDR_20' ) end [2024-12-28 21:25:18] Production.INFO: ProcessCDR(1,14124265,1,1,2) [2024-12-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124265', 'tblTempUsageDetail_20' ) start [2024-12-28 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124265', 'tblTempUsageDetail_20' ) end [2024-12-28 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:25:21] Production.INFO: ==30021== Releasing lock... [2024-12-28 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:25:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:26:05 [end_date_ymd] => 2024-12-28 21:26:05 [RateCDR] => 1 ) [2024-12-28 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:26:05' and `end` < '2024-12-28 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:26:18] Production.INFO: count ==993 [2024-12-28 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:26:05 - End Time 2024-12-28 21:26:05 [2024-12-28 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124270', 'tblTempUsageDetail_20' ) start [2024-12-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124270', 'tblTempUsageDetail_20' ) end [2024-12-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124270', 'tblTempVendorCDR_20' ) start [2024-12-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124270', 'tblTempVendorCDR_20' ) end [2024-12-28 21:26:18] Production.INFO: ProcessCDR(1,14124270,1,1,2) [2024-12-28 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124270', 'tblTempUsageDetail_20' ) start [2024-12-28 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124270', 'tblTempUsageDetail_20' ) end [2024-12-28 21:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:26:23] Production.INFO: ==30123== Releasing lock... [2024-12-28 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:26:23] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:27:05 [end_date_ymd] => 2024-12-28 21:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:27:05' and `end` < '2024-12-28 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-28 21:27:18] Production.INFO: count ==992 [2024-12-28 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:27:05 - End Time 2024-12-28 21:27:05 [2024-12-28 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124275', 'tblTempUsageDetail_20' ) start [2024-12-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124275', 'tblTempUsageDetail_20' ) end [2024-12-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124275', 'tblTempVendorCDR_20' ) start [2024-12-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124275', 'tblTempVendorCDR_20' ) end [2024-12-28 21:27:18] Production.INFO: ProcessCDR(1,14124275,1,1,2) [2024-12-28 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124275', 'tblTempUsageDetail_20' ) start [2024-12-28 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124275', 'tblTempUsageDetail_20' ) end [2024-12-28 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:27:21] Production.INFO: ==30222== Releasing lock... [2024-12-28 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:27:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:28:04 [end_date_ymd] => 2024-12-28 21:28:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:28:04' and `end` < '2024-12-28 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-28 21:28:17] Production.INFO: count ==992 [2024-12-28 21:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:28:04 - End Time 2024-12-28 21:28:04 [2024-12-28 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124280', 'tblTempUsageDetail_20' ) start [2024-12-28 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124280', 'tblTempUsageDetail_20' ) end [2024-12-28 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124280', 'tblTempVendorCDR_20' ) start [2024-12-28 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124280', 'tblTempVendorCDR_20' ) end [2024-12-28 21:28:17] Production.INFO: ProcessCDR(1,14124280,1,1,2) [2024-12-28 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124280', 'tblTempUsageDetail_20' ) start [2024-12-28 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124280', 'tblTempUsageDetail_20' ) end [2024-12-28 21:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:28:21] Production.INFO: ==30321== Releasing lock... [2024-12-28 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:28:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:29:05 [end_date_ymd] => 2024-12-28 21:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:29:05' and `end` < '2024-12-28 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-28 21:29:18] Production.INFO: count ==990 [2024-12-28 21:29:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:29:05 - End Time 2024-12-28 21:29:05 [2024-12-28 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124285', 'tblTempUsageDetail_20' ) start [2024-12-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124285', 'tblTempUsageDetail_20' ) end [2024-12-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124285', 'tblTempVendorCDR_20' ) start [2024-12-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124285', 'tblTempVendorCDR_20' ) end [2024-12-28 21:29:18] Production.INFO: ProcessCDR(1,14124285,1,1,2) [2024-12-28 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124285', 'tblTempUsageDetail_20' ) start [2024-12-28 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124285', 'tblTempUsageDetail_20' ) end [2024-12-28 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:29:21] Production.INFO: ==30420== Releasing lock... [2024-12-28 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:29:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:30:05 [end_date_ymd] => 2024-12-28 21:30:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:30:05' and `end` < '2024-12-28 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-28 21:30:18] Production.INFO: count ==987 [2024-12-28 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:30:05 - End Time 2024-12-28 21:30:05 [2024-12-28 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124291', 'tblTempUsageDetail_20' ) start [2024-12-28 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124291', 'tblTempUsageDetail_20' ) end [2024-12-28 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124291', 'tblTempVendorCDR_20' ) start [2024-12-28 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124291', 'tblTempVendorCDR_20' ) end [2024-12-28 21:30:18] Production.INFO: ProcessCDR(1,14124291,1,1,2) [2024-12-28 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124291', 'tblTempUsageDetail_20' ) start [2024-12-28 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124291', 'tblTempUsageDetail_20' ) end [2024-12-28 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:30:21] Production.INFO: ==30524== Releasing lock... [2024-12-28 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:30:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:31:05 [end_date_ymd] => 2024-12-28 21:31:05 [RateCDR] => 1 ) [2024-12-28 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:31:05' and `end` < '2024-12-28 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:31:18] Production.INFO: count ==979 [2024-12-28 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:31:05 - End Time 2024-12-28 21:31:05 [2024-12-28 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124296', 'tblTempUsageDetail_20' ) start [2024-12-28 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124296', 'tblTempUsageDetail_20' ) end [2024-12-28 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124296', 'tblTempVendorCDR_20' ) start [2024-12-28 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124296', 'tblTempVendorCDR_20' ) end [2024-12-28 21:31:18] Production.INFO: ProcessCDR(1,14124296,1,1,2) [2024-12-28 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124296', 'tblTempUsageDetail_20' ) start [2024-12-28 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124296', 'tblTempUsageDetail_20' ) end [2024-12-28 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:31:21] Production.INFO: ==30676== Releasing lock... [2024-12-28 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:31:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:32:04 [end_date_ymd] => 2024-12-28 21:32:04 [RateCDR] => 1 ) [2024-12-28 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:32:04' and `end` < '2024-12-28 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:32:17] Production.INFO: count ==980 [2024-12-28 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:32:04 - End Time 2024-12-28 21:32:04 [2024-12-28 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124301', 'tblTempUsageDetail_20' ) start [2024-12-28 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124301', 'tblTempUsageDetail_20' ) end [2024-12-28 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124301', 'tblTempVendorCDR_20' ) start [2024-12-28 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124301', 'tblTempVendorCDR_20' ) end [2024-12-28 21:32:17] Production.INFO: ProcessCDR(1,14124301,1,1,2) [2024-12-28 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124301', 'tblTempUsageDetail_20' ) start [2024-12-28 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124301', 'tblTempUsageDetail_20' ) end [2024-12-28 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:32:21] Production.INFO: ==30783== Releasing lock... [2024-12-28 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:32:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:33:05 [end_date_ymd] => 2024-12-28 21:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:33:05' and `end` < '2024-12-28 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-28 21:33:17] Production.INFO: count ==983 [2024-12-28 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:33:05 - End Time 2024-12-28 21:33:05 [2024-12-28 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124306', 'tblTempUsageDetail_20' ) start [2024-12-28 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124306', 'tblTempUsageDetail_20' ) end [2024-12-28 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124306', 'tblTempVendorCDR_20' ) start [2024-12-28 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124306', 'tblTempVendorCDR_20' ) end [2024-12-28 21:33:17] Production.INFO: ProcessCDR(1,14124306,1,1,2) [2024-12-28 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124306', 'tblTempUsageDetail_20' ) start [2024-12-28 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124306', 'tblTempUsageDetail_20' ) end [2024-12-28 21:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:33:20] Production.INFO: ==30880== Releasing lock... [2024-12-28 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:33:20] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:34:04 [end_date_ymd] => 2024-12-28 21:34:04 [RateCDR] => 1 ) [2024-12-28 21: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-28 18:34:04' and `end` < '2024-12-28 21: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-28 21:34:18] Production.INFO: count ==985 [2024-12-28 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:34:04 - End Time 2024-12-28 21:34:04 [2024-12-28 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124311', 'tblTempUsageDetail_20' ) start [2024-12-28 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124311', 'tblTempUsageDetail_20' ) end [2024-12-28 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124311', 'tblTempVendorCDR_20' ) start [2024-12-28 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124311', 'tblTempVendorCDR_20' ) end [2024-12-28 21:34:18] Production.INFO: ProcessCDR(1,14124311,1,1,2) [2024-12-28 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124311', 'tblTempUsageDetail_20' ) start [2024-12-28 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124311', 'tblTempUsageDetail_20' ) end [2024-12-28 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:34:22] Production.INFO: ==30979== Releasing lock... [2024-12-28 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:34:22] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:35:05 [end_date_ymd] => 2024-12-28 21:35:05 [RateCDR] => 1 ) [2024-12-28 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:35:05' and `end` < '2024-12-28 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:35:18] Production.INFO: count ==985 [2024-12-28 21:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:35:05 - End Time 2024-12-28 21:35:05 [2024-12-28 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124316', 'tblTempUsageDetail_20' ) start [2024-12-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124316', 'tblTempUsageDetail_20' ) end [2024-12-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124316', 'tblTempVendorCDR_20' ) start [2024-12-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124316', 'tblTempVendorCDR_20' ) end [2024-12-28 21:35:18] Production.INFO: ProcessCDR(1,14124316,1,1,2) [2024-12-28 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124316', 'tblTempUsageDetail_20' ) start [2024-12-28 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124316', 'tblTempUsageDetail_20' ) end [2024-12-28 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:35:21] Production.INFO: ==31079== Releasing lock... [2024-12-28 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:35:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:36:04 [end_date_ymd] => 2024-12-28 21:36:04 [RateCDR] => 1 ) [2024-12-28 21: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-28 18:36:04' and `end` < '2024-12-28 21: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-28 21:36:17] Production.INFO: count ==985 [2024-12-28 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:36:04 - End Time 2024-12-28 21:36:04 [2024-12-28 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124321', 'tblTempUsageDetail_20' ) start [2024-12-28 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124321', 'tblTempUsageDetail_20' ) end [2024-12-28 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124321', 'tblTempVendorCDR_20' ) start [2024-12-28 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124321', 'tblTempVendorCDR_20' ) end [2024-12-28 21:36:17] Production.INFO: ProcessCDR(1,14124321,1,1,2) [2024-12-28 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124321', 'tblTempUsageDetail_20' ) start [2024-12-28 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124321', 'tblTempUsageDetail_20' ) end [2024-12-28 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:36:20] Production.INFO: ==31175== Releasing lock... [2024-12-28 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:36:20] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:37:05 [end_date_ymd] => 2024-12-28 21:37:05 [RateCDR] => 1 ) [2024-12-28 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:37:05' and `end` < '2024-12-28 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:37:18] Production.INFO: count ==984 [2024-12-28 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:37:05 - End Time 2024-12-28 21:37:05 [2024-12-28 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124326', 'tblTempUsageDetail_20' ) start [2024-12-28 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124326', 'tblTempUsageDetail_20' ) end [2024-12-28 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124326', 'tblTempVendorCDR_20' ) start [2024-12-28 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124326', 'tblTempVendorCDR_20' ) end [2024-12-28 21:37:18] Production.INFO: ProcessCDR(1,14124326,1,1,2) [2024-12-28 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124326', 'tblTempUsageDetail_20' ) start [2024-12-28 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124326', 'tblTempUsageDetail_20' ) end [2024-12-28 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:37:21] Production.INFO: ==31268== Releasing lock... [2024-12-28 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:37:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:38:05 [end_date_ymd] => 2024-12-28 21:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:38:05' and `end` < '2024-12-28 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-28 21:38:18] Production.INFO: count ==985 [2024-12-28 21:38:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:38:05 - End Time 2024-12-28 21:38:05 [2024-12-28 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124331', 'tblTempUsageDetail_20' ) start [2024-12-28 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124331', 'tblTempUsageDetail_20' ) end [2024-12-28 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124331', 'tblTempVendorCDR_20' ) start [2024-12-28 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124331', 'tblTempVendorCDR_20' ) end [2024-12-28 21:38:19] Production.INFO: ProcessCDR(1,14124331,1,1,2) [2024-12-28 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124331', 'tblTempUsageDetail_20' ) start [2024-12-28 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124331', 'tblTempUsageDetail_20' ) end [2024-12-28 21:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:38:23] Production.INFO: ==31353== Releasing lock... [2024-12-28 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:38:23] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:39:05 [end_date_ymd] => 2024-12-28 21:39:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:39:05' and `end` < '2024-12-28 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-28 21:39:17] Production.INFO: count ==985 [2024-12-28 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:39:05 - End Time 2024-12-28 21:39:05 [2024-12-28 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124336', 'tblTempUsageDetail_20' ) start [2024-12-28 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124336', 'tblTempUsageDetail_20' ) end [2024-12-28 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124336', 'tblTempVendorCDR_20' ) start [2024-12-28 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124336', 'tblTempVendorCDR_20' ) end [2024-12-28 21:39:17] Production.INFO: ProcessCDR(1,14124336,1,1,2) [2024-12-28 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124336', 'tblTempUsageDetail_20' ) start [2024-12-28 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124336', 'tblTempUsageDetail_20' ) end [2024-12-28 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:39:20] Production.INFO: ==31446== Releasing lock... [2024-12-28 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:39:20] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:40:06 [end_date_ymd] => 2024-12-28 21:40:06 [RateCDR] => 1 ) [2024-12-28 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:40:06' and `end` < '2024-12-28 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:40:18] Production.INFO: count ==985 [2024-12-28 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:40:06 - End Time 2024-12-28 21:40:06 [2024-12-28 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124342', 'tblTempUsageDetail_20' ) start [2024-12-28 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124342', 'tblTempUsageDetail_20' ) end [2024-12-28 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124342', 'tblTempVendorCDR_20' ) start [2024-12-28 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124342', 'tblTempVendorCDR_20' ) end [2024-12-28 21:40:18] Production.INFO: ProcessCDR(1,14124342,1,1,2) [2024-12-28 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124342', 'tblTempUsageDetail_20' ) start [2024-12-28 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124342', 'tblTempUsageDetail_20' ) end [2024-12-28 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:40:21] Production.INFO: ==31531== Releasing lock... [2024-12-28 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:40:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:41:05 [end_date_ymd] => 2024-12-28 21:41:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:41:05' and `end` < '2024-12-28 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-28 21:41:18] Production.INFO: count ==974 [2024-12-28 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:41:05 - End Time 2024-12-28 21:41:05 [2024-12-28 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124347', 'tblTempUsageDetail_20' ) start [2024-12-28 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124347', 'tblTempUsageDetail_20' ) end [2024-12-28 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124347', 'tblTempVendorCDR_20' ) start [2024-12-28 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124347', 'tblTempVendorCDR_20' ) end [2024-12-28 21:41:18] Production.INFO: ProcessCDR(1,14124347,1,1,2) [2024-12-28 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124347', 'tblTempUsageDetail_20' ) start [2024-12-28 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124347', 'tblTempUsageDetail_20' ) end [2024-12-28 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:41:21] Production.INFO: ==31617== Releasing lock... [2024-12-28 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:41:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:42:05 [end_date_ymd] => 2024-12-28 21:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:42:05' and `end` < '2024-12-28 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-28 21:42:18] Production.INFO: count ==974 [2024-12-28 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:42:05 - End Time 2024-12-28 21:42:05 [2024-12-28 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124352', 'tblTempUsageDetail_20' ) start [2024-12-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124352', 'tblTempUsageDetail_20' ) end [2024-12-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124352', 'tblTempVendorCDR_20' ) start [2024-12-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124352', 'tblTempVendorCDR_20' ) end [2024-12-28 21:42:18] Production.INFO: ProcessCDR(1,14124352,1,1,2) [2024-12-28 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124352', 'tblTempUsageDetail_20' ) start [2024-12-28 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124352', 'tblTempUsageDetail_20' ) end [2024-12-28 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:42:21] Production.INFO: ==31703== Releasing lock... [2024-12-28 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:42:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:43:04 [end_date_ymd] => 2024-12-28 21:43:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:43:04' and `end` < '2024-12-28 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-28 21:43:17] Production.INFO: count ==973 [2024-12-28 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:43:04 - End Time 2024-12-28 21:43:04 [2024-12-28 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124357', 'tblTempUsageDetail_20' ) start [2024-12-28 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124357', 'tblTempUsageDetail_20' ) end [2024-12-28 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124357', 'tblTempVendorCDR_20' ) start [2024-12-28 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124357', 'tblTempVendorCDR_20' ) end [2024-12-28 21:43:17] Production.INFO: ProcessCDR(1,14124357,1,1,2) [2024-12-28 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124357', 'tblTempUsageDetail_20' ) start [2024-12-28 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124357', 'tblTempUsageDetail_20' ) end [2024-12-28 21:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:43:20] Production.INFO: ==31792== Releasing lock... [2024-12-28 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:43:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:44:05 [end_date_ymd] => 2024-12-28 21:44:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:44:05' and `end` < '2024-12-28 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-28 21:44:19] Production.INFO: count ==974 [2024-12-28 21:44:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:44:05 - End Time 2024-12-28 21:44:05 [2024-12-28 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124362', 'tblTempUsageDetail_20' ) start [2024-12-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124362', 'tblTempUsageDetail_20' ) end [2024-12-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124362', 'tblTempVendorCDR_20' ) start [2024-12-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124362', 'tblTempVendorCDR_20' ) end [2024-12-28 21:44:19] Production.INFO: ProcessCDR(1,14124362,1,1,2) [2024-12-28 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124362', 'tblTempUsageDetail_20' ) start [2024-12-28 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124362', 'tblTempUsageDetail_20' ) end [2024-12-28 21:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:44:23] Production.INFO: ==31877== Releasing lock... [2024-12-28 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:44:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:45:04 [end_date_ymd] => 2024-12-28 21:45:04 [RateCDR] => 1 ) [2024-12-28 21: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-28 18:45:04' and `end` < '2024-12-28 21: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-28 21:45:17] Production.INFO: count ==974 [2024-12-28 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:45:04 - End Time 2024-12-28 21:45:04 [2024-12-28 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124367', 'tblTempUsageDetail_20' ) start [2024-12-28 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124367', 'tblTempUsageDetail_20' ) end [2024-12-28 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124367', 'tblTempVendorCDR_20' ) start [2024-12-28 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124367', 'tblTempVendorCDR_20' ) end [2024-12-28 21:45:17] Production.INFO: ProcessCDR(1,14124367,1,1,2) [2024-12-28 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124367', 'tblTempUsageDetail_20' ) start [2024-12-28 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124367', 'tblTempUsageDetail_20' ) end [2024-12-28 21:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:45:20] Production.INFO: ==31961== Releasing lock... [2024-12-28 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:45:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:46:05 [end_date_ymd] => 2024-12-28 21:46:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:46:05' and `end` < '2024-12-28 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-28 21:46:17] Production.INFO: count ==972 [2024-12-28 21:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:46:05 - End Time 2024-12-28 21:46:05 [2024-12-28 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124372', 'tblTempUsageDetail_20' ) start [2024-12-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124372', 'tblTempUsageDetail_20' ) end [2024-12-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124372', 'tblTempVendorCDR_20' ) start [2024-12-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124372', 'tblTempVendorCDR_20' ) end [2024-12-28 21:46:18] Production.INFO: ProcessCDR(1,14124372,1,1,2) [2024-12-28 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124372', 'tblTempUsageDetail_20' ) start [2024-12-28 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124372', 'tblTempUsageDetail_20' ) end [2024-12-28 21:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:46:21] Production.INFO: ==32098== Releasing lock... [2024-12-28 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:46:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:47:05 [end_date_ymd] => 2024-12-28 21:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:47:05' and `end` < '2024-12-28 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-28 21:47:17] Production.INFO: count ==972 [2024-12-28 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:47:05 - End Time 2024-12-28 21:47:05 [2024-12-28 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124377', 'tblTempUsageDetail_20' ) start [2024-12-28 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124377', 'tblTempUsageDetail_20' ) end [2024-12-28 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124377', 'tblTempVendorCDR_20' ) start [2024-12-28 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124377', 'tblTempVendorCDR_20' ) end [2024-12-28 21:47:17] Production.INFO: ProcessCDR(1,14124377,1,1,2) [2024-12-28 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124377', 'tblTempUsageDetail_20' ) start [2024-12-28 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124377', 'tblTempUsageDetail_20' ) end [2024-12-28 21:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:47:21] Production.INFO: ==32183== Releasing lock... [2024-12-28 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:47:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:48:05 [end_date_ymd] => 2024-12-28 21:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:48:05' and `end` < '2024-12-28 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-28 21:48:19] Production.INFO: count ==975 [2024-12-28 21:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:48:05 - End Time 2024-12-28 21:48:05 [2024-12-28 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124382', 'tblTempUsageDetail_20' ) start [2024-12-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124382', 'tblTempUsageDetail_20' ) end [2024-12-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124382', 'tblTempVendorCDR_20' ) start [2024-12-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124382', 'tblTempVendorCDR_20' ) end [2024-12-28 21:48:19] Production.INFO: ProcessCDR(1,14124382,1,1,2) [2024-12-28 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124382', 'tblTempUsageDetail_20' ) start [2024-12-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124382', 'tblTempUsageDetail_20' ) end [2024-12-28 21:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:48:23] Production.INFO: ==32275== Releasing lock... [2024-12-28 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:48:23] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:49:05 [end_date_ymd] => 2024-12-28 21:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:49:05' and `end` < '2024-12-28 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-28 21:49:18] Production.INFO: count ==974 [2024-12-28 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:49:05 - End Time 2024-12-28 21:49:05 [2024-12-28 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124387', 'tblTempUsageDetail_20' ) start [2024-12-28 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124387', 'tblTempUsageDetail_20' ) end [2024-12-28 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124387', 'tblTempVendorCDR_20' ) start [2024-12-28 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124387', 'tblTempVendorCDR_20' ) end [2024-12-28 21:49:18] Production.INFO: ProcessCDR(1,14124387,1,1,2) [2024-12-28 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124387', 'tblTempUsageDetail_20' ) start [2024-12-28 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124387', 'tblTempUsageDetail_20' ) end [2024-12-28 21:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:49:22] Production.INFO: ==32365== Releasing lock... [2024-12-28 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:49:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:50:05 [end_date_ymd] => 2024-12-28 21:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:50:05' and `end` < '2024-12-28 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-28 21:50:18] Production.INFO: count ==975 [2024-12-28 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:50:05 - End Time 2024-12-28 21:50:05 [2024-12-28 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124393', 'tblTempUsageDetail_20' ) start [2024-12-28 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124393', 'tblTempUsageDetail_20' ) end [2024-12-28 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124393', 'tblTempVendorCDR_20' ) start [2024-12-28 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124393', 'tblTempVendorCDR_20' ) end [2024-12-28 21:50:18] Production.INFO: ProcessCDR(1,14124393,1,1,2) [2024-12-28 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124393', 'tblTempUsageDetail_20' ) start [2024-12-28 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124393', 'tblTempUsageDetail_20' ) end [2024-12-28 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:50:21] Production.INFO: ==32455== Releasing lock... [2024-12-28 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:50:21] Production.INFO: 35 MB #Memory Used# [2024-12-28 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:51:05 [end_date_ymd] => 2024-12-28 21:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:51:05' and `end` < '2024-12-28 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-28 21:51:17] Production.INFO: count ==946 [2024-12-28 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:51:05 - End Time 2024-12-28 21:51:05 [2024-12-28 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124398', 'tblTempUsageDetail_20' ) start [2024-12-28 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124398', 'tblTempUsageDetail_20' ) end [2024-12-28 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124398', 'tblTempVendorCDR_20' ) start [2024-12-28 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124398', 'tblTempVendorCDR_20' ) end [2024-12-28 21:51:17] Production.INFO: ProcessCDR(1,14124398,1,1,2) [2024-12-28 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124398', 'tblTempUsageDetail_20' ) start [2024-12-28 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124398', 'tblTempUsageDetail_20' ) end [2024-12-28 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:51:20] Production.INFO: ==32553== Releasing lock... [2024-12-28 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:51:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:52:04 [end_date_ymd] => 2024-12-28 21:52:04 [RateCDR] => 1 ) [2024-12-28 21: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-28 18:52:04' and `end` < '2024-12-28 21: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-28 21:52:18] Production.INFO: count ==946 [2024-12-28 21:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:52:04 - End Time 2024-12-28 21:52:04 [2024-12-28 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124403', 'tblTempUsageDetail_20' ) start [2024-12-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124403', 'tblTempUsageDetail_20' ) end [2024-12-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124403', 'tblTempVendorCDR_20' ) start [2024-12-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124403', 'tblTempVendorCDR_20' ) end [2024-12-28 21:52:18] Production.INFO: ProcessCDR(1,14124403,1,1,2) [2024-12-28 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124403', 'tblTempUsageDetail_20' ) start [2024-12-28 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124403', 'tblTempUsageDetail_20' ) end [2024-12-28 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:52:21] Production.INFO: ==32636== Releasing lock... [2024-12-28 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:52:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:53:05 [end_date_ymd] => 2024-12-28 21:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:53:05' and `end` < '2024-12-28 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-28 21:53:18] Production.INFO: count ==946 [2024-12-28 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:53:05 - End Time 2024-12-28 21:53:05 [2024-12-28 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124408', 'tblTempUsageDetail_20' ) start [2024-12-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124408', 'tblTempUsageDetail_20' ) end [2024-12-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124408', 'tblTempVendorCDR_20' ) start [2024-12-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124408', 'tblTempVendorCDR_20' ) end [2024-12-28 21:53:18] Production.INFO: ProcessCDR(1,14124408,1,1,2) [2024-12-28 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124408', 'tblTempUsageDetail_20' ) start [2024-12-28 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124408', 'tblTempUsageDetail_20' ) end [2024-12-28 21:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:53:21] Production.INFO: ==32724== Releasing lock... [2024-12-28 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:53:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:54:04 [end_date_ymd] => 2024-12-28 21:54:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:54:04' and `end` < '2024-12-28 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-28 21:54:18] Production.INFO: count ==948 [2024-12-28 21:54:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:54:04 - End Time 2024-12-28 21:54:04 [2024-12-28 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124413', 'tblTempUsageDetail_20' ) start [2024-12-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124413', 'tblTempUsageDetail_20' ) end [2024-12-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124413', 'tblTempVendorCDR_20' ) start [2024-12-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124413', 'tblTempVendorCDR_20' ) end [2024-12-28 21:54:18] Production.INFO: ProcessCDR(1,14124413,1,1,2) [2024-12-28 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124413', 'tblTempUsageDetail_20' ) start [2024-12-28 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124413', 'tblTempUsageDetail_20' ) end [2024-12-28 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:54:21] Production.INFO: ==368== Releasing lock... [2024-12-28 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:54:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:55:05 [end_date_ymd] => 2024-12-28 21:55:05 [RateCDR] => 1 ) [2024-12-28 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:55:05' and `end` < '2024-12-28 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-28 21:55:18] Production.INFO: count ==949 [2024-12-28 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:55:05 - End Time 2024-12-28 21:55:05 [2024-12-28 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124418', 'tblTempUsageDetail_20' ) start [2024-12-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124418', 'tblTempUsageDetail_20' ) end [2024-12-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124418', 'tblTempVendorCDR_20' ) start [2024-12-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124418', 'tblTempVendorCDR_20' ) end [2024-12-28 21:55:18] Production.INFO: ProcessCDR(1,14124418,1,1,2) [2024-12-28 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124418', 'tblTempUsageDetail_20' ) start [2024-12-28 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124418', 'tblTempUsageDetail_20' ) end [2024-12-28 21:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:55:23] Production.INFO: ==455== Releasing lock... [2024-12-28 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:55:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:56:04 [end_date_ymd] => 2024-12-28 21:56:04 [RateCDR] => 1 ) [2024-12-28 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 18:56:04' and `end` < '2024-12-28 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 21:56:17] Production.INFO: count ==950 [2024-12-28 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 18:56:04 - End Time 2024-12-28 21:56:04 [2024-12-28 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124423', 'tblTempUsageDetail_20' ) start [2024-12-28 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124423', 'tblTempUsageDetail_20' ) end [2024-12-28 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124423', 'tblTempVendorCDR_20' ) start [2024-12-28 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124423', 'tblTempVendorCDR_20' ) end [2024-12-28 21:56:17] Production.INFO: ProcessCDR(1,14124423,1,1,2) [2024-12-28 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124423', 'tblTempUsageDetail_20' ) start [2024-12-28 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124423', 'tblTempUsageDetail_20' ) end [2024-12-28 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:56:21] Production.INFO: ==545== Releasing lock... [2024-12-28 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:56:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:57:05 [end_date_ymd] => 2024-12-28 21:57:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:57:05' and `end` < '2024-12-28 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-28 21:57:19] Production.INFO: count ==950 [2024-12-28 21:57:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:57:05 - End Time 2024-12-28 21:57:05 [2024-12-28 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124428', 'tblTempUsageDetail_20' ) start [2024-12-28 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124428', 'tblTempUsageDetail_20' ) end [2024-12-28 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124428', 'tblTempVendorCDR_20' ) start [2024-12-28 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124428', 'tblTempVendorCDR_20' ) end [2024-12-28 21:57:19] Production.INFO: ProcessCDR(1,14124428,1,1,2) [2024-12-28 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124428', 'tblTempUsageDetail_20' ) start [2024-12-28 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124428', 'tblTempUsageDetail_20' ) end [2024-12-28 21:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:57:22] Production.INFO: ==633== Releasing lock... [2024-12-28 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:57:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:58:05 [end_date_ymd] => 2024-12-28 21:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 18:58:05' and `end` < '2024-12-28 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-28 21:58:19] Production.INFO: count ==949 [2024-12-28 21:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 18:58:05 - End Time 2024-12-28 21:58:05 [2024-12-28 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124433', 'tblTempUsageDetail_20' ) start [2024-12-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124433', 'tblTempUsageDetail_20' ) end [2024-12-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124433', 'tblTempVendorCDR_20' ) start [2024-12-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124433', 'tblTempVendorCDR_20' ) end [2024-12-28 21:58:19] Production.INFO: ProcessCDR(1,14124433,1,1,2) [2024-12-28 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124433', 'tblTempUsageDetail_20' ) start [2024-12-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124433', 'tblTempUsageDetail_20' ) end [2024-12-28 21:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:58:22] Production.INFO: ==759== Releasing lock... [2024-12-28 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:58:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 18:59:04 [end_date_ymd] => 2024-12-28 21:59:04 [RateCDR] => 1 ) [2024-12-28 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-28 18:59:04' and `end` < '2024-12-28 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-28 21:59:18] Production.INFO: count ==948 [2024-12-28 21:59:18] Production.ERROR: pbx CDR StartTime 2024-12-28 18:59:04 - End Time 2024-12-28 21:59:04 [2024-12-28 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124438', 'tblTempUsageDetail_20' ) start [2024-12-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124438', 'tblTempUsageDetail_20' ) end [2024-12-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124438', 'tblTempVendorCDR_20' ) start [2024-12-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124438', 'tblTempVendorCDR_20' ) end [2024-12-28 21:59:18] Production.INFO: ProcessCDR(1,14124438,1,1,2) [2024-12-28 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124438', 'tblTempUsageDetail_20' ) start [2024-12-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124438', 'tblTempUsageDetail_20' ) end [2024-12-28 21:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 21:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 21:59:21] Production.INFO: ==857== Releasing lock... [2024-12-28 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 21:59:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:00:06 [end_date_ymd] => 2024-12-28 22:00:06 [RateCDR] => 1 ) [2024-12-28 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-28 19:00:06' and `end` < '2024-12-28 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-28 22:00:18] Production.INFO: count ==946 [2024-12-28 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:00:06 - End Time 2024-12-28 22:00:06 [2024-12-28 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124443', 'tblTempUsageDetail_20' ) start [2024-12-28 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124443', 'tblTempUsageDetail_20' ) end [2024-12-28 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124443', 'tblTempVendorCDR_20' ) start [2024-12-28 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124443', 'tblTempVendorCDR_20' ) end [2024-12-28 22:00:18] Production.INFO: ProcessCDR(1,14124443,1,1,2) [2024-12-28 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124443', 'tblTempUsageDetail_20' ) start [2024-12-28 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124443', 'tblTempUsageDetail_20' ) end [2024-12-28 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:00:22] Production.INFO: ==948== Releasing lock... [2024-12-28 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:00:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-28 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:01:04 [end_date_ymd] => 2024-12-28 22:01:04 [RateCDR] => 1 ) [2024-12-28 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:01:04' and `end` < '2024-12-28 22:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:01:18] Production.INFO: count ==908 [2024-12-28 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:01:04 - End Time 2024-12-28 22:01:04 [2024-12-28 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124449', 'tblTempUsageDetail_20' ) start [2024-12-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124449', 'tblTempUsageDetail_20' ) end [2024-12-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124449', 'tblTempVendorCDR_20' ) start [2024-12-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124449', 'tblTempVendorCDR_20' ) end [2024-12-28 22:01:18] Production.INFO: ProcessCDR(1,14124449,1,1,2) [2024-12-28 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124449', 'tblTempUsageDetail_20' ) start [2024-12-28 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124449', 'tblTempUsageDetail_20' ) end [2024-12-28 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:01:21] Production.INFO: ==1057== Releasing lock... [2024-12-28 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:01:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:02:05 [end_date_ymd] => 2024-12-28 22:02:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:02:05' and `end` < '2024-12-28 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-28 22:02:17] Production.INFO: count ==907 [2024-12-28 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:02:05 - End Time 2024-12-28 22:02:05 [2024-12-28 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124454', 'tblTempUsageDetail_20' ) start [2024-12-28 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124454', 'tblTempUsageDetail_20' ) end [2024-12-28 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124454', 'tblTempVendorCDR_20' ) start [2024-12-28 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124454', 'tblTempVendorCDR_20' ) end [2024-12-28 22:02:17] Production.INFO: ProcessCDR(1,14124454,1,1,2) [2024-12-28 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124454', 'tblTempUsageDetail_20' ) start [2024-12-28 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124454', 'tblTempUsageDetail_20' ) end [2024-12-28 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:02:20] Production.INFO: ==1196== Releasing lock... [2024-12-28 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:02:20] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:03:04 [end_date_ymd] => 2024-12-28 22:03:04 [RateCDR] => 1 ) [2024-12-28 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:03:04' and `end` < '2024-12-28 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:03:17] Production.INFO: count ==908 [2024-12-28 22:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:03:04 - End Time 2024-12-28 22:03:04 [2024-12-28 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124459', 'tblTempUsageDetail_20' ) start [2024-12-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124459', 'tblTempUsageDetail_20' ) end [2024-12-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124459', 'tblTempVendorCDR_20' ) start [2024-12-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124459', 'tblTempVendorCDR_20' ) end [2024-12-28 22:03:17] Production.INFO: ProcessCDR(1,14124459,1,1,2) [2024-12-28 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124459', 'tblTempUsageDetail_20' ) start [2024-12-28 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124459', 'tblTempUsageDetail_20' ) end [2024-12-28 22:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:03:21] Production.INFO: ==1300== Releasing lock... [2024-12-28 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:03:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:04:05 [end_date_ymd] => 2024-12-28 22:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:04:05' and `end` < '2024-12-28 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-28 22:04:17] Production.INFO: count ==907 [2024-12-28 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:04:05 - End Time 2024-12-28 22:04:05 [2024-12-28 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124464', 'tblTempUsageDetail_20' ) start [2024-12-28 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124464', 'tblTempUsageDetail_20' ) end [2024-12-28 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124464', 'tblTempVendorCDR_20' ) start [2024-12-28 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124464', 'tblTempVendorCDR_20' ) end [2024-12-28 22:04:17] Production.INFO: ProcessCDR(1,14124464,1,1,2) [2024-12-28 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124464', 'tblTempUsageDetail_20' ) start [2024-12-28 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124464', 'tblTempUsageDetail_20' ) end [2024-12-28 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:04:20] Production.INFO: ==1384== Releasing lock... [2024-12-28 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:04:20] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:05:05 [end_date_ymd] => 2024-12-28 22:05:05 [RateCDR] => 1 ) [2024-12-28 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:05:05' and `end` < '2024-12-28 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:05:18] Production.INFO: count ==905 [2024-12-28 22:05:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:05:05 - End Time 2024-12-28 22:05:05 [2024-12-28 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124469', 'tblTempUsageDetail_20' ) start [2024-12-28 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124469', 'tblTempUsageDetail_20' ) end [2024-12-28 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124469', 'tblTempVendorCDR_20' ) start [2024-12-28 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124469', 'tblTempVendorCDR_20' ) end [2024-12-28 22:05:19] Production.INFO: ProcessCDR(1,14124469,1,1,2) [2024-12-28 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124469', 'tblTempUsageDetail_20' ) start [2024-12-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124469', 'tblTempUsageDetail_20' ) end [2024-12-28 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:05:22] Production.INFO: ==1471== Releasing lock... [2024-12-28 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:05:22] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:06:05 [end_date_ymd] => 2024-12-28 22:06:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:06:05' and `end` < '2024-12-28 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-28 22:06:18] Production.INFO: count ==905 [2024-12-28 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:06:05 - End Time 2024-12-28 22:06:05 [2024-12-28 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124474', 'tblTempUsageDetail_20' ) start [2024-12-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124474', 'tblTempUsageDetail_20' ) end [2024-12-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124474', 'tblTempVendorCDR_20' ) start [2024-12-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124474', 'tblTempVendorCDR_20' ) end [2024-12-28 22:06:18] Production.INFO: ProcessCDR(1,14124474,1,1,2) [2024-12-28 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124474', 'tblTempUsageDetail_20' ) start [2024-12-28 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124474', 'tblTempUsageDetail_20' ) end [2024-12-28 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:06:21] Production.INFO: ==1597== Releasing lock... [2024-12-28 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:06:21] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:07:04 [end_date_ymd] => 2024-12-28 22:07:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:07:04' and `end` < '2024-12-28 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-28 22:07:17] Production.INFO: count ==905 [2024-12-28 22:07:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:07:04 - End Time 2024-12-28 22:07:04 [2024-12-28 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124479', 'tblTempUsageDetail_20' ) start [2024-12-28 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124479', 'tblTempUsageDetail_20' ) end [2024-12-28 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124479', 'tblTempVendorCDR_20' ) start [2024-12-28 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124479', 'tblTempVendorCDR_20' ) end [2024-12-28 22:07:17] Production.INFO: ProcessCDR(1,14124479,1,1,2) [2024-12-28 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124479', 'tblTempUsageDetail_20' ) start [2024-12-28 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124479', 'tblTempUsageDetail_20' ) end [2024-12-28 22:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:07:20] Production.INFO: ==1690== Releasing lock... [2024-12-28 22:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:07:20] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:08:05 [end_date_ymd] => 2024-12-28 22:08:05 [RateCDR] => 1 ) [2024-12-28 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:08:05' and `end` < '2024-12-28 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:08:17] Production.INFO: count ==891 [2024-12-28 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:08:05 - End Time 2024-12-28 22:08:05 [2024-12-28 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124484', 'tblTempUsageDetail_20' ) start [2024-12-28 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124484', 'tblTempUsageDetail_20' ) end [2024-12-28 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124484', 'tblTempVendorCDR_20' ) start [2024-12-28 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124484', 'tblTempVendorCDR_20' ) end [2024-12-28 22:08:17] Production.INFO: ProcessCDR(1,14124484,1,1,2) [2024-12-28 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124484', 'tblTempUsageDetail_20' ) start [2024-12-28 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124484', 'tblTempUsageDetail_20' ) end [2024-12-28 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:08:20] Production.INFO: ==1776== Releasing lock... [2024-12-28 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:08:20] Production.INFO: 34 MB #Memory Used# [2024-12-28 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:09:05 [end_date_ymd] => 2024-12-28 22:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:09:05' and `end` < '2024-12-28 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-28 22:09:18] Production.INFO: count ==884 [2024-12-28 22:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:09:05 - End Time 2024-12-28 22:09:05 [2024-12-28 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124489', 'tblTempUsageDetail_20' ) start [2024-12-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124489', 'tblTempUsageDetail_20' ) end [2024-12-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124489', 'tblTempVendorCDR_20' ) start [2024-12-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124489', 'tblTempVendorCDR_20' ) end [2024-12-28 22:09:18] Production.INFO: ProcessCDR(1,14124489,1,1,2) [2024-12-28 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124489', 'tblTempUsageDetail_20' ) start [2024-12-28 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124489', 'tblTempUsageDetail_20' ) end [2024-12-28 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:09:21] Production.INFO: ==1870== Releasing lock... [2024-12-28 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:09:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:10:05 [end_date_ymd] => 2024-12-28 22:10:05 [RateCDR] => 1 ) [2024-12-28 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:10:05' and `end` < '2024-12-28 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:10:18] Production.INFO: count ==882 [2024-12-28 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:10:05 - End Time 2024-12-28 22:10:05 [2024-12-28 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124494', 'tblTempUsageDetail_20' ) start [2024-12-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124494', 'tblTempUsageDetail_20' ) end [2024-12-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124494', 'tblTempVendorCDR_20' ) start [2024-12-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124494', 'tblTempVendorCDR_20' ) end [2024-12-28 22:10:18] Production.INFO: ProcessCDR(1,14124494,1,1,2) [2024-12-28 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124494', 'tblTempUsageDetail_20' ) start [2024-12-28 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124494', 'tblTempUsageDetail_20' ) end [2024-12-28 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:10:21] Production.INFO: ==1965== Releasing lock... [2024-12-28 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:10:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-28 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:11:05 [end_date_ymd] => 2024-12-28 22:11:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:11:05' and `end` < '2024-12-28 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-28 22:11:17] Production.INFO: count ==852 [2024-12-28 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:11:05 - End Time 2024-12-28 22:11:05 [2024-12-28 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124500', 'tblTempUsageDetail_20' ) start [2024-12-28 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124500', 'tblTempUsageDetail_20' ) end [2024-12-28 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124500', 'tblTempVendorCDR_20' ) start [2024-12-28 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124500', 'tblTempVendorCDR_20' ) end [2024-12-28 22:11:17] Production.INFO: ProcessCDR(1,14124500,1,1,2) [2024-12-28 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124500', 'tblTempUsageDetail_20' ) start [2024-12-28 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124500', 'tblTempUsageDetail_20' ) end [2024-12-28 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:11:20] Production.INFO: ==2053== Releasing lock... [2024-12-28 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:11:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:12:04 [end_date_ymd] => 2024-12-28 22:12:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:12:04' and `end` < '2024-12-28 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-28 22:12:17] Production.INFO: count ==852 [2024-12-28 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:12:04 - End Time 2024-12-28 22:12:04 [2024-12-28 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124505', 'tblTempUsageDetail_20' ) start [2024-12-28 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124505', 'tblTempUsageDetail_20' ) end [2024-12-28 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124505', 'tblTempVendorCDR_20' ) start [2024-12-28 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124505', 'tblTempVendorCDR_20' ) end [2024-12-28 22:12:17] Production.INFO: ProcessCDR(1,14124505,1,1,2) [2024-12-28 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124505', 'tblTempUsageDetail_20' ) start [2024-12-28 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124505', 'tblTempUsageDetail_20' ) end [2024-12-28 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:12:20] Production.INFO: ==2133== Releasing lock... [2024-12-28 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:12:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:13:04 [end_date_ymd] => 2024-12-28 22:13:04 [RateCDR] => 1 ) [2024-12-28 22: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-28 19:13:04' and `end` < '2024-12-28 22: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-28 22:13:17] Production.INFO: count ==852 [2024-12-28 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:13:04 - End Time 2024-12-28 22:13:04 [2024-12-28 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124510', 'tblTempUsageDetail_20' ) start [2024-12-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124510', 'tblTempUsageDetail_20' ) end [2024-12-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124510', 'tblTempVendorCDR_20' ) start [2024-12-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124510', 'tblTempVendorCDR_20' ) end [2024-12-28 22:13:17] Production.INFO: ProcessCDR(1,14124510,1,1,2) [2024-12-28 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124510', 'tblTempUsageDetail_20' ) start [2024-12-28 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124510', 'tblTempUsageDetail_20' ) end [2024-12-28 22:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:13:22] Production.INFO: ==2221== Releasing lock... [2024-12-28 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:13:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:14:05 [end_date_ymd] => 2024-12-28 22:14:05 [RateCDR] => 1 ) [2024-12-28 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:14:05' and `end` < '2024-12-28 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:14:18] Production.INFO: count ==850 [2024-12-28 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:14:05 - End Time 2024-12-28 22:14:05 [2024-12-28 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124515', 'tblTempUsageDetail_20' ) start [2024-12-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124515', 'tblTempUsageDetail_20' ) end [2024-12-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124515', 'tblTempVendorCDR_20' ) start [2024-12-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124515', 'tblTempVendorCDR_20' ) end [2024-12-28 22:14:18] Production.INFO: ProcessCDR(1,14124515,1,1,2) [2024-12-28 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124515', 'tblTempUsageDetail_20' ) start [2024-12-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124515', 'tblTempUsageDetail_20' ) end [2024-12-28 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:14:21] Production.INFO: ==2312== Releasing lock... [2024-12-28 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:14:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:15:05 [end_date_ymd] => 2024-12-28 22:15:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:15:05' and `end` < '2024-12-28 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-28 22:15:17] Production.INFO: count ==847 [2024-12-28 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:15:05 - End Time 2024-12-28 22:15:05 [2024-12-28 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124520', 'tblTempUsageDetail_20' ) start [2024-12-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124520', 'tblTempUsageDetail_20' ) end [2024-12-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124520', 'tblTempVendorCDR_20' ) start [2024-12-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124520', 'tblTempVendorCDR_20' ) end [2024-12-28 22:15:18] Production.INFO: ProcessCDR(1,14124520,1,1,2) [2024-12-28 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124520', 'tblTempUsageDetail_20' ) start [2024-12-28 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124520', 'tblTempUsageDetail_20' ) end [2024-12-28 22:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:15:21] Production.INFO: ==2397== Releasing lock... [2024-12-28 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:15:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:16:05 [end_date_ymd] => 2024-12-28 22:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:16:05' and `end` < '2024-12-28 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-28 22:16:18] Production.INFO: count ==846 [2024-12-28 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:16:05 - End Time 2024-12-28 22:16:05 [2024-12-28 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124525', 'tblTempUsageDetail_20' ) start [2024-12-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124525', 'tblTempUsageDetail_20' ) end [2024-12-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124525', 'tblTempVendorCDR_20' ) start [2024-12-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124525', 'tblTempVendorCDR_20' ) end [2024-12-28 22:16:18] Production.INFO: ProcessCDR(1,14124525,1,1,2) [2024-12-28 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124525', 'tblTempUsageDetail_20' ) start [2024-12-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124525', 'tblTempUsageDetail_20' ) end [2024-12-28 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:16:21] Production.INFO: ==2479== Releasing lock... [2024-12-28 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:16:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:17:05 [end_date_ymd] => 2024-12-28 22:17:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:17:05' and `end` < '2024-12-28 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-28 22:17:17] Production.INFO: count ==843 [2024-12-28 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:17:05 - End Time 2024-12-28 22:17:05 [2024-12-28 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124530', 'tblTempUsageDetail_20' ) start [2024-12-28 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124530', 'tblTempUsageDetail_20' ) end [2024-12-28 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124530', 'tblTempVendorCDR_20' ) start [2024-12-28 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124530', 'tblTempVendorCDR_20' ) end [2024-12-28 22:17:17] Production.INFO: ProcessCDR(1,14124530,1,1,2) [2024-12-28 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124530', 'tblTempUsageDetail_20' ) start [2024-12-28 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124530', 'tblTempUsageDetail_20' ) end [2024-12-28 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:17:20] Production.INFO: ==2561== Releasing lock... [2024-12-28 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:17:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:18:05 [end_date_ymd] => 2024-12-28 22:18:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:18:05' and `end` < '2024-12-28 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-28 22:18:18] Production.INFO: count ==842 [2024-12-28 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:18:05 - End Time 2024-12-28 22:18:05 [2024-12-28 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124535', 'tblTempUsageDetail_20' ) start [2024-12-28 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124535', 'tblTempUsageDetail_20' ) end [2024-12-28 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124535', 'tblTempVendorCDR_20' ) start [2024-12-28 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124535', 'tblTempVendorCDR_20' ) end [2024-12-28 22:18:18] Production.INFO: ProcessCDR(1,14124535,1,1,2) [2024-12-28 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124535', 'tblTempUsageDetail_20' ) start [2024-12-28 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124535', 'tblTempUsageDetail_20' ) end [2024-12-28 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:18:21] Production.INFO: ==2677== Releasing lock... [2024-12-28 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:18:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:19:05 [end_date_ymd] => 2024-12-28 22:19:05 [RateCDR] => 1 ) [2024-12-28 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:19:05' and `end` < '2024-12-28 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:19:18] Production.INFO: count ==842 [2024-12-28 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:19:05 - End Time 2024-12-28 22:19:05 [2024-12-28 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124540', 'tblTempUsageDetail_20' ) start [2024-12-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124540', 'tblTempUsageDetail_20' ) end [2024-12-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124540', 'tblTempVendorCDR_20' ) start [2024-12-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124540', 'tblTempVendorCDR_20' ) end [2024-12-28 22:19:18] Production.INFO: ProcessCDR(1,14124540,1,1,2) [2024-12-28 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124540', 'tblTempUsageDetail_20' ) start [2024-12-28 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124540', 'tblTempUsageDetail_20' ) end [2024-12-28 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:19:21] Production.INFO: ==2760== Releasing lock... [2024-12-28 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:19:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:20:05 [end_date_ymd] => 2024-12-28 22:20:05 [RateCDR] => 1 ) [2024-12-28 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:20:05' and `end` < '2024-12-28 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:20:18] Production.INFO: count ==843 [2024-12-28 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:20:05 - End Time 2024-12-28 22:20:05 [2024-12-28 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124546', 'tblTempUsageDetail_20' ) start [2024-12-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124546', 'tblTempUsageDetail_20' ) end [2024-12-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124546', 'tblTempVendorCDR_20' ) start [2024-12-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124546', 'tblTempVendorCDR_20' ) end [2024-12-28 22:20:18] Production.INFO: ProcessCDR(1,14124546,1,1,2) [2024-12-28 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124546', 'tblTempUsageDetail_20' ) start [2024-12-28 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124546', 'tblTempUsageDetail_20' ) end [2024-12-28 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:20:21] Production.INFO: ==2840== Releasing lock... [2024-12-28 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:20:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:21:05 [end_date_ymd] => 2024-12-28 22:21:05 [RateCDR] => 1 ) [2024-12-28 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:21:05' and `end` < '2024-12-28 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:21:18] Production.INFO: count ==834 [2024-12-28 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:21:05 - End Time 2024-12-28 22:21:05 [2024-12-28 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124551', 'tblTempUsageDetail_20' ) start [2024-12-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124551', 'tblTempUsageDetail_20' ) end [2024-12-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124551', 'tblTempVendorCDR_20' ) start [2024-12-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124551', 'tblTempVendorCDR_20' ) end [2024-12-28 22:21:18] Production.INFO: ProcessCDR(1,14124551,1,1,2) [2024-12-28 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124551', 'tblTempUsageDetail_20' ) start [2024-12-28 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124551', 'tblTempUsageDetail_20' ) end [2024-12-28 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:21:21] Production.INFO: ==2920== Releasing lock... [2024-12-28 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:21:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:22:05 [end_date_ymd] => 2024-12-28 22:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:22:05' and `end` < '2024-12-28 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-28 22:22:19] Production.INFO: count ==834 [2024-12-28 22:22:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:22:05 - End Time 2024-12-28 22:22:05 [2024-12-28 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124556', 'tblTempUsageDetail_20' ) start [2024-12-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124556', 'tblTempUsageDetail_20' ) end [2024-12-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124556', 'tblTempVendorCDR_20' ) start [2024-12-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124556', 'tblTempVendorCDR_20' ) end [2024-12-28 22:22:19] Production.INFO: ProcessCDR(1,14124556,1,1,2) [2024-12-28 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124556', 'tblTempUsageDetail_20' ) start [2024-12-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124556', 'tblTempUsageDetail_20' ) end [2024-12-28 22:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:22:22] Production.INFO: ==2998== Releasing lock... [2024-12-28 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:22:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:23:05 [end_date_ymd] => 2024-12-28 22:23:05 [RateCDR] => 1 ) [2024-12-28 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:23:05' and `end` < '2024-12-28 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:23:20] Production.INFO: count ==832 [2024-12-28 22:23:20] Production.ERROR: pbx CDR StartTime 2024-12-28 19:23:05 - End Time 2024-12-28 22:23:05 [2024-12-28 22:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124561', 'tblTempUsageDetail_20' ) start [2024-12-28 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124561', 'tblTempUsageDetail_20' ) end [2024-12-28 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124561', 'tblTempVendorCDR_20' ) start [2024-12-28 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124561', 'tblTempVendorCDR_20' ) end [2024-12-28 22:23:20] Production.INFO: ProcessCDR(1,14124561,1,1,2) [2024-12-28 22:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124561', 'tblTempUsageDetail_20' ) start [2024-12-28 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124561', 'tblTempUsageDetail_20' ) end [2024-12-28 22:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:23:23] Production.INFO: ==3081== Releasing lock... [2024-12-28 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:23:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:24:04 [end_date_ymd] => 2024-12-28 22:24:04 [RateCDR] => 1 ) [2024-12-28 22:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:24:04' and `end` < '2024-12-28 22:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:24:17] Production.INFO: count ==831 [2024-12-28 22:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:24:04 - End Time 2024-12-28 22:24:04 [2024-12-28 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124566', 'tblTempUsageDetail_20' ) start [2024-12-28 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124566', 'tblTempUsageDetail_20' ) end [2024-12-28 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124566', 'tblTempVendorCDR_20' ) start [2024-12-28 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124566', 'tblTempVendorCDR_20' ) end [2024-12-28 22:24:17] Production.INFO: ProcessCDR(1,14124566,1,1,2) [2024-12-28 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124566', 'tblTempUsageDetail_20' ) start [2024-12-28 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124566', 'tblTempUsageDetail_20' ) end [2024-12-28 22:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:24:20] Production.INFO: ==3156== Releasing lock... [2024-12-28 22:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:24:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:25:05 [end_date_ymd] => 2024-12-28 22:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:25:05' and `end` < '2024-12-28 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-28 22:25:17] Production.INFO: count ==831 [2024-12-28 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:25:05 - End Time 2024-12-28 22:25:05 [2024-12-28 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124571', 'tblTempUsageDetail_20' ) start [2024-12-28 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124571', 'tblTempUsageDetail_20' ) end [2024-12-28 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124571', 'tblTempVendorCDR_20' ) start [2024-12-28 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124571', 'tblTempVendorCDR_20' ) end [2024-12-28 22:25:17] Production.INFO: ProcessCDR(1,14124571,1,1,2) [2024-12-28 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124571', 'tblTempUsageDetail_20' ) start [2024-12-28 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124571', 'tblTempUsageDetail_20' ) end [2024-12-28 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:25:20] Production.INFO: ==3228== Releasing lock... [2024-12-28 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:25:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:26:05 [end_date_ymd] => 2024-12-28 22:26:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:26:05' and `end` < '2024-12-28 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-28 22:26:17] Production.INFO: count ==831 [2024-12-28 22:26:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:26:05 - End Time 2024-12-28 22:26:05 [2024-12-28 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124576', 'tblTempUsageDetail_20' ) start [2024-12-28 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124576', 'tblTempUsageDetail_20' ) end [2024-12-28 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124576', 'tblTempVendorCDR_20' ) start [2024-12-28 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124576', 'tblTempVendorCDR_20' ) end [2024-12-28 22:26:17] Production.INFO: ProcessCDR(1,14124576,1,1,2) [2024-12-28 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124576', 'tblTempUsageDetail_20' ) start [2024-12-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124576', 'tblTempUsageDetail_20' ) end [2024-12-28 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:26:21] Production.INFO: ==3301== Releasing lock... [2024-12-28 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:26:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:27:05 [end_date_ymd] => 2024-12-28 22:27:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:27:05' and `end` < '2024-12-28 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-28 22:27:17] Production.INFO: count ==826 [2024-12-28 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:27:05 - End Time 2024-12-28 22:27:05 [2024-12-28 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124581', 'tblTempUsageDetail_20' ) start [2024-12-28 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124581', 'tblTempUsageDetail_20' ) end [2024-12-28 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124581', 'tblTempVendorCDR_20' ) start [2024-12-28 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124581', 'tblTempVendorCDR_20' ) end [2024-12-28 22:27:17] Production.INFO: ProcessCDR(1,14124581,1,1,2) [2024-12-28 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124581', 'tblTempUsageDetail_20' ) start [2024-12-28 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124581', 'tblTempUsageDetail_20' ) end [2024-12-28 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:27:21] Production.INFO: ==3374== Releasing lock... [2024-12-28 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:27:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:28:04 [end_date_ymd] => 2024-12-28 22:28:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:28:04' and `end` < '2024-12-28 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-28 22:28:17] Production.INFO: count ==824 [2024-12-28 22:28:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:28:04 - End Time 2024-12-28 22:28:04 [2024-12-28 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124583', 'tblTempUsageDetail_20' ) start [2024-12-28 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124583', 'tblTempUsageDetail_20' ) end [2024-12-28 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124583', 'tblTempVendorCDR_20' ) start [2024-12-28 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124583', 'tblTempVendorCDR_20' ) end [2024-12-28 22:28:17] Production.INFO: ProcessCDR(1,14124583,1,1,2) [2024-12-28 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124583', 'tblTempUsageDetail_20' ) start [2024-12-28 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124583', 'tblTempUsageDetail_20' ) end [2024-12-28 22:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:28:20] Production.INFO: ==3444== Releasing lock... [2024-12-28 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:28:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:29:04 [end_date_ymd] => 2024-12-28 22:29:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:29:04' and `end` < '2024-12-28 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-28 22:29:17] Production.INFO: count ==824 [2024-12-28 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:29:04 - End Time 2024-12-28 22:29:04 [2024-12-28 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124591', 'tblTempUsageDetail_20' ) start [2024-12-28 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124591', 'tblTempUsageDetail_20' ) end [2024-12-28 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124591', 'tblTempVendorCDR_20' ) start [2024-12-28 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124591', 'tblTempVendorCDR_20' ) end [2024-12-28 22:29:17] Production.INFO: ProcessCDR(1,14124591,1,1,2) [2024-12-28 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124591', 'tblTempUsageDetail_20' ) start [2024-12-28 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124591', 'tblTempUsageDetail_20' ) end [2024-12-28 22:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:29:20] Production.INFO: ==3518== Releasing lock... [2024-12-28 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:29:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:30:06 [end_date_ymd] => 2024-12-28 22:30:06 [RateCDR] => 1 ) [2024-12-28 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-28 19:30:06' and `end` < '2024-12-28 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-28 22:30:19] Production.INFO: count ==824 [2024-12-28 22:30:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:30:06 - End Time 2024-12-28 22:30:06 [2024-12-28 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124597', 'tblTempUsageDetail_20' ) start [2024-12-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124597', 'tblTempUsageDetail_20' ) end [2024-12-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124597', 'tblTempVendorCDR_20' ) start [2024-12-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124597', 'tblTempVendorCDR_20' ) end [2024-12-28 22:30:19] Production.INFO: ProcessCDR(1,14124597,1,1,2) [2024-12-28 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124597', 'tblTempUsageDetail_20' ) start [2024-12-28 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124597', 'tblTempUsageDetail_20' ) end [2024-12-28 22:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:30:22] Production.INFO: ==3594== Releasing lock... [2024-12-28 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:30:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:31:05 [end_date_ymd] => 2024-12-28 22:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:31:05' and `end` < '2024-12-28 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-28 22:31:20] Production.INFO: count ==826 [2024-12-28 22:31:20] Production.ERROR: pbx CDR StartTime 2024-12-28 19:31:05 - End Time 2024-12-28 22:31:05 [2024-12-28 22:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124602', 'tblTempUsageDetail_20' ) start [2024-12-28 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124602', 'tblTempUsageDetail_20' ) end [2024-12-28 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124602', 'tblTempVendorCDR_20' ) start [2024-12-28 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124602', 'tblTempVendorCDR_20' ) end [2024-12-28 22:31:20] Production.INFO: ProcessCDR(1,14124602,1,1,2) [2024-12-28 22:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124602', 'tblTempUsageDetail_20' ) start [2024-12-28 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124602', 'tblTempUsageDetail_20' ) end [2024-12-28 22:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:31:23] Production.INFO: ==3689== Releasing lock... [2024-12-28 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:31:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:32:05 [end_date_ymd] => 2024-12-28 22:32:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:32:05' and `end` < '2024-12-28 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-28 22:32:19] Production.INFO: count ==821 [2024-12-28 22:32:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:32:05 - End Time 2024-12-28 22:32:05 [2024-12-28 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124607', 'tblTempUsageDetail_20' ) start [2024-12-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124607', 'tblTempUsageDetail_20' ) end [2024-12-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124607', 'tblTempVendorCDR_20' ) start [2024-12-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124607', 'tblTempVendorCDR_20' ) end [2024-12-28 22:32:19] Production.INFO: ProcessCDR(1,14124607,1,1,2) [2024-12-28 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124607', 'tblTempUsageDetail_20' ) start [2024-12-28 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124607', 'tblTempUsageDetail_20' ) end [2024-12-28 22:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:32:22] Production.INFO: ==3765== Releasing lock... [2024-12-28 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:32:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:33:04 [end_date_ymd] => 2024-12-28 22:33:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:33:04' and `end` < '2024-12-28 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-28 22:33:17] Production.INFO: count ==822 [2024-12-28 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:33:04 - End Time 2024-12-28 22:33:04 [2024-12-28 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124612', 'tblTempUsageDetail_20' ) start [2024-12-28 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124612', 'tblTempUsageDetail_20' ) end [2024-12-28 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124612', 'tblTempVendorCDR_20' ) start [2024-12-28 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124612', 'tblTempVendorCDR_20' ) end [2024-12-28 22:33:17] Production.INFO: ProcessCDR(1,14124612,1,1,2) [2024-12-28 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124612', 'tblTempUsageDetail_20' ) start [2024-12-28 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124612', 'tblTempUsageDetail_20' ) end [2024-12-28 22:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:33:22] Production.INFO: ==3874== Releasing lock... [2024-12-28 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:33:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:34:05 [end_date_ymd] => 2024-12-28 22:34:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:34:05' and `end` < '2024-12-28 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-28 22:34:18] Production.INFO: count ==824 [2024-12-28 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:34:05 - End Time 2024-12-28 22:34:05 [2024-12-28 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124617', 'tblTempUsageDetail_20' ) start [2024-12-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124617', 'tblTempUsageDetail_20' ) end [2024-12-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124617', 'tblTempVendorCDR_20' ) start [2024-12-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124617', 'tblTempVendorCDR_20' ) end [2024-12-28 22:34:18] Production.INFO: ProcessCDR(1,14124617,1,1,2) [2024-12-28 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124617', 'tblTempUsageDetail_20' ) start [2024-12-28 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124617', 'tblTempUsageDetail_20' ) end [2024-12-28 22:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:34:22] Production.INFO: ==3945== Releasing lock... [2024-12-28 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:34:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:35:05 [end_date_ymd] => 2024-12-28 22:35:05 [RateCDR] => 1 ) [2024-12-28 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:35:05' and `end` < '2024-12-28 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:35:18] Production.INFO: count ==824 [2024-12-28 22:35:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:35:05 - End Time 2024-12-28 22:35:05 [2024-12-28 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124622', 'tblTempUsageDetail_20' ) start [2024-12-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124622', 'tblTempUsageDetail_20' ) end [2024-12-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124622', 'tblTempVendorCDR_20' ) start [2024-12-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124622', 'tblTempVendorCDR_20' ) end [2024-12-28 22:35:18] Production.INFO: ProcessCDR(1,14124622,1,1,2) [2024-12-28 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124622', 'tblTempUsageDetail_20' ) start [2024-12-28 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124622', 'tblTempUsageDetail_20' ) end [2024-12-28 22:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:35:21] Production.INFO: ==4017== Releasing lock... [2024-12-28 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:35:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:36:05 [end_date_ymd] => 2024-12-28 22:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:36:05' and `end` < '2024-12-28 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-28 22:36:18] Production.INFO: count ==824 [2024-12-28 22:36:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:36:05 - End Time 2024-12-28 22:36:05 [2024-12-28 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124627', 'tblTempUsageDetail_20' ) start [2024-12-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124627', 'tblTempUsageDetail_20' ) end [2024-12-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124627', 'tblTempVendorCDR_20' ) start [2024-12-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124627', 'tblTempVendorCDR_20' ) end [2024-12-28 22:36:18] Production.INFO: ProcessCDR(1,14124627,1,1,2) [2024-12-28 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124627', 'tblTempUsageDetail_20' ) start [2024-12-28 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124627', 'tblTempUsageDetail_20' ) end [2024-12-28 22:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:36:21] Production.INFO: ==4095== Releasing lock... [2024-12-28 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:36:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:37:05 [end_date_ymd] => 2024-12-28 22:37:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:37:05' and `end` < '2024-12-28 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-28 22:37:18] Production.INFO: count ==828 [2024-12-28 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:37:05 - End Time 2024-12-28 22:37:05 [2024-12-28 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124632', 'tblTempUsageDetail_20' ) start [2024-12-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124632', 'tblTempUsageDetail_20' ) end [2024-12-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124632', 'tblTempVendorCDR_20' ) start [2024-12-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124632', 'tblTempVendorCDR_20' ) end [2024-12-28 22:37:18] Production.INFO: ProcessCDR(1,14124632,1,1,2) [2024-12-28 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124632', 'tblTempUsageDetail_20' ) start [2024-12-28 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124632', 'tblTempUsageDetail_20' ) end [2024-12-28 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:37:21] Production.INFO: ==4169== Releasing lock... [2024-12-28 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:37:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:38:05 [end_date_ymd] => 2024-12-28 22:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:38:05' and `end` < '2024-12-28 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-28 22:38:17] Production.INFO: count ==828 [2024-12-28 22:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:38:05 - End Time 2024-12-28 22:38:05 [2024-12-28 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124637', 'tblTempUsageDetail_20' ) start [2024-12-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124637', 'tblTempUsageDetail_20' ) end [2024-12-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124637', 'tblTempVendorCDR_20' ) start [2024-12-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124637', 'tblTempVendorCDR_20' ) end [2024-12-28 22:38:18] Production.INFO: ProcessCDR(1,14124637,1,1,2) [2024-12-28 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124637', 'tblTempUsageDetail_20' ) start [2024-12-28 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124637', 'tblTempUsageDetail_20' ) end [2024-12-28 22:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:38:22] Production.INFO: ==4239== Releasing lock... [2024-12-28 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:38:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:39:04 [end_date_ymd] => 2024-12-28 22:39:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:39:04' and `end` < '2024-12-28 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-28 22:39:17] Production.INFO: count ==828 [2024-12-28 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:39:04 - End Time 2024-12-28 22:39:04 [2024-12-28 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124642', 'tblTempUsageDetail_20' ) start [2024-12-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124642', 'tblTempUsageDetail_20' ) end [2024-12-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124642', 'tblTempVendorCDR_20' ) start [2024-12-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124642', 'tblTempVendorCDR_20' ) end [2024-12-28 22:39:17] Production.INFO: ProcessCDR(1,14124642,1,1,2) [2024-12-28 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124642', 'tblTempUsageDetail_20' ) start [2024-12-28 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124642', 'tblTempUsageDetail_20' ) end [2024-12-28 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:39:20] Production.INFO: ==4311== Releasing lock... [2024-12-28 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:39:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-28 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:40:06 [end_date_ymd] => 2024-12-28 22:40:06 [RateCDR] => 1 ) [2024-12-28 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:40:06' and `end` < '2024-12-28 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:40:18] Production.INFO: count ==823 [2024-12-28 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:40:06 - End Time 2024-12-28 22:40:06 [2024-12-28 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124648', 'tblTempUsageDetail_20' ) start [2024-12-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124648', 'tblTempUsageDetail_20' ) end [2024-12-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124648', 'tblTempVendorCDR_20' ) start [2024-12-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124648', 'tblTempVendorCDR_20' ) end [2024-12-28 22:40:18] Production.INFO: ProcessCDR(1,14124648,1,1,2) [2024-12-28 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124648', 'tblTempUsageDetail_20' ) start [2024-12-28 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124648', 'tblTempUsageDetail_20' ) end [2024-12-28 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:40:21] Production.INFO: ==4391== Releasing lock... [2024-12-28 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:40:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:41:04 [end_date_ymd] => 2024-12-28 22:41:04 [RateCDR] => 1 ) [2024-12-28 22: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-28 19:41:04' and `end` < '2024-12-28 22: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-28 22:41:19] Production.INFO: count ==816 [2024-12-28 22:41:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:41:04 - End Time 2024-12-28 22:41:04 [2024-12-28 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124653', 'tblTempUsageDetail_20' ) start [2024-12-28 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124653', 'tblTempUsageDetail_20' ) end [2024-12-28 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124653', 'tblTempVendorCDR_20' ) start [2024-12-28 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124653', 'tblTempVendorCDR_20' ) end [2024-12-28 22:41:19] Production.INFO: ProcessCDR(1,14124653,1,1,2) [2024-12-28 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124653', 'tblTempUsageDetail_20' ) start [2024-12-28 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124653', 'tblTempUsageDetail_20' ) end [2024-12-28 22:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:41:22] Production.INFO: ==4468== Releasing lock... [2024-12-28 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:41:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:42:05 [end_date_ymd] => 2024-12-28 22:42:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:42:05' and `end` < '2024-12-28 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-28 22:42:17] Production.INFO: count ==815 [2024-12-28 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:42:05 - End Time 2024-12-28 22:42:05 [2024-12-28 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124658', 'tblTempUsageDetail_20' ) start [2024-12-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124658', 'tblTempUsageDetail_20' ) end [2024-12-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124658', 'tblTempVendorCDR_20' ) start [2024-12-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124658', 'tblTempVendorCDR_20' ) end [2024-12-28 22:42:17] Production.INFO: ProcessCDR(1,14124658,1,1,2) [2024-12-28 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124658', 'tblTempUsageDetail_20' ) start [2024-12-28 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124658', 'tblTempUsageDetail_20' ) end [2024-12-28 22:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:42:21] Production.INFO: ==4540== Releasing lock... [2024-12-28 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:42:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:43:05 [end_date_ymd] => 2024-12-28 22:43:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:43:05' and `end` < '2024-12-28 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-28 22:43:17] Production.INFO: count ==813 [2024-12-28 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:43:05 - End Time 2024-12-28 22:43:05 [2024-12-28 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124663', 'tblTempUsageDetail_20' ) start [2024-12-28 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124663', 'tblTempUsageDetail_20' ) end [2024-12-28 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124663', 'tblTempVendorCDR_20' ) start [2024-12-28 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124663', 'tblTempVendorCDR_20' ) end [2024-12-28 22:43:17] Production.INFO: ProcessCDR(1,14124663,1,1,2) [2024-12-28 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124663', 'tblTempUsageDetail_20' ) start [2024-12-28 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124663', 'tblTempUsageDetail_20' ) end [2024-12-28 22:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:43:20] Production.INFO: ==4622== Releasing lock... [2024-12-28 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:43:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:44:04 [end_date_ymd] => 2024-12-28 22:44:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:44:04' and `end` < '2024-12-28 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-28 22:44:18] Production.INFO: count ==813 [2024-12-28 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:44:04 - End Time 2024-12-28 22:44:04 [2024-12-28 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124668', 'tblTempUsageDetail_20' ) start [2024-12-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124668', 'tblTempUsageDetail_20' ) end [2024-12-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124668', 'tblTempVendorCDR_20' ) start [2024-12-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124668', 'tblTempVendorCDR_20' ) end [2024-12-28 22:44:18] Production.INFO: ProcessCDR(1,14124668,1,1,2) [2024-12-28 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124668', 'tblTempUsageDetail_20' ) start [2024-12-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124668', 'tblTempUsageDetail_20' ) end [2024-12-28 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:44:21] Production.INFO: ==4700== Releasing lock... [2024-12-28 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:44:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:45:05 [end_date_ymd] => 2024-12-28 22:45:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:45:05' and `end` < '2024-12-28 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-28 22:45:18] Production.INFO: count ==813 [2024-12-28 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:45:05 - End Time 2024-12-28 22:45:05 [2024-12-28 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124673', 'tblTempUsageDetail_20' ) start [2024-12-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124673', 'tblTempUsageDetail_20' ) end [2024-12-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124673', 'tblTempVendorCDR_20' ) start [2024-12-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124673', 'tblTempVendorCDR_20' ) end [2024-12-28 22:45:18] Production.INFO: ProcessCDR(1,14124673,1,1,2) [2024-12-28 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124673', 'tblTempUsageDetail_20' ) start [2024-12-28 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124673', 'tblTempUsageDetail_20' ) end [2024-12-28 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:45:21] Production.INFO: ==4775== Releasing lock... [2024-12-28 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:45:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:46:04 [end_date_ymd] => 2024-12-28 22:46:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:46:04' and `end` < '2024-12-28 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-28 22:46:18] Production.INFO: count ==813 [2024-12-28 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:46:04 - End Time 2024-12-28 22:46:04 [2024-12-28 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124678', 'tblTempUsageDetail_20' ) start [2024-12-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124678', 'tblTempUsageDetail_20' ) end [2024-12-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124678', 'tblTempVendorCDR_20' ) start [2024-12-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124678', 'tblTempVendorCDR_20' ) end [2024-12-28 22:46:18] Production.INFO: ProcessCDR(1,14124678,1,1,2) [2024-12-28 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124678', 'tblTempUsageDetail_20' ) start [2024-12-28 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124678', 'tblTempUsageDetail_20' ) end [2024-12-28 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:46:21] Production.INFO: ==4851== Releasing lock... [2024-12-28 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:46:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:47:05 [end_date_ymd] => 2024-12-28 22:47:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:47:05' and `end` < '2024-12-28 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-28 22:47:18] Production.INFO: count ==813 [2024-12-28 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:47:05 - End Time 2024-12-28 22:47:05 [2024-12-28 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124683', 'tblTempUsageDetail_20' ) start [2024-12-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124683', 'tblTempUsageDetail_20' ) end [2024-12-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124683', 'tblTempVendorCDR_20' ) start [2024-12-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124683', 'tblTempVendorCDR_20' ) end [2024-12-28 22:47:18] Production.INFO: ProcessCDR(1,14124683,1,1,2) [2024-12-28 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124683', 'tblTempUsageDetail_20' ) start [2024-12-28 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124683', 'tblTempUsageDetail_20' ) end [2024-12-28 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:47:21] Production.INFO: ==4922== Releasing lock... [2024-12-28 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:47:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:48:05 [end_date_ymd] => 2024-12-28 22:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:48:05' and `end` < '2024-12-28 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-28 22:48:17] Production.INFO: count ==817 [2024-12-28 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:48:05 - End Time 2024-12-28 22:48:05 [2024-12-28 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124688', 'tblTempUsageDetail_20' ) start [2024-12-28 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124688', 'tblTempUsageDetail_20' ) end [2024-12-28 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124688', 'tblTempVendorCDR_20' ) start [2024-12-28 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124688', 'tblTempVendorCDR_20' ) end [2024-12-28 22:48:17] Production.INFO: ProcessCDR(1,14124688,1,1,2) [2024-12-28 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124688', 'tblTempUsageDetail_20' ) start [2024-12-28 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124688', 'tblTempUsageDetail_20' ) end [2024-12-28 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:48:20] Production.INFO: ==4993== Releasing lock... [2024-12-28 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:48:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:49:04 [end_date_ymd] => 2024-12-28 22:49:04 [RateCDR] => 1 ) [2024-12-28 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-28 19:49:04' and `end` < '2024-12-28 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-28 22:49:17] Production.INFO: count ==817 [2024-12-28 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:49:04 - End Time 2024-12-28 22:49:04 [2024-12-28 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124689', 'tblTempUsageDetail_20' ) start [2024-12-28 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124689', 'tblTempUsageDetail_20' ) end [2024-12-28 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124689', 'tblTempVendorCDR_20' ) start [2024-12-28 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124689', 'tblTempVendorCDR_20' ) end [2024-12-28 22:49:17] Production.INFO: ProcessCDR(1,14124689,1,1,2) [2024-12-28 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124689', 'tblTempUsageDetail_20' ) start [2024-12-28 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124689', 'tblTempUsageDetail_20' ) end [2024-12-28 22:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:49:20] Production.INFO: ==5104== Releasing lock... [2024-12-28 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:49:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:50:06 [end_date_ymd] => 2024-12-28 22:50:06 [RateCDR] => 1 ) [2024-12-28 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:50:06' and `end` < '2024-12-28 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:50:18] Production.INFO: count ==814 [2024-12-28 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:50:06 - End Time 2024-12-28 22:50:06 [2024-12-28 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124698', 'tblTempUsageDetail_20' ) start [2024-12-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124698', 'tblTempUsageDetail_20' ) end [2024-12-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124698', 'tblTempVendorCDR_20' ) start [2024-12-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124698', 'tblTempVendorCDR_20' ) end [2024-12-28 22:50:18] Production.INFO: ProcessCDR(1,14124698,1,1,2) [2024-12-28 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124698', 'tblTempUsageDetail_20' ) start [2024-12-28 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124698', 'tblTempUsageDetail_20' ) end [2024-12-28 22:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:50:22] Production.INFO: ==5183== Releasing lock... [2024-12-28 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:50:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-28 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:51:05 [end_date_ymd] => 2024-12-28 22:51:05 [RateCDR] => 1 ) [2024-12-28 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:51:05' and `end` < '2024-12-28 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:51:19] Production.INFO: count ==788 [2024-12-28 22:51:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:51:05 - End Time 2024-12-28 22:51:05 [2024-12-28 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124704', 'tblTempUsageDetail_20' ) start [2024-12-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124704', 'tblTempUsageDetail_20' ) end [2024-12-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124704', 'tblTempVendorCDR_20' ) start [2024-12-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124704', 'tblTempVendorCDR_20' ) end [2024-12-28 22:51:19] Production.INFO: ProcessCDR(1,14124704,1,1,2) [2024-12-28 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124704', 'tblTempUsageDetail_20' ) start [2024-12-28 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124704', 'tblTempUsageDetail_20' ) end [2024-12-28 22:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:51:22] Production.INFO: ==5265== Releasing lock... [2024-12-28 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:51:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:52:05 [end_date_ymd] => 2024-12-28 22:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:52:05' and `end` < '2024-12-28 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-28 22:52:18] Production.INFO: count ==785 [2024-12-28 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-28 19:52:05 - End Time 2024-12-28 22:52:05 [2024-12-28 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124709', 'tblTempUsageDetail_20' ) start [2024-12-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124709', 'tblTempUsageDetail_20' ) end [2024-12-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124709', 'tblTempVendorCDR_20' ) start [2024-12-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124709', 'tblTempVendorCDR_20' ) end [2024-12-28 22:52:18] Production.INFO: ProcessCDR(1,14124709,1,1,2) [2024-12-28 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124709', 'tblTempUsageDetail_20' ) start [2024-12-28 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124709', 'tblTempUsageDetail_20' ) end [2024-12-28 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:52:21] Production.INFO: ==5338== Releasing lock... [2024-12-28 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:52:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:53:05 [end_date_ymd] => 2024-12-28 22:53:05 [RateCDR] => 1 ) [2024-12-28 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:53:05' and `end` < '2024-12-28 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:53:19] Production.INFO: count ==785 [2024-12-28 22:53:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:53:05 - End Time 2024-12-28 22:53:05 [2024-12-28 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124714', 'tblTempUsageDetail_20' ) start [2024-12-28 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124714', 'tblTempUsageDetail_20' ) end [2024-12-28 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124714', 'tblTempVendorCDR_20' ) start [2024-12-28 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124714', 'tblTempVendorCDR_20' ) end [2024-12-28 22:53:19] Production.INFO: ProcessCDR(1,14124714,1,1,2) [2024-12-28 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124714', 'tblTempUsageDetail_20' ) start [2024-12-28 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124714', 'tblTempUsageDetail_20' ) end [2024-12-28 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:53:22] Production.INFO: ==5412== Releasing lock... [2024-12-28 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:53:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:54:05 [end_date_ymd] => 2024-12-28 22:54:05 [RateCDR] => 1 ) [2024-12-28 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:54:05' and `end` < '2024-12-28 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:54:17] Production.INFO: count ==785 [2024-12-28 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:54:05 - End Time 2024-12-28 22:54:05 [2024-12-28 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124719', 'tblTempUsageDetail_20' ) start [2024-12-28 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124719', 'tblTempUsageDetail_20' ) end [2024-12-28 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124719', 'tblTempVendorCDR_20' ) start [2024-12-28 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124719', 'tblTempVendorCDR_20' ) end [2024-12-28 22:54:17] Production.INFO: ProcessCDR(1,14124719,1,1,2) [2024-12-28 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124719', 'tblTempUsageDetail_20' ) start [2024-12-28 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124719', 'tblTempUsageDetail_20' ) end [2024-12-28 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:54:20] Production.INFO: ==5495== Releasing lock... [2024-12-28 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:54:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:55:04 [end_date_ymd] => 2024-12-28 22:55:04 [RateCDR] => 1 ) [2024-12-28 22: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-28 19:55:04' and `end` < '2024-12-28 22: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-28 22:55:17] Production.INFO: count ==788 [2024-12-28 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:55:04 - End Time 2024-12-28 22:55:04 [2024-12-28 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124724', 'tblTempUsageDetail_20' ) start [2024-12-28 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124724', 'tblTempUsageDetail_20' ) end [2024-12-28 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124724', 'tblTempVendorCDR_20' ) start [2024-12-28 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124724', 'tblTempVendorCDR_20' ) end [2024-12-28 22:55:17] Production.INFO: ProcessCDR(1,14124724,1,1,2) [2024-12-28 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124724', 'tblTempUsageDetail_20' ) start [2024-12-28 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124724', 'tblTempUsageDetail_20' ) end [2024-12-28 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:55:20] Production.INFO: ==5592== Releasing lock... [2024-12-28 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:55:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:56:05 [end_date_ymd] => 2024-12-28 22:56:05 [RateCDR] => 1 ) [2024-12-28 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:56:05' and `end` < '2024-12-28 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:56:18] Production.INFO: count ==788 [2024-12-28 22:56:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:56:05 - End Time 2024-12-28 22:56:05 [2024-12-28 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124729', 'tblTempUsageDetail_20' ) start [2024-12-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124729', 'tblTempUsageDetail_20' ) end [2024-12-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124729', 'tblTempVendorCDR_20' ) start [2024-12-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124729', 'tblTempVendorCDR_20' ) end [2024-12-28 22:56:19] Production.INFO: ProcessCDR(1,14124729,1,1,2) [2024-12-28 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124729', 'tblTempUsageDetail_20' ) start [2024-12-28 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124729', 'tblTempUsageDetail_20' ) end [2024-12-28 22:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:56:22] Production.INFO: ==5694== Releasing lock... [2024-12-28 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:56:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:57:04 [end_date_ymd] => 2024-12-28 22:57:04 [RateCDR] => 1 ) [2024-12-28 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 19:57:04' and `end` < '2024-12-28 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 22:57:17] Production.INFO: count ==787 [2024-12-28 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 19:57:04 - End Time 2024-12-28 22:57:04 [2024-12-28 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124734', 'tblTempUsageDetail_20' ) start [2024-12-28 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124734', 'tblTempUsageDetail_20' ) end [2024-12-28 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124734', 'tblTempVendorCDR_20' ) start [2024-12-28 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124734', 'tblTempVendorCDR_20' ) end [2024-12-28 22:57:17] Production.INFO: ProcessCDR(1,14124734,1,1,2) [2024-12-28 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124734', 'tblTempUsageDetail_20' ) start [2024-12-28 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124734', 'tblTempUsageDetail_20' ) end [2024-12-28 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:57:20] Production.INFO: ==5793== Releasing lock... [2024-12-28 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:57:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:58:05 [end_date_ymd] => 2024-12-28 22:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:58:05' and `end` < '2024-12-28 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-28 22:58:18] Production.INFO: count ==787 [2024-12-28 22:58:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:58:05 - End Time 2024-12-28 22:58:05 [2024-12-28 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124739', 'tblTempUsageDetail_20' ) start [2024-12-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124739', 'tblTempUsageDetail_20' ) end [2024-12-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124739', 'tblTempVendorCDR_20' ) start [2024-12-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124739', 'tblTempVendorCDR_20' ) end [2024-12-28 22:58:19] Production.INFO: ProcessCDR(1,14124739,1,1,2) [2024-12-28 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124739', 'tblTempUsageDetail_20' ) start [2024-12-28 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124739', 'tblTempUsageDetail_20' ) end [2024-12-28 22:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:58:22] Production.INFO: ==5891== Releasing lock... [2024-12-28 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:58:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 19:59:05 [end_date_ymd] => 2024-12-28 22:59:05 [RateCDR] => 1 ) [2024-12-28 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-28 19:59:05' and `end` < '2024-12-28 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-28 22:59:18] Production.INFO: count ==787 [2024-12-28 22:59:19] Production.ERROR: pbx CDR StartTime 2024-12-28 19:59:05 - End Time 2024-12-28 22:59:05 [2024-12-28 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124744', 'tblTempUsageDetail_20' ) start [2024-12-28 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124744', 'tblTempUsageDetail_20' ) end [2024-12-28 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124744', 'tblTempVendorCDR_20' ) start [2024-12-28 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124744', 'tblTempVendorCDR_20' ) end [2024-12-28 22:59:19] Production.INFO: ProcessCDR(1,14124744,1,1,2) [2024-12-28 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124744', 'tblTempUsageDetail_20' ) start [2024-12-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124744', 'tblTempUsageDetail_20' ) end [2024-12-28 22:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 22:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 22:59:22] Production.INFO: ==5992== Releasing lock... [2024-12-28 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 22:59:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:00:06 [end_date_ymd] => 2024-12-28 23:00:06 [RateCDR] => 1 ) [2024-12-28 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:00:06' and `end` < '2024-12-28 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:00:18] Production.INFO: count ==786 [2024-12-28 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:00:06 - End Time 2024-12-28 23:00:06 [2024-12-28 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124750', 'tblTempUsageDetail_20' ) start [2024-12-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124750', 'tblTempUsageDetail_20' ) end [2024-12-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124750', 'tblTempVendorCDR_20' ) start [2024-12-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124750', 'tblTempVendorCDR_20' ) end [2024-12-28 23:00:18] Production.INFO: ProcessCDR(1,14124750,1,1,2) [2024-12-28 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124750', 'tblTempUsageDetail_20' ) start [2024-12-28 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124750', 'tblTempUsageDetail_20' ) end [2024-12-28 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:00:21] Production.INFO: ==6099== Releasing lock... [2024-12-28 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:00:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:01:04 [end_date_ymd] => 2024-12-28 23:01:04 [RateCDR] => 1 ) [2024-12-28 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:01:04' and `end` < '2024-12-28 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:01:18] Production.INFO: count ==766 [2024-12-28 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:01:04 - End Time 2024-12-28 23:01:04 [2024-12-28 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124755', 'tblTempUsageDetail_20' ) start [2024-12-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124755', 'tblTempUsageDetail_20' ) end [2024-12-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124755', 'tblTempVendorCDR_20' ) start [2024-12-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124755', 'tblTempVendorCDR_20' ) end [2024-12-28 23:01:18] Production.INFO: ProcessCDR(1,14124755,1,1,2) [2024-12-28 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124755', 'tblTempUsageDetail_20' ) start [2024-12-28 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124755', 'tblTempUsageDetail_20' ) end [2024-12-28 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:01:21] Production.INFO: ==6210== Releasing lock... [2024-12-28 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:01:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:02:04 [end_date_ymd] => 2024-12-28 23:02:04 [RateCDR] => 1 ) [2024-12-28 23:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:02:04' and `end` < '2024-12-28 23:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:02:17] Production.INFO: count ==766 [2024-12-28 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:02:04 - End Time 2024-12-28 23:02:04 [2024-12-28 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124759', 'tblTempUsageDetail_20' ) start [2024-12-28 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124759', 'tblTempUsageDetail_20' ) end [2024-12-28 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124759', 'tblTempVendorCDR_20' ) start [2024-12-28 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124759', 'tblTempVendorCDR_20' ) end [2024-12-28 23:02:17] Production.INFO: ProcessCDR(1,14124759,1,1,2) [2024-12-28 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124759', 'tblTempUsageDetail_20' ) start [2024-12-28 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124759', 'tblTempUsageDetail_20' ) end [2024-12-28 23:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:02:20] Production.INFO: ==6389== Releasing lock... [2024-12-28 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:02:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:03:05 [end_date_ymd] => 2024-12-28 23:03:05 [RateCDR] => 1 ) [2024-12-28 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:03:05' and `end` < '2024-12-28 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:03:17] Production.INFO: count ==766 [2024-12-28 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:03:05 - End Time 2024-12-28 23:03:05 [2024-12-28 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124765', 'tblTempUsageDetail_20' ) start [2024-12-28 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124765', 'tblTempUsageDetail_20' ) end [2024-12-28 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124765', 'tblTempVendorCDR_20' ) start [2024-12-28 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124765', 'tblTempVendorCDR_20' ) end [2024-12-28 23:03:17] Production.INFO: ProcessCDR(1,14124765,1,1,2) [2024-12-28 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124765', 'tblTempUsageDetail_20' ) start [2024-12-28 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124765', 'tblTempUsageDetail_20' ) end [2024-12-28 23:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:03:20] Production.INFO: ==6489== Releasing lock... [2024-12-28 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:03:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:04:05 [end_date_ymd] => 2024-12-28 23:04:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:04:05' and `end` < '2024-12-28 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-28 23:04:20] Production.INFO: count ==766 [2024-12-28 23:04:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:04:05 - End Time 2024-12-28 23:04:05 [2024-12-28 23:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124770', 'tblTempUsageDetail_20' ) start [2024-12-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124770', 'tblTempUsageDetail_20' ) end [2024-12-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124770', 'tblTempVendorCDR_20' ) start [2024-12-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124770', 'tblTempVendorCDR_20' ) end [2024-12-28 23:04:20] Production.INFO: ProcessCDR(1,14124770,1,1,2) [2024-12-28 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124770', 'tblTempUsageDetail_20' ) start [2024-12-28 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124770', 'tblTempUsageDetail_20' ) end [2024-12-28 23:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:04:23] Production.INFO: ==6590== Releasing lock... [2024-12-28 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:04:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:05:05 [end_date_ymd] => 2024-12-28 23:05:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:05:05' and `end` < '2024-12-28 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-28 23:05:18] Production.INFO: count ==770 [2024-12-28 23:05:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:05:05 - End Time 2024-12-28 23:05:05 [2024-12-28 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124775', 'tblTempUsageDetail_20' ) start [2024-12-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124775', 'tblTempUsageDetail_20' ) end [2024-12-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124775', 'tblTempVendorCDR_20' ) start [2024-12-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124775', 'tblTempVendorCDR_20' ) end [2024-12-28 23:05:18] Production.INFO: ProcessCDR(1,14124775,1,1,2) [2024-12-28 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124775', 'tblTempUsageDetail_20' ) start [2024-12-28 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124775', 'tblTempUsageDetail_20' ) end [2024-12-28 23:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:05:23] Production.INFO: ==6807== Releasing lock... [2024-12-28 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:05:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:06:05 [end_date_ymd] => 2024-12-28 23:06:05 [RateCDR] => 1 ) [2024-12-28 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:06:05' and `end` < '2024-12-28 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:06:17] Production.INFO: count ==770 [2024-12-28 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:06:05 - End Time 2024-12-28 23:06:05 [2024-12-28 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124780', 'tblTempUsageDetail_20' ) start [2024-12-28 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124780', 'tblTempUsageDetail_20' ) end [2024-12-28 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124780', 'tblTempVendorCDR_20' ) start [2024-12-28 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124780', 'tblTempVendorCDR_20' ) end [2024-12-28 23:06:17] Production.INFO: ProcessCDR(1,14124780,1,1,2) [2024-12-28 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124780', 'tblTempUsageDetail_20' ) start [2024-12-28 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124780', 'tblTempUsageDetail_20' ) end [2024-12-28 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:06:20] Production.INFO: ==6903== Releasing lock... [2024-12-28 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:06:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:07:05 [end_date_ymd] => 2024-12-28 23:07:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:07:05' and `end` < '2024-12-28 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-28 23:07:19] Production.INFO: count ==770 [2024-12-28 23:07:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:07:05 - End Time 2024-12-28 23:07:05 [2024-12-28 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124785', 'tblTempUsageDetail_20' ) start [2024-12-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124785', 'tblTempUsageDetail_20' ) end [2024-12-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124785', 'tblTempVendorCDR_20' ) start [2024-12-28 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124785', 'tblTempVendorCDR_20' ) end [2024-12-28 23:07:20] Production.INFO: ProcessCDR(1,14124785,1,1,2) [2024-12-28 23:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124785', 'tblTempUsageDetail_20' ) start [2024-12-28 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124785', 'tblTempUsageDetail_20' ) end [2024-12-28 23:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:07:23] Production.INFO: ==7001== Releasing lock... [2024-12-28 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:07:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:08:05 [end_date_ymd] => 2024-12-28 23:08:05 [RateCDR] => 1 ) [2024-12-28 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:08:05' and `end` < '2024-12-28 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:08:18] Production.INFO: count ==770 [2024-12-28 23:08:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:08:05 - End Time 2024-12-28 23:08:05 [2024-12-28 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124790', 'tblTempUsageDetail_20' ) start [2024-12-28 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124790', 'tblTempUsageDetail_20' ) end [2024-12-28 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124790', 'tblTempVendorCDR_20' ) start [2024-12-28 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124790', 'tblTempVendorCDR_20' ) end [2024-12-28 23:08:18] Production.INFO: ProcessCDR(1,14124790,1,1,2) [2024-12-28 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124790', 'tblTempUsageDetail_20' ) start [2024-12-28 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124790', 'tblTempUsageDetail_20' ) end [2024-12-28 23:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:08:21] Production.INFO: ==7139== Releasing lock... [2024-12-28 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:08:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:09:05 [end_date_ymd] => 2024-12-28 23:09:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:09:05' and `end` < '2024-12-28 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-28 23:09:18] Production.INFO: count ==770 [2024-12-28 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:09:05 - End Time 2024-12-28 23:09:05 [2024-12-28 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124795', 'tblTempUsageDetail_20' ) start [2024-12-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124795', 'tblTempUsageDetail_20' ) end [2024-12-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124795', 'tblTempVendorCDR_20' ) start [2024-12-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124795', 'tblTempVendorCDR_20' ) end [2024-12-28 23:09:18] Production.INFO: ProcessCDR(1,14124795,1,1,2) [2024-12-28 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124795', 'tblTempUsageDetail_20' ) start [2024-12-28 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124795', 'tblTempUsageDetail_20' ) end [2024-12-28 23:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:09:21] Production.INFO: ==7280== Releasing lock... [2024-12-28 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:09:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:10:05 [end_date_ymd] => 2024-12-28 23:10:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:10:05' and `end` < '2024-12-28 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-28 23:10:18] Production.INFO: count ==770 [2024-12-28 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:10:05 - End Time 2024-12-28 23:10:05 [2024-12-28 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124799', 'tblTempUsageDetail_20' ) start [2024-12-28 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124799', 'tblTempUsageDetail_20' ) end [2024-12-28 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124799', 'tblTempVendorCDR_20' ) start [2024-12-28 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124799', 'tblTempVendorCDR_20' ) end [2024-12-28 23:10:18] Production.INFO: ProcessCDR(1,14124799,1,1,2) [2024-12-28 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124799', 'tblTempUsageDetail_20' ) start [2024-12-28 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124799', 'tblTempUsageDetail_20' ) end [2024-12-28 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:10:21] Production.INFO: ==7381== Releasing lock... [2024-12-28 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:10:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:11:04 [end_date_ymd] => 2024-12-28 23:11:04 [RateCDR] => 1 ) [2024-12-28 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:11:04' and `end` < '2024-12-28 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:11:18] Production.INFO: count ==732 [2024-12-28 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:11:04 - End Time 2024-12-28 23:11:04 [2024-12-28 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124806', 'tblTempUsageDetail_20' ) start [2024-12-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124806', 'tblTempUsageDetail_20' ) end [2024-12-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124806', 'tblTempVendorCDR_20' ) start [2024-12-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124806', 'tblTempVendorCDR_20' ) end [2024-12-28 23:11:18] Production.INFO: ProcessCDR(1,14124806,1,1,2) [2024-12-28 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124806', 'tblTempUsageDetail_20' ) start [2024-12-28 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124806', 'tblTempUsageDetail_20' ) end [2024-12-28 23:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:11:21] Production.INFO: ==7483== Releasing lock... [2024-12-28 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:11:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:12:06 [end_date_ymd] => 2024-12-28 23:12:06 [RateCDR] => 1 ) [2024-12-28 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:12:06' and `end` < '2024-12-28 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:12:18] Production.INFO: count ==730 [2024-12-28 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:12:06 - End Time 2024-12-28 23:12:06 [2024-12-28 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124811', 'tblTempUsageDetail_20' ) start [2024-12-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124811', 'tblTempUsageDetail_20' ) end [2024-12-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124811', 'tblTempVendorCDR_20' ) start [2024-12-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124811', 'tblTempVendorCDR_20' ) end [2024-12-28 23:12:18] Production.INFO: ProcessCDR(1,14124811,1,1,2) [2024-12-28 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124811', 'tblTempUsageDetail_20' ) start [2024-12-28 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124811', 'tblTempUsageDetail_20' ) end [2024-12-28 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:12:21] Production.INFO: ==7649== Releasing lock... [2024-12-28 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:12:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:13:04 [end_date_ymd] => 2024-12-28 23:13:04 [RateCDR] => 1 ) [2024-12-28 23: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-28 20:13:04' and `end` < '2024-12-28 23: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-28 23:13:17] Production.INFO: count ==729 [2024-12-28 23:13:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:13:04 - End Time 2024-12-28 23:13:04 [2024-12-28 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124816', 'tblTempUsageDetail_20' ) start [2024-12-28 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124816', 'tblTempUsageDetail_20' ) end [2024-12-28 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124816', 'tblTempVendorCDR_20' ) start [2024-12-28 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124816', 'tblTempVendorCDR_20' ) end [2024-12-28 23:13:17] Production.INFO: ProcessCDR(1,14124816,1,1,2) [2024-12-28 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124816', 'tblTempUsageDetail_20' ) start [2024-12-28 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124816', 'tblTempUsageDetail_20' ) end [2024-12-28 23:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:13:20] Production.INFO: ==7720== Releasing lock... [2024-12-28 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:13:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:14:05 [end_date_ymd] => 2024-12-28 23:14:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:14:05' and `end` < '2024-12-28 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-28 23:14:18] Production.INFO: count ==727 [2024-12-28 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:14:05 - End Time 2024-12-28 23:14:05 [2024-12-28 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124821', 'tblTempUsageDetail_20' ) start [2024-12-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124821', 'tblTempUsageDetail_20' ) end [2024-12-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124821', 'tblTempVendorCDR_20' ) start [2024-12-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124821', 'tblTempVendorCDR_20' ) end [2024-12-28 23:14:18] Production.INFO: ProcessCDR(1,14124821,1,1,2) [2024-12-28 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124821', 'tblTempUsageDetail_20' ) start [2024-12-28 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124821', 'tblTempUsageDetail_20' ) end [2024-12-28 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:14:21] Production.INFO: ==7795== Releasing lock... [2024-12-28 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:14:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:15:04 [end_date_ymd] => 2024-12-28 23:15:04 [RateCDR] => 1 ) [2024-12-28 23: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-28 20:15:04' and `end` < '2024-12-28 23: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-28 23:15:17] Production.INFO: count ==727 [2024-12-28 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:15:04 - End Time 2024-12-28 23:15:04 [2024-12-28 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124826', 'tblTempUsageDetail_20' ) start [2024-12-28 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124826', 'tblTempUsageDetail_20' ) end [2024-12-28 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124826', 'tblTempVendorCDR_20' ) start [2024-12-28 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124826', 'tblTempVendorCDR_20' ) end [2024-12-28 23:15:17] Production.INFO: ProcessCDR(1,14124826,1,1,2) [2024-12-28 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124826', 'tblTempUsageDetail_20' ) start [2024-12-28 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124826', 'tblTempUsageDetail_20' ) end [2024-12-28 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:15:20] Production.INFO: ==7935== Releasing lock... [2024-12-28 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:15:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:16:05 [end_date_ymd] => 2024-12-28 23:16:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:16:05' and `end` < '2024-12-28 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-28 23:16:19] Production.INFO: count ==727 [2024-12-28 23:16:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:16:05 - End Time 2024-12-28 23:16:05 [2024-12-28 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124831', 'tblTempUsageDetail_20' ) start [2024-12-28 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124831', 'tblTempUsageDetail_20' ) end [2024-12-28 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124831', 'tblTempVendorCDR_20' ) start [2024-12-28 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124831', 'tblTempVendorCDR_20' ) end [2024-12-28 23:16:19] Production.INFO: ProcessCDR(1,14124831,1,1,2) [2024-12-28 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124831', 'tblTempUsageDetail_20' ) start [2024-12-28 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124831', 'tblTempUsageDetail_20' ) end [2024-12-28 23:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:16:23] Production.INFO: ==8018== Releasing lock... [2024-12-28 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:16:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:17:04 [end_date_ymd] => 2024-12-28 23:17:04 [RateCDR] => 1 ) [2024-12-28 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-28 20:17:04' and `end` < '2024-12-28 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-28 23:17:18] Production.INFO: count ==732 [2024-12-28 23:17:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:17:04 - End Time 2024-12-28 23:17:04 [2024-12-28 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124836', 'tblTempUsageDetail_20' ) start [2024-12-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124836', 'tblTempUsageDetail_20' ) end [2024-12-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124836', 'tblTempVendorCDR_20' ) start [2024-12-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124836', 'tblTempVendorCDR_20' ) end [2024-12-28 23:17:18] Production.INFO: ProcessCDR(1,14124836,1,1,2) [2024-12-28 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124836', 'tblTempUsageDetail_20' ) start [2024-12-28 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124836', 'tblTempUsageDetail_20' ) end [2024-12-28 23:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:17:22] Production.INFO: ==8090== Releasing lock... [2024-12-28 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:17:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:18:04 [end_date_ymd] => 2024-12-28 23:18:04 [RateCDR] => 1 ) [2024-12-28 23:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:18:04' and `end` < '2024-12-28 23:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:18:18] Production.INFO: count ==735 [2024-12-28 23:18:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:18:04 - End Time 2024-12-28 23:18:04 [2024-12-28 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124839', 'tblTempUsageDetail_20' ) start [2024-12-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124839', 'tblTempUsageDetail_20' ) end [2024-12-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124839', 'tblTempVendorCDR_20' ) start [2024-12-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124839', 'tblTempVendorCDR_20' ) end [2024-12-28 23:18:19] Production.INFO: ProcessCDR(1,14124839,1,1,2) [2024-12-28 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124839', 'tblTempUsageDetail_20' ) start [2024-12-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124839', 'tblTempUsageDetail_20' ) end [2024-12-28 23:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:18:22] Production.INFO: ==8164== Releasing lock... [2024-12-28 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:18:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:19:05 [end_date_ymd] => 2024-12-28 23:19:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:19:05' and `end` < '2024-12-28 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-28 23:19:20] Production.INFO: count ==733 [2024-12-28 23:19:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:19:05 - End Time 2024-12-28 23:19:05 [2024-12-28 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124846', 'tblTempUsageDetail_20' ) start [2024-12-28 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124846', 'tblTempUsageDetail_20' ) end [2024-12-28 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124846', 'tblTempVendorCDR_20' ) start [2024-12-28 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124846', 'tblTempVendorCDR_20' ) end [2024-12-28 23:19:20] Production.INFO: ProcessCDR(1,14124846,1,1,2) [2024-12-28 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124846', 'tblTempUsageDetail_20' ) start [2024-12-28 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124846', 'tblTempUsageDetail_20' ) end [2024-12-28 23:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:19:23] Production.INFO: ==8237== Releasing lock... [2024-12-28 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:19:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:20:05 [end_date_ymd] => 2024-12-28 23:20:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:20:05' and `end` < '2024-12-28 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-28 23:20:18] Production.INFO: count ==733 [2024-12-28 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:20:05 - End Time 2024-12-28 23:20:05 [2024-12-28 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124852', 'tblTempUsageDetail_20' ) start [2024-12-28 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124852', 'tblTempUsageDetail_20' ) end [2024-12-28 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124852', 'tblTempVendorCDR_20' ) start [2024-12-28 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124852', 'tblTempVendorCDR_20' ) end [2024-12-28 23:20:18] Production.INFO: ProcessCDR(1,14124852,1,1,2) [2024-12-28 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124852', 'tblTempUsageDetail_20' ) start [2024-12-28 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124852', 'tblTempUsageDetail_20' ) end [2024-12-28 23:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:20:23] Production.INFO: ==8351== Releasing lock... [2024-12-28 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:20:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:21:05 [end_date_ymd] => 2024-12-28 23:21:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:21:05' and `end` < '2024-12-28 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-28 23:21:17] Production.INFO: count ==748 [2024-12-28 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:21:05 - End Time 2024-12-28 23:21:05 [2024-12-28 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124857', 'tblTempUsageDetail_20' ) start [2024-12-28 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124857', 'tblTempUsageDetail_20' ) end [2024-12-28 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124857', 'tblTempVendorCDR_20' ) start [2024-12-28 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124857', 'tblTempVendorCDR_20' ) end [2024-12-28 23:21:18] Production.INFO: ProcessCDR(1,14124857,1,1,2) [2024-12-28 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124857', 'tblTempUsageDetail_20' ) start [2024-12-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124857', 'tblTempUsageDetail_20' ) end [2024-12-28 23:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:21:22] Production.INFO: ==8428== Releasing lock... [2024-12-28 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:21:22] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:22:05 [end_date_ymd] => 2024-12-28 23:22:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:22:05' and `end` < '2024-12-28 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:22:18] Production.INFO: count ==745 [2024-12-28 23:22:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:22:05 - End Time 2024-12-28 23:22:05 [2024-12-28 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124862', 'tblTempUsageDetail_20' ) start [2024-12-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124862', 'tblTempUsageDetail_20' ) end [2024-12-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124862', 'tblTempVendorCDR_20' ) start [2024-12-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124862', 'tblTempVendorCDR_20' ) end [2024-12-28 23:22:18] Production.INFO: ProcessCDR(1,14124862,1,1,2) [2024-12-28 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124862', 'tblTempUsageDetail_20' ) start [2024-12-28 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124862', 'tblTempUsageDetail_20' ) end [2024-12-28 23:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:22:21] Production.INFO: ==8503== Releasing lock... [2024-12-28 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:22:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:23:06 [end_date_ymd] => 2024-12-28 23:23:06 [RateCDR] => 1 ) [2024-12-28 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:23:06' and `end` < '2024-12-28 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:23:20] Production.INFO: count ==745 [2024-12-28 23:23:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:23:06 - End Time 2024-12-28 23:23:06 [2024-12-28 23:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124867', 'tblTempUsageDetail_20' ) start [2024-12-28 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124867', 'tblTempUsageDetail_20' ) end [2024-12-28 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124867', 'tblTempVendorCDR_20' ) start [2024-12-28 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124867', 'tblTempVendorCDR_20' ) end [2024-12-28 23:23:20] Production.INFO: ProcessCDR(1,14124867,1,1,2) [2024-12-28 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124867', 'tblTempUsageDetail_20' ) start [2024-12-28 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124867', 'tblTempUsageDetail_20' ) end [2024-12-28 23:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:23:23] Production.INFO: ==8587== Releasing lock... [2024-12-28 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:23:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:24:05 [end_date_ymd] => 2024-12-28 23:24:05 [RateCDR] => 1 ) [2024-12-28 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:24:05' and `end` < '2024-12-28 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:24:17] Production.INFO: count ==742 [2024-12-28 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:24:05 - End Time 2024-12-28 23:24:05 [2024-12-28 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124872', 'tblTempUsageDetail_20' ) start [2024-12-28 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124872', 'tblTempUsageDetail_20' ) end [2024-12-28 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124872', 'tblTempVendorCDR_20' ) start [2024-12-28 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124872', 'tblTempVendorCDR_20' ) end [2024-12-28 23:24:17] Production.INFO: ProcessCDR(1,14124872,1,1,2) [2024-12-28 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124872', 'tblTempUsageDetail_20' ) start [2024-12-28 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124872', 'tblTempUsageDetail_20' ) end [2024-12-28 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:24:20] Production.INFO: ==8668== Releasing lock... [2024-12-28 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:24:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:25:05 [end_date_ymd] => 2024-12-28 23:25:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:25:05' and `end` < '2024-12-28 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-28 23:25:17] Production.INFO: count ==738 [2024-12-28 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:25:05 - End Time 2024-12-28 23:25:05 [2024-12-28 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124877', 'tblTempUsageDetail_20' ) start [2024-12-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124877', 'tblTempUsageDetail_20' ) end [2024-12-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124877', 'tblTempVendorCDR_20' ) start [2024-12-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124877', 'tblTempVendorCDR_20' ) end [2024-12-28 23:25:17] Production.INFO: ProcessCDR(1,14124877,1,1,2) [2024-12-28 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124877', 'tblTempUsageDetail_20' ) start [2024-12-28 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124877', 'tblTempUsageDetail_20' ) end [2024-12-28 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:25:20] Production.INFO: ==8751== Releasing lock... [2024-12-28 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:25:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:26:04 [end_date_ymd] => 2024-12-28 23:26:04 [RateCDR] => 1 ) [2024-12-28 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:26:04' and `end` < '2024-12-28 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:26:18] Production.INFO: count ==738 [2024-12-28 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:26:04 - End Time 2024-12-28 23:26:04 [2024-12-28 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124882', 'tblTempUsageDetail_20' ) start [2024-12-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124882', 'tblTempUsageDetail_20' ) end [2024-12-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124882', 'tblTempVendorCDR_20' ) start [2024-12-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124882', 'tblTempVendorCDR_20' ) end [2024-12-28 23:26:18] Production.INFO: ProcessCDR(1,14124882,1,1,2) [2024-12-28 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124882', 'tblTempUsageDetail_20' ) start [2024-12-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124882', 'tblTempUsageDetail_20' ) end [2024-12-28 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:26:21] Production.INFO: ==8825== Releasing lock... [2024-12-28 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:26:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:27:05 [end_date_ymd] => 2024-12-28 23:27:05 [RateCDR] => 1 ) [2024-12-28 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:27:05' and `end` < '2024-12-28 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:27:17] Production.INFO: count ==737 [2024-12-28 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:27:05 - End Time 2024-12-28 23:27:05 [2024-12-28 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124887', 'tblTempUsageDetail_20' ) start [2024-12-28 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124887', 'tblTempUsageDetail_20' ) end [2024-12-28 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124887', 'tblTempVendorCDR_20' ) start [2024-12-28 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124887', 'tblTempVendorCDR_20' ) end [2024-12-28 23:27:17] Production.INFO: ProcessCDR(1,14124887,1,1,2) [2024-12-28 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124887', 'tblTempUsageDetail_20' ) start [2024-12-28 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124887', 'tblTempUsageDetail_20' ) end [2024-12-28 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:27:20] Production.INFO: ==8911== Releasing lock... [2024-12-28 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:27:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:28:05 [end_date_ymd] => 2024-12-28 23:28:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:28:05' and `end` < '2024-12-28 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-28 23:28:18] Production.INFO: count ==737 [2024-12-28 23:28:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:28:05 - End Time 2024-12-28 23:28:05 [2024-12-28 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124892', 'tblTempUsageDetail_20' ) start [2024-12-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124892', 'tblTempUsageDetail_20' ) end [2024-12-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124892', 'tblTempVendorCDR_20' ) start [2024-12-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124892', 'tblTempVendorCDR_20' ) end [2024-12-28 23:28:18] Production.INFO: ProcessCDR(1,14124892,1,1,2) [2024-12-28 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124892', 'tblTempUsageDetail_20' ) start [2024-12-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124892', 'tblTempUsageDetail_20' ) end [2024-12-28 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:28:21] Production.INFO: ==8997== Releasing lock... [2024-12-28 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:28:21] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:29:05 [end_date_ymd] => 2024-12-28 23:29:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:29:05' and `end` < '2024-12-28 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-28 23:29:20] Production.INFO: count ==737 [2024-12-28 23:29:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:29:05 - End Time 2024-12-28 23:29:05 [2024-12-28 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124897', 'tblTempUsageDetail_20' ) start [2024-12-28 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124897', 'tblTempUsageDetail_20' ) end [2024-12-28 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124897', 'tblTempVendorCDR_20' ) start [2024-12-28 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124897', 'tblTempVendorCDR_20' ) end [2024-12-28 23:29:20] Production.INFO: ProcessCDR(1,14124897,1,1,2) [2024-12-28 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124897', 'tblTempUsageDetail_20' ) start [2024-12-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124897', 'tblTempUsageDetail_20' ) end [2024-12-28 23:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:29:23] Production.INFO: ==9092== Releasing lock... [2024-12-28 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:29:23] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:30:05 [end_date_ymd] => 2024-12-28 23:30:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:30:05' and `end` < '2024-12-28 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-28 23:30:17] Production.INFO: count ==737 [2024-12-28 23:30:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:30:05 - End Time 2024-12-28 23:30:05 [2024-12-28 23:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124903', 'tblTempUsageDetail_20' ) start [2024-12-28 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124903', 'tblTempUsageDetail_20' ) end [2024-12-28 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124903', 'tblTempVendorCDR_20' ) start [2024-12-28 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124903', 'tblTempVendorCDR_20' ) end [2024-12-28 23:30:17] Production.INFO: ProcessCDR(1,14124903,1,1,2) [2024-12-28 23:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124903', 'tblTempUsageDetail_20' ) start [2024-12-28 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124903', 'tblTempUsageDetail_20' ) end [2024-12-28 23:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:30:20] Production.INFO: ==9175== Releasing lock... [2024-12-28 23:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:30:20] Production.INFO: 33 MB #Memory Used# [2024-12-28 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:31:05 [end_date_ymd] => 2024-12-28 23:31:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:31:05' and `end` < '2024-12-28 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-28 23:31:17] Production.INFO: count ==725 [2024-12-28 23:31:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:31:05 - End Time 2024-12-28 23:31:05 [2024-12-28 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124908', 'tblTempUsageDetail_20' ) start [2024-12-28 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124908', 'tblTempUsageDetail_20' ) end [2024-12-28 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124908', 'tblTempVendorCDR_20' ) start [2024-12-28 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124908', 'tblTempVendorCDR_20' ) end [2024-12-28 23:31:17] Production.INFO: ProcessCDR(1,14124908,1,1,2) [2024-12-28 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124908', 'tblTempUsageDetail_20' ) start [2024-12-28 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124908', 'tblTempUsageDetail_20' ) end [2024-12-28 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:31:21] Production.INFO: ==9267== Releasing lock... [2024-12-28 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:31:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:32:05 [end_date_ymd] => 2024-12-28 23:32:05 [RateCDR] => 1 ) [2024-12-28 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:32:05' and `end` < '2024-12-28 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:32:19] Production.INFO: count ==725 [2024-12-28 23:32:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:32:05 - End Time 2024-12-28 23:32:05 [2024-12-28 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124913', 'tblTempUsageDetail_20' ) start [2024-12-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124913', 'tblTempUsageDetail_20' ) end [2024-12-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124913', 'tblTempVendorCDR_20' ) start [2024-12-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124913', 'tblTempVendorCDR_20' ) end [2024-12-28 23:32:19] Production.INFO: ProcessCDR(1,14124913,1,1,2) [2024-12-28 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124913', 'tblTempUsageDetail_20' ) start [2024-12-28 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124913', 'tblTempUsageDetail_20' ) end [2024-12-28 23:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:32:22] Production.INFO: ==9363== Releasing lock... [2024-12-28 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:32:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:33:05 [end_date_ymd] => 2024-12-28 23:33:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:33:05' and `end` < '2024-12-28 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-28 23:33:17] Production.INFO: count ==719 [2024-12-28 23:33:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:33:05 - End Time 2024-12-28 23:33:05 [2024-12-28 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124918', 'tblTempUsageDetail_20' ) start [2024-12-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124918', 'tblTempUsageDetail_20' ) end [2024-12-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124918', 'tblTempVendorCDR_20' ) start [2024-12-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124918', 'tblTempVendorCDR_20' ) end [2024-12-28 23:33:17] Production.INFO: ProcessCDR(1,14124918,1,1,2) [2024-12-28 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124918', 'tblTempUsageDetail_20' ) start [2024-12-28 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124918', 'tblTempUsageDetail_20' ) end [2024-12-28 23:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:33:21] Production.INFO: ==9450== Releasing lock... [2024-12-28 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:33:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:34:05 [end_date_ymd] => 2024-12-28 23:34:05 [RateCDR] => 1 ) [2024-12-28 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:34:05' and `end` < '2024-12-28 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:34:18] Production.INFO: count ==709 [2024-12-28 23:34:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:34:05 - End Time 2024-12-28 23:34:05 [2024-12-28 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124923', 'tblTempUsageDetail_20' ) start [2024-12-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124923', 'tblTempUsageDetail_20' ) end [2024-12-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124923', 'tblTempVendorCDR_20' ) start [2024-12-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124923', 'tblTempVendorCDR_20' ) end [2024-12-28 23:34:18] Production.INFO: ProcessCDR(1,14124923,1,1,2) [2024-12-28 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124923', 'tblTempUsageDetail_20' ) start [2024-12-28 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124923', 'tblTempUsageDetail_20' ) end [2024-12-28 23:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:34:22] Production.INFO: ==9534== Releasing lock... [2024-12-28 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:34:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:35:05 [end_date_ymd] => 2024-12-28 23:35:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:35:05' and `end` < '2024-12-28 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-28 23:35:17] Production.INFO: count ==704 [2024-12-28 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:35:05 - End Time 2024-12-28 23:35:05 [2024-12-28 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124928', 'tblTempUsageDetail_20' ) start [2024-12-28 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124928', 'tblTempUsageDetail_20' ) end [2024-12-28 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124928', 'tblTempVendorCDR_20' ) start [2024-12-28 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124928', 'tblTempVendorCDR_20' ) end [2024-12-28 23:35:17] Production.INFO: ProcessCDR(1,14124928,1,1,2) [2024-12-28 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124928', 'tblTempUsageDetail_20' ) start [2024-12-28 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124928', 'tblTempUsageDetail_20' ) end [2024-12-28 23:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:35:22] Production.INFO: ==9627== Releasing lock... [2024-12-28 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:35:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:36:05 [end_date_ymd] => 2024-12-28 23:36:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:36:05' and `end` < '2024-12-28 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-28 23:36:17] Production.INFO: count ==704 [2024-12-28 23:36:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:36:05 - End Time 2024-12-28 23:36:05 [2024-12-28 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124933', 'tblTempUsageDetail_20' ) start [2024-12-28 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124933', 'tblTempUsageDetail_20' ) end [2024-12-28 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124933', 'tblTempVendorCDR_20' ) start [2024-12-28 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124933', 'tblTempVendorCDR_20' ) end [2024-12-28 23:36:17] Production.INFO: ProcessCDR(1,14124933,1,1,2) [2024-12-28 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124933', 'tblTempUsageDetail_20' ) start [2024-12-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124933', 'tblTempUsageDetail_20' ) end [2024-12-28 23:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:36:22] Production.INFO: ==9759== Releasing lock... [2024-12-28 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:36:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:37:05 [end_date_ymd] => 2024-12-28 23:37:05 [RateCDR] => 1 ) [2024-12-28 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:37:05' and `end` < '2024-12-28 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:37:17] Production.INFO: count ==704 [2024-12-28 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:37:05 - End Time 2024-12-28 23:37:05 [2024-12-28 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124938', 'tblTempUsageDetail_20' ) start [2024-12-28 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124938', 'tblTempUsageDetail_20' ) end [2024-12-28 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124938', 'tblTempVendorCDR_20' ) start [2024-12-28 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124938', 'tblTempVendorCDR_20' ) end [2024-12-28 23:37:17] Production.INFO: ProcessCDR(1,14124938,1,1,2) [2024-12-28 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124938', 'tblTempUsageDetail_20' ) start [2024-12-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124938', 'tblTempUsageDetail_20' ) end [2024-12-28 23:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:37:22] Production.INFO: ==9846== Releasing lock... [2024-12-28 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:37:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:38:05 [end_date_ymd] => 2024-12-28 23:38:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:38:05' and `end` < '2024-12-28 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-28 23:38:18] Production.INFO: count ==705 [2024-12-28 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:38:05 - End Time 2024-12-28 23:38:05 [2024-12-28 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124943', 'tblTempUsageDetail_20' ) start [2024-12-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124943', 'tblTempUsageDetail_20' ) end [2024-12-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124943', 'tblTempVendorCDR_20' ) start [2024-12-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124943', 'tblTempVendorCDR_20' ) end [2024-12-28 23:38:18] Production.INFO: ProcessCDR(1,14124943,1,1,2) [2024-12-28 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124943', 'tblTempUsageDetail_20' ) start [2024-12-28 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124943', 'tblTempUsageDetail_20' ) end [2024-12-28 23:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:38:23] Production.INFO: ==9934== Releasing lock... [2024-12-28 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:38:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:39:05 [end_date_ymd] => 2024-12-28 23:39:05 [RateCDR] => 1 ) [2024-12-28 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:39:05' and `end` < '2024-12-28 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:39:18] Production.INFO: count ==704 [2024-12-28 23:39:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:39:05 - End Time 2024-12-28 23:39:05 [2024-12-28 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124948', 'tblTempUsageDetail_20' ) start [2024-12-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124948', 'tblTempUsageDetail_20' ) end [2024-12-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124948', 'tblTempVendorCDR_20' ) start [2024-12-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124948', 'tblTempVendorCDR_20' ) end [2024-12-28 23:39:18] Production.INFO: ProcessCDR(1,14124948,1,1,2) [2024-12-28 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124948', 'tblTempUsageDetail_20' ) start [2024-12-28 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124948', 'tblTempUsageDetail_20' ) end [2024-12-28 23:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:39:23] Production.INFO: ==10023== Releasing lock... [2024-12-28 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:39:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:40:05 [end_date_ymd] => 2024-12-28 23:40:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:40:05' and `end` < '2024-12-28 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-28 23:40:17] Production.INFO: count ==706 [2024-12-28 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:40:05 - End Time 2024-12-28 23:40:05 [2024-12-28 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124954', 'tblTempUsageDetail_20' ) start [2024-12-28 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124954', 'tblTempUsageDetail_20' ) end [2024-12-28 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124954', 'tblTempVendorCDR_20' ) start [2024-12-28 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124954', 'tblTempVendorCDR_20' ) end [2024-12-28 23:40:17] Production.INFO: ProcessCDR(1,14124954,1,1,2) [2024-12-28 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124954', 'tblTempUsageDetail_20' ) start [2024-12-28 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124954', 'tblTempUsageDetail_20' ) end [2024-12-28 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:40:21] Production.INFO: ==10119== Releasing lock... [2024-12-28 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:40:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-28 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:41:05 [end_date_ymd] => 2024-12-28 23:41:05 [RateCDR] => 1 ) [2024-12-28 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:41:05' and `end` < '2024-12-28 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:41:17] Production.INFO: count ==673 [2024-12-28 23:41:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:41:05 - End Time 2024-12-28 23:41:05 [2024-12-28 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124959', 'tblTempUsageDetail_20' ) start [2024-12-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124959', 'tblTempUsageDetail_20' ) end [2024-12-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124959', 'tblTempVendorCDR_20' ) start [2024-12-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124959', 'tblTempVendorCDR_20' ) end [2024-12-28 23:41:17] Production.INFO: ProcessCDR(1,14124959,1,1,2) [2024-12-28 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124959', 'tblTempUsageDetail_20' ) start [2024-12-28 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124959', 'tblTempUsageDetail_20' ) end [2024-12-28 23:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:41:21] Production.INFO: ==10207== Releasing lock... [2024-12-28 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:41:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:42:06 [end_date_ymd] => 2024-12-28 23:42:06 [RateCDR] => 1 ) [2024-12-28 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:42:06' and `end` < '2024-12-28 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:42:18] Production.INFO: count ==669 [2024-12-28 23:42:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:42:06 - End Time 2024-12-28 23:42:06 [2024-12-28 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124964', 'tblTempUsageDetail_20' ) start [2024-12-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124964', 'tblTempUsageDetail_20' ) end [2024-12-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124964', 'tblTempVendorCDR_20' ) start [2024-12-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124964', 'tblTempVendorCDR_20' ) end [2024-12-28 23:42:18] Production.INFO: ProcessCDR(1,14124964,1,1,2) [2024-12-28 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124964', 'tblTempUsageDetail_20' ) start [2024-12-28 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124964', 'tblTempUsageDetail_20' ) end [2024-12-28 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:42:21] Production.INFO: ==10291== Releasing lock... [2024-12-28 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:42:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:43:04 [end_date_ymd] => 2024-12-28 23:43:04 [RateCDR] => 1 ) [2024-12-28 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:43:04' and `end` < '2024-12-28 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:43:17] Production.INFO: count ==669 [2024-12-28 23:43:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:43:04 - End Time 2024-12-28 23:43:04 [2024-12-28 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124969', 'tblTempUsageDetail_20' ) start [2024-12-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124969', 'tblTempUsageDetail_20' ) end [2024-12-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124969', 'tblTempVendorCDR_20' ) start [2024-12-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124969', 'tblTempVendorCDR_20' ) end [2024-12-28 23:43:17] Production.INFO: ProcessCDR(1,14124969,1,1,2) [2024-12-28 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124969', 'tblTempUsageDetail_20' ) start [2024-12-28 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124969', 'tblTempUsageDetail_20' ) end [2024-12-28 23:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:43:20] Production.INFO: ==10386== Releasing lock... [2024-12-28 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:43:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:44:05 [end_date_ymd] => 2024-12-28 23:44:05 [RateCDR] => 1 ) [2024-12-28 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:44:05' and `end` < '2024-12-28 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:44:17] Production.INFO: count ==669 [2024-12-28 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:44:05 - End Time 2024-12-28 23:44:05 [2024-12-28 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124974', 'tblTempUsageDetail_20' ) start [2024-12-28 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124974', 'tblTempUsageDetail_20' ) end [2024-12-28 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124974', 'tblTempVendorCDR_20' ) start [2024-12-28 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124974', 'tblTempVendorCDR_20' ) end [2024-12-28 23:44:17] Production.INFO: ProcessCDR(1,14124974,1,1,2) [2024-12-28 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124974', 'tblTempUsageDetail_20' ) start [2024-12-28 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124974', 'tblTempUsageDetail_20' ) end [2024-12-28 23:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:44:20] Production.INFO: ==10480== Releasing lock... [2024-12-28 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:44:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:45:04 [end_date_ymd] => 2024-12-28 23:45:04 [RateCDR] => 1 ) [2024-12-28 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:45:04' and `end` < '2024-12-28 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:45:17] Production.INFO: count ==670 [2024-12-28 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:45:04 - End Time 2024-12-28 23:45:04 [2024-12-28 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124979', 'tblTempUsageDetail_20' ) start [2024-12-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124979', 'tblTempUsageDetail_20' ) end [2024-12-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124979', 'tblTempVendorCDR_20' ) start [2024-12-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124979', 'tblTempVendorCDR_20' ) end [2024-12-28 23:45:17] Production.INFO: ProcessCDR(1,14124979,1,1,2) [2024-12-28 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124979', 'tblTempUsageDetail_20' ) start [2024-12-28 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124979', 'tblTempUsageDetail_20' ) end [2024-12-28 23:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:45:21] Production.INFO: ==10570== Releasing lock... [2024-12-28 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:45:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:46:06 [end_date_ymd] => 2024-12-28 23:46:06 [RateCDR] => 1 ) [2024-12-28 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:46:06' and `end` < '2024-12-28 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:46:20] Production.INFO: count ==669 [2024-12-28 23:46:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:46:06 - End Time 2024-12-28 23:46:06 [2024-12-28 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124984', 'tblTempUsageDetail_20' ) start [2024-12-28 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124984', 'tblTempUsageDetail_20' ) end [2024-12-28 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124984', 'tblTempVendorCDR_20' ) start [2024-12-28 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124984', 'tblTempVendorCDR_20' ) end [2024-12-28 23:46:20] Production.INFO: ProcessCDR(1,14124984,1,1,2) [2024-12-28 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124984', 'tblTempUsageDetail_20' ) start [2024-12-28 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124984', 'tblTempUsageDetail_20' ) end [2024-12-28 23:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:46:23] Production.INFO: ==10658== Releasing lock... [2024-12-28 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:46:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:47:04 [end_date_ymd] => 2024-12-28 23:47:04 [RateCDR] => 1 ) [2024-12-28 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:47:04' and `end` < '2024-12-28 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:47:17] Production.INFO: count ==671 [2024-12-28 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:47:04 - End Time 2024-12-28 23:47:04 [2024-12-28 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124989', 'tblTempUsageDetail_20' ) start [2024-12-28 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124989', 'tblTempUsageDetail_20' ) end [2024-12-28 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124989', 'tblTempVendorCDR_20' ) start [2024-12-28 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124989', 'tblTempVendorCDR_20' ) end [2024-12-28 23:47:17] Production.INFO: ProcessCDR(1,14124989,1,1,2) [2024-12-28 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124989', 'tblTempUsageDetail_20' ) start [2024-12-28 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124989', 'tblTempUsageDetail_20' ) end [2024-12-28 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:47:20] Production.INFO: ==10748== Releasing lock... [2024-12-28 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:47:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:48:05 [end_date_ymd] => 2024-12-28 23:48:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:48:05' and `end` < '2024-12-28 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-28 23:48:19] Production.INFO: count ==671 [2024-12-28 23:48:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:48:05 - End Time 2024-12-28 23:48:05 [2024-12-28 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124994', 'tblTempUsageDetail_20' ) start [2024-12-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124994', 'tblTempUsageDetail_20' ) end [2024-12-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124994', 'tblTempVendorCDR_20' ) start [2024-12-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124994', 'tblTempVendorCDR_20' ) end [2024-12-28 23:48:19] Production.INFO: ProcessCDR(1,14124994,1,1,2) [2024-12-28 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124994', 'tblTempUsageDetail_20' ) start [2024-12-28 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124994', 'tblTempUsageDetail_20' ) end [2024-12-28 23:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:48:22] Production.INFO: ==10833== Releasing lock... [2024-12-28 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:48:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:49:05 [end_date_ymd] => 2024-12-28 23:49:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:49:05' and `end` < '2024-12-28 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-28 23:49:19] Production.INFO: count ==670 [2024-12-28 23:49:19] Production.ERROR: pbx CDR StartTime 2024-12-28 20:49:05 - End Time 2024-12-28 23:49:05 [2024-12-28 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124999', 'tblTempUsageDetail_20' ) start [2024-12-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14124999', 'tblTempUsageDetail_20' ) end [2024-12-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124999', 'tblTempVendorCDR_20' ) start [2024-12-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14124999', 'tblTempVendorCDR_20' ) end [2024-12-28 23:49:19] Production.INFO: ProcessCDR(1,14124999,1,1,2) [2024-12-28 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14124999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14124999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14124999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14124999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124999', 'tblTempUsageDetail_20' ) start [2024-12-28 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14124999', 'tblTempUsageDetail_20' ) end [2024-12-28 23:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:49:22] Production.INFO: ==10925== Releasing lock... [2024-12-28 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:49:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:50:05 [end_date_ymd] => 2024-12-28 23:50:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:50:05' and `end` < '2024-12-28 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-28 23:50:18] Production.INFO: count ==667 [2024-12-28 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-28 20:50:05 - End Time 2024-12-28 23:50:05 [2024-12-28 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125005', 'tblTempUsageDetail_20' ) start [2024-12-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125005', 'tblTempUsageDetail_20' ) end [2024-12-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125005', 'tblTempVendorCDR_20' ) start [2024-12-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125005', 'tblTempVendorCDR_20' ) end [2024-12-28 23:50:18] Production.INFO: ProcessCDR(1,14125005,1,1,2) [2024-12-28 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125005', 'tblTempUsageDetail_20' ) start [2024-12-28 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125005', 'tblTempUsageDetail_20' ) end [2024-12-28 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:50:21] Production.INFO: ==11014== Releasing lock... [2024-12-28 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:50:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:51:05 [end_date_ymd] => 2024-12-28 23:51:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:51:05' and `end` < '2024-12-28 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-28 23:51:17] Production.INFO: count ==665 [2024-12-28 23:51:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:51:05 - End Time 2024-12-28 23:51:05 [2024-12-28 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125010', 'tblTempUsageDetail_20' ) start [2024-12-28 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125010', 'tblTempUsageDetail_20' ) end [2024-12-28 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125010', 'tblTempVendorCDR_20' ) start [2024-12-28 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125010', 'tblTempVendorCDR_20' ) end [2024-12-28 23:51:17] Production.INFO: ProcessCDR(1,14125010,1,1,2) [2024-12-28 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125010', 'tblTempUsageDetail_20' ) start [2024-12-28 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125010', 'tblTempUsageDetail_20' ) end [2024-12-28 23:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:51:20] Production.INFO: ==11096== Releasing lock... [2024-12-28 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:51:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-28 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:52:05 [end_date_ymd] => 2024-12-28 23:52:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:52:05' and `end` < '2024-12-28 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-28 23:52:20] Production.INFO: count ==658 [2024-12-28 23:52:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:52:05 - End Time 2024-12-28 23:52:05 [2024-12-28 23:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125015', 'tblTempUsageDetail_20' ) start [2024-12-28 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125015', 'tblTempUsageDetail_20' ) end [2024-12-28 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125015', 'tblTempVendorCDR_20' ) start [2024-12-28 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125015', 'tblTempVendorCDR_20' ) end [2024-12-28 23:52:20] Production.INFO: ProcessCDR(1,14125015,1,1,2) [2024-12-28 23:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125015', 'tblTempUsageDetail_20' ) start [2024-12-28 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125015', 'tblTempUsageDetail_20' ) end [2024-12-28 23:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:52:24] Production.INFO: ==11224== Releasing lock... [2024-12-28 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:52:24] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:53:05 [end_date_ymd] => 2024-12-28 23:53:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:53:05' and `end` < '2024-12-28 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-28 23:53:17] Production.INFO: count ==660 [2024-12-28 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:53:05 - End Time 2024-12-28 23:53:05 [2024-12-28 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125020', 'tblTempUsageDetail_20' ) start [2024-12-28 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125020', 'tblTempUsageDetail_20' ) end [2024-12-28 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125020', 'tblTempVendorCDR_20' ) start [2024-12-28 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125020', 'tblTempVendorCDR_20' ) end [2024-12-28 23:53:17] Production.INFO: ProcessCDR(1,14125020,1,1,2) [2024-12-28 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125020', 'tblTempUsageDetail_20' ) start [2024-12-28 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125020', 'tblTempUsageDetail_20' ) end [2024-12-28 23:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:53:20] Production.INFO: ==11311== Releasing lock... [2024-12-28 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:53:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:54:05 [end_date_ymd] => 2024-12-28 23:54:05 [RateCDR] => 1 ) [2024-12-28 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:54:05' and `end` < '2024-12-28 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:54:17] Production.INFO: count ==660 [2024-12-28 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:54:05 - End Time 2024-12-28 23:54:05 [2024-12-28 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125025', 'tblTempUsageDetail_20' ) start [2024-12-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125025', 'tblTempUsageDetail_20' ) end [2024-12-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125025', 'tblTempVendorCDR_20' ) start [2024-12-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125025', 'tblTempVendorCDR_20' ) end [2024-12-28 23:54:17] Production.INFO: ProcessCDR(1,14125025,1,1,2) [2024-12-28 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125025', 'tblTempUsageDetail_20' ) start [2024-12-28 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125025', 'tblTempUsageDetail_20' ) end [2024-12-28 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:54:20] Production.INFO: ==11387== Releasing lock... [2024-12-28 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:54:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:55:05 [end_date_ymd] => 2024-12-28 23:55:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:55:05' and `end` < '2024-12-28 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:55:17] Production.INFO: count ==659 [2024-12-28 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:55:05 - End Time 2024-12-28 23:55:05 [2024-12-28 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125030', 'tblTempUsageDetail_20' ) start [2024-12-28 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125030', 'tblTempUsageDetail_20' ) end [2024-12-28 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125030', 'tblTempVendorCDR_20' ) start [2024-12-28 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125030', 'tblTempVendorCDR_20' ) end [2024-12-28 23:55:17] Production.INFO: ProcessCDR(1,14125030,1,1,2) [2024-12-28 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125030', 'tblTempUsageDetail_20' ) start [2024-12-28 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125030', 'tblTempUsageDetail_20' ) end [2024-12-28 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:55:21] Production.INFO: ==11465== Releasing lock... [2024-12-28 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:55:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:56:04 [end_date_ymd] => 2024-12-28 23:56:04 [RateCDR] => 1 ) [2024-12-28 23:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:56:04' and `end` < '2024-12-28 23:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:56:17] Production.INFO: count ==655 [2024-12-28 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:56:04 - End Time 2024-12-28 23:56:04 [2024-12-28 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125035', 'tblTempUsageDetail_20' ) start [2024-12-28 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125035', 'tblTempUsageDetail_20' ) end [2024-12-28 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125035', 'tblTempVendorCDR_20' ) start [2024-12-28 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125035', 'tblTempVendorCDR_20' ) end [2024-12-28 23:56:17] Production.INFO: ProcessCDR(1,14125035,1,1,2) [2024-12-28 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125035', 'tblTempUsageDetail_20' ) start [2024-12-28 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125035', 'tblTempUsageDetail_20' ) end [2024-12-28 23:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:56:20] Production.INFO: ==11551== Releasing lock... [2024-12-28 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:56:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:57:05 [end_date_ymd] => 2024-12-28 23:57:05 [RateCDR] => 1 ) [2024-12-28 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:57:05' and `end` < '2024-12-28 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:57:17] Production.INFO: count ==655 [2024-12-28 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:57:05 - End Time 2024-12-28 23:57:05 [2024-12-28 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125040', 'tblTempUsageDetail_20' ) start [2024-12-28 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125040', 'tblTempUsageDetail_20' ) end [2024-12-28 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125040', 'tblTempVendorCDR_20' ) start [2024-12-28 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125040', 'tblTempVendorCDR_20' ) end [2024-12-28 23:57:17] Production.INFO: ProcessCDR(1,14125040,1,1,2) [2024-12-28 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125040', 'tblTempUsageDetail_20' ) start [2024-12-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125040', 'tblTempUsageDetail_20' ) end [2024-12-28 23:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:57:21] Production.INFO: ==11625== Releasing lock... [2024-12-28 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:57:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:58:05 [end_date_ymd] => 2024-12-28 23:58:05 [RateCDR] => 1 ) [2024-12-28 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-28 20:58:05' and `end` < '2024-12-28 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-28 23:58:20] Production.INFO: count ==655 [2024-12-28 23:58:20] Production.ERROR: pbx CDR StartTime 2024-12-28 20:58:05 - End Time 2024-12-28 23:58:05 [2024-12-28 23:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125045', 'tblTempUsageDetail_20' ) start [2024-12-28 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125045', 'tblTempUsageDetail_20' ) end [2024-12-28 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125045', 'tblTempVendorCDR_20' ) start [2024-12-28 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125045', 'tblTempVendorCDR_20' ) end [2024-12-28 23:58:20] Production.INFO: ProcessCDR(1,14125045,1,1,2) [2024-12-28 23:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125045', 'tblTempUsageDetail_20' ) start [2024-12-28 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125045', 'tblTempUsageDetail_20' ) end [2024-12-28 23:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:58:23] Production.INFO: ==11698== Releasing lock... [2024-12-28 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:58:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-28 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-28 20:59:05 [end_date_ymd] => 2024-12-28 23:59:05 [RateCDR] => 1 ) [2024-12-28 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-28 20:59:05' and `end` < '2024-12-28 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-28 23:59:17] Production.INFO: count ==649 [2024-12-28 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-28 20:59:05 - End Time 2024-12-28 23:59:05 [2024-12-28 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125050', 'tblTempUsageDetail_20' ) start [2024-12-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14125050', 'tblTempUsageDetail_20' ) end [2024-12-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125050', 'tblTempVendorCDR_20' ) start [2024-12-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14125050', 'tblTempVendorCDR_20' ) end [2024-12-28 23:59:17] Production.INFO: ProcessCDR(1,14125050,1,1,2) [2024-12-28 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14125050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14125050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-28 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14125050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14125050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-28 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125050', 'tblTempUsageDetail_20' ) start [2024-12-28 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14125050', 'tblTempUsageDetail_20' ) end [2024-12-28 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-28 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-28 23:59:20] Production.INFO: ==11772== Releasing lock... [2024-12-28 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-28 23:59:20] Production.INFO: 32.25 MB #Memory Used#